Tingyun said:Ship Captains are still not flagged as sailors for speed bonus in 2.036.
(party_count_companions_of_type, ":num_sailors", "p_main_party", "trp_regular_sailors"),
(assign, ":num_norse_troops", 0),
#(assign, ":num_viking_troops", 0),
(try_for_range, ":troop", "trp_norse_elitearcher", "trp_norse_priest"),
(store_character_level, ":level", ":troop"),
(ge, ":level", 23),
(party_count_companions_of_type, ":count", "p_main_party", ":troop"),
(gt, ":count", 0),
(val_add, ":num_norse_troops", ":count"),
(end_try),
(try_for_range, ":troop", "trp_steppe_bandit", "trp_sea_raider_leader2"),
(party_count_companions_of_type, ":count", "p_main_party", ":troop"),
(gt, ":count", 0),
(val_add, ":num_norse_troops", ":count"),
(end_try),
(store_add, reg5, ":num_norse_troops", ":num_sailors"), #for presentation
Tingyun said:Yes, the point is Ship Captains should be added to the sailing speed list, as they are obviously as skilled sailors as the vikingr units.
(val_mul, ":num_sailors", 80),
(store_div, ":sailor_speed_percent", ":num_sailors", ":party_size"),
(val_mul, ":num_norse_troops", 40),
(store_div, ":norse_speed_percent", ":num_norse_troops", ":party_size"),
(store_add, ":troop_speed_percent", ":norse_speed_percent", ":sailor_speed_percent"),
(val_min, ":troop_speed_percent", 40), # troop speed bonus limit cap of 40% VC-2124
(assign, reg6, ":troop_speed_percent"), #for presentation
(store_mul, ":troop_speed_bonus", ":troop_speed_percent", ":speed_multiplier"),
(val_div, ":troop_speed_bonus", 100),
Tingyun said:I just try to report all possible issues