(2.028) Code issue with sieges (reinforcements waves)

Users who are viewing this thread

kalarhan

Python Saint
Count
Possible code bug:

file: module_mission_templates.py

issue: trigger that controls reinforcements waves for sieges (attacks), including from the sea (port attack), only gives you new troops if you have less than 7 soldiers left. Standard for the DLC is 30 (on other encounters).

the code has 3 lines showing this was discussed at some point, and the left-over code is taking precedent over the real (?) value

Code:
common_siege_attacker_reinforcement_check = (
  1, 0, 5,
  [
    (lt,"$attacker_reinforcement_stage", TWEAK_SIEGE_ATTACKER_REINFORCEMENT_WAVES),
    (store_mission_timer_a,":mission_time"),
    (ge,":mission_time",10),
    (store_normalized_team_count,":num_attackers",1),
    (lt,":num_attackers",6), 	# native
    (lt,":num_attackers",140),	# Idibil #more reirforcement, best battle. Vc wants massive battles. They are attacking
    (lt,":num_attackers",30),	# phaiak # I think it needs to be half of this: (0,mtef_attackers|mtef_team_1,af_override_horse,aif_start_alarmed,60,[]),
  ],
  [
    #(add_reinforcements_to_entry, 1, 8),	#native
    (add_reinforcements_to_entry, 1, 35),	#phaiak
    (val_add,"$attacker_reinforcement_stage", 1),
])

code says: if you have less than 7 soldiers, and if you have less than 140 soldiers, and if you have less than 30 soldiers

result: only adds new soldiers when you have 6 or less.
 
Back
Top Bottom