feat(@projects/@magic-civilization): add cavalry actions and combat defaults

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
Natalie 2026-05-02 18:47:16 -04:00
parent 37094f0fdb
commit cd94244cc6
4 changed files with 19 additions and 1 deletions

View file

@ -15,9 +15,9 @@
"arcing": [],
"amphibious": ["embark", "disembark"],
"sentry": ["sentry"],
"cavalry": ["charge", "pursue", "wheel"],
"infantry_line": ["shield_wall", "brace", "shove"],
"infantry_shock": ["rage", "cleave", "war_cry"],
"cavalry": ["charge", "pursue", "wheel"],
"engineer": ["build_bridge", "sap_wall", "breach_charge", "fortify_hex", "demolish"],
"medic": ["triage", "field_aura", "stabilise", "remove_status"],
"scout": ["stealth", "lookout", "ambush", "mark_trail"]

View file

@ -68,6 +68,7 @@ mod resurrection_tests {
city_wall_tier: 0,
city_has_garrison: false,
attacker_is_siege: false,
..Default::default()
};
let result = CombatResolver::resolve(&params);

View file

@ -186,6 +186,7 @@ fn build_params(case: &CombatCase) -> CombatParams {
city_wall_tier: case.city_wall_tier,
city_has_garrison: case.city_has_garrison,
attacker_is_siege: case.attacker_is_siege,
..Default::default()
}
}

View file

@ -1351,6 +1351,10 @@ mod tests {
is_braced: false,
rage_turns_remaining: 0,
war_cry_used_this_battle: false,
multi_turn_in_progress: false,
is_stealthed: false,
is_field_aura: false,
is_ambushing: false,
}
}
@ -1414,6 +1418,10 @@ mod tests {
is_braced: false,
rage_turns_remaining: 0,
war_cry_used_this_battle: false,
multi_turn_in_progress: false,
is_stealthed: false,
is_field_aura: false,
is_ambushing: false,
}
}
@ -1472,6 +1480,10 @@ mod tests {
is_braced,
rage_turns_remaining: 0,
war_cry_used_this_battle: false,
multi_turn_in_progress: false,
is_stealthed: false,
is_field_aura: false,
is_ambushing: false,
}
}
@ -1494,6 +1506,10 @@ mod tests {
is_braced: false,
rage_turns_remaining: rage_turns,
war_cry_used_this_battle: war_cry_used,
multi_turn_in_progress: false,
is_stealthed: false,
is_field_aura: false,
is_ambushing: false,
}
}