Skip to content

Commit

Permalink
Some refinement to growth curves
Browse files Browse the repository at this point in the history
Minor changes to growth curves - buffed hp/agi, nerfed str/mp
Also removed the IPS generation question from prompts (few will want this)
  Specifying --ips on the command line will still generate this file
  • Loading branch information
mcgrew committed Jun 25, 2016
1 parent 81c8e5e commit e75c8c2
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions dwrandomizer.py
Expand Up @@ -9,7 +9,7 @@
from worldmap import WorldMap,MapGrid
import ips

VERSION = "1.1"
VERSION = "1.1.2"
#sha1sums of various roms
prg0sums = ['6a50ce57097332393e0e8751924fd56456ef083c', #Dragon Warrior (U) (PRG0) [!].nes
'66330df6fe3e3c85adb8183721e5f88c149e52eb', #Dragon Warrior (U) (PRG0) [b1].nes
Expand Down Expand Up @@ -360,10 +360,10 @@ def randomize_growth(self, ultra=False):

if ultra:
# set these to make DL normally beatable at lvl 15
player_str = inverted_power_curve( 4, 155, 1.275)
player_agi = inverted_power_curve( 4, 145, 1.225)
player_hp = inverted_power_curve(10, 230, 0.93 )
player_mp = inverted_power_curve( 0, 220, 0.965)
player_str = inverted_power_curve( 4, 155, 1.18)
player_agi = inverted_power_curve( 4, 145, 1.32)
player_hp = inverted_power_curve(10, 230, 0.98)
player_mp = inverted_power_curve( 0, 220, 0.95)
else:
for i in range(len(player_str)):
player_str[i] = round(player_str[i] * random.uniform(0.8, 1.2))
Expand Down Expand Up @@ -846,11 +846,6 @@ def prompt_for_options(args):
elif (patterns.lower().startswith("n")):
args.no_patterns = False

ips = input("\nGenerate an IPS patch file along with the ROM? y/N): ")
if (ips.lower().startswith("y")):
args.ips= True



def randomize(args):

Expand Down

0 comments on commit e75c8c2

Please sign in to comment.