Menu
 

More HP to Enemies

Started by jrubimf, November 20, 2021, 02:17PM

Previous topic - Next topic
November 20, 2021, 02:17PM Last Edit: November 23, 2021, 09:59PM by jrubimf
Instalation: Xmen\Data

Normal Mobs = HP * 3
Boss Mobs = HP * 1.5

You can knockdown some bosses.

Since im lazy as fuck, i will also give you the python script that i made to change all hps.
import json
import pandas
import re

def CalculateHP(HP):
    HP = int(HP)
    if HP < 1000:
        return str(HP * 3)
    return str(HP * 1.5)


file_content = ""
with open('npcstatD.engb.json') as f:
    for line in f:
        if line.find('specific_health') != -1:
            currentHP = ""
            for c in line:
                if c.isdigit():
                    currentHP = currentHP + c
            newHP = CalculateHP(currentHP)
            newLine = line.replace(currentHP, newHP)
            file_content += newLine
        else:
            file_content += line

writing_file = open("npcstat.ENGB.json", "w")
writing_file.write(file_content)
writing_file.close()

file_content = ""
with open('npcstatD.XMLB.json') as f:
    for line in f:
        #print(line)
        if line.find('specific_health') != -1:
            currentHP = ""
            for c in line:
                if c.isdigit():
                    currentHP = currentHP + c
            newHP = CalculateHP(currentHP)
            newLine = line.replace(currentHP, newHP)
            file_content += newLine
        else:
            file_content += line

writing_file = open("npcstat.XMLB.json", "w")
writing_file.write(file_content)
writing_file.close()

print('Done')


https://anonfiles.com/X5Hbr1Wbu7/Harder_Enemies_zip
https://www.mediafire.com/file/eeiior7ubkxglys/MoreHP.zip/file

November 20, 2021, 03:59PM #1 Last Edit: November 20, 2021, 04:02PM by Ceamonks890
Any chance you could upload this file to somewhere like Google Drive or Mediafire? As I seemingly can't download the file from the site you're using.

Welcome aboard to the world of modding by the way!

Quote from: Ceamonks890 on November 20, 2021, 03:59PM
Any chance you could upload this file to somewhere like Google Drive or Mediafire? As I seemingly can't download the file from the site you're using.

Welcome aboard to the world of modding by the way!
https://www.mediafire.com/file/eeiior7ubkxglys/MoreHP.zip/file

Ah, cheers. Now this can be properly added to the MarvelMods community archives :D