Hello

Welcome, Guest. To unlock the rest of the forums
please login or register.
Did you miss your activation email?

Author Topic: More HP to Enemies  (Read 141 times)

Offline jrubimf
  • Rook
  • *
  • Posts: 3
  • Upvotes: 0
More HP to Enemies
« on: November 20, 2021, 02:17pm »
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.
Code: [Select]
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
« Last Edit: November 23, 2021, 09:59pm by jrubimf »

Offline Ceamonks890

  • Admin
  • Incredible Member
  • ************
  • Posts: 656
  • Upvotes: 49
Re: More HP to Enemies
« Reply #1 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!
« Last Edit: November 20, 2021, 04:02pm by Ceamonks890 »

Offline jrubimf
  • Rook
  • *
  • Posts: 3
  • Upvotes: 0
Re: More HP to Enemies
« Reply #2 on: November 23, 2021, 09: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

Offline Ceamonks890

  • Admin
  • Incredible Member
  • ************
  • Posts: 656
  • Upvotes: 49
Re: More HP to Enemies
« Reply #3 on: November 24, 2021, 03:59pm »
Ah, cheers. Now this can be properly added to the MarvelMods community archives :D