diff --git a/Module_system 1.171/compile.py b/Module_system 1.171/compile.py index 2b67d8b..34d7a66 100644 --- a/Module_system 1.171/compile.py +++ b/Module_system 1.171/compile.py @@ -448,7 +448,7 @@ if WRECK.successful: print '{2}COMPILATION SUCCESSFUL.{0}\n'.format(*COLORAMA) else: - print '{1}COMPILATION FAILED.{0}\n'.format(*COLORAMA) + sys.exit('{1}COMPILATION FAILED.{0}\n'.format(*COLORAMA)) error_reporting_level = 3 if 'silent' in sys.argv: error_reporting_level = 0 diff --git a/Module_system 1.171/module_scripts.py b/Module_system 1.171/module_scripts.py index f5b9ebb..33e8a35 100755 --- a/Module_system 1.171/module_scripts.py +++ b/Module_system 1.171/module_scripts.py @@ -15769,16 +15769,22 @@ def keys_array(): ]), #NPC companion changes end - #script_update_party_creation_random_limits + # script_update_party_creation_random_limits + # Distribution biases towards smaller party sizes # INPUT: none ("update_party_creation_random_limits", [ - (store_character_level, ":player_level", "trp_player"), - (store_mul, ":upper_limit", ":player_level", 3), - (val_add, ":upper_limit", 25), - (val_min, ":upper_limit", 100), - (set_party_creation_random_limits, 0, ":upper_limit"), - (assign, reg0, ":upper_limit"), + (store_random_in_range, ":max_party_size", 0, 35), + + # Maybe reroll if max_party_size > 25 + (try_begin), + (ge, ":max_party_size", 25), + (store_random_in_range, ":should_reroll", 0, 2), + (eq, ":should_reroll", 1), + (store_random_in_range, ":max_party_size", 0, 35), + (try_end), + + (set_party_creation_random_limits, 0, 35), ]), #script_set_trade_route_between_centers