Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-12-10 | parley search fix | Tor Andersson | |
2023-12-10 | Optimize parley search. | Tor Andersson | |
Check current phase instead of passing it as an argument. Only generate results if needed. Store distance to valid targets in a map. | |||
2023-12-10 | oops! display battle/non-battle vassal confusion | Tor Andersson | |
2023-12-10 | Simplify gnarly if-statement in count_group_assets. | Tor Andersson | |
2023-12-10 | don't require explicit game.active argument to is_favour_friendly | Tor Andersson | |
2023-12-10 | fix undo during march | Tor Andersson | |
2023-12-10 | dynamic favicons based on player role | Tor Andersson | |
TODO: ... based on current heir | |||
2023-12-10 | Fix P1/P2 vs York/Lancaster issues. | Tor Andersson | |
P1 and P2 are dynamically set to either York or Lancaster. Only use these to determine play order during steps. Use YORK or LANCASTER for everything else. Bugs fixed: * P1/P2 aliases were not set after setup is done, leaving them unset for first action since load_state doesn't call update_alias unless the state object changes. * goto_command_activation should only end after both players exhaust, not as soon as Lancaster has run out of cards. * current_hand was returning opponents hand if rebel is not York. | |||
2023-12-10 | Revert "Fix update_aliases so it works with patch_replay.js" | Tor Andersson | |
This reverts commit d01f5507ebf75427118135debf7ff772315cb9fe. | |||
2023-12-10 | consistent favour spelling | Tor Andersson | |
2023-12-10 | Fix spend1 and spend3 action generation for buttons. | Tor Andersson | |
2023-12-10 | Fix some undo states. | Tor Andersson | |
2023-12-10 | Fix exile marker display. | Tor Andersson | |
2023-12-10 | Fix update_aliases so it works with patch_replay.js | Tor Andersson | |
2023-12-10 | add and use data.exile_boxes | Tor Andersson | |
2023-12-10 | Rejig map_search a bit. | Tor Andersson | |
Use the "set" functions instead of array.push and array.includes. Update "seen" when adding entries to search queue to avoid the extra loop that scanned the queue for duplicates. Don't create lots of temporary arrays that create needless work for the garbage collector. | |||
2023-12-10 | battle strike position stuff | Tor Andersson | |
2023-12-10 | calculate_spoils in tor style | Tor Andersson | |
2023-12-10 | get_defeated_lords -> has_defeated_lords and for of | Tor Andersson | |
2023-12-10 | forEach -> for of | Tor Andersson | |
2023-12-10 | Simplify way data (only single roads, no multi-road ways). | Tor Andersson | |
2023-12-10 | no 1-element arrays for sea and exile data | Tor Andersson | |
2023-12-10 | WIP favicons | Tor Andersson | |
2023-12-10 | fix P1_LORD_MASK and P2_LORD_MASK for hidden mat option | Tor Andersson | |
2023-12-10 | remove unused this_lord property | Tor Andersson | |
2023-12-10 | More set functions. | Tor Andersson | |
2023-12-10 | Use set functions. | Tor Andersson | |
2023-12-10 | for_each_ready_vassal | Tor Andersson | |
2023-12-10 | don't use 1-element arrays for vassal seat | Tor Andersson | |
2023-12-10 | Event helping comments | teisuru | |
2023-12-10 | fixup! stronghold | Tor Andersson | |
2023-12-10 | Use common routed_vassals set (instead of one set per lord). | Tor Andersson | |
2023-12-10 | remove stronghold data | Tor Andersson | |
2023-12-10 | fix various typos and eslint warnings | Tor Andersson | |
2023-12-10 | fix block nesting error in can_action_sail | Tor Andersson | |
2023-12-10 | fix check_protection_capabilities | Tor Andersson | |
2023-12-10 | remove unused code and variables flagged by eslint | Tor Andersson | |
2023-12-10 | LOC_DOCHESTER typo and zap duplicate get_supply_from_source. | Tor Andersson | |
2023-12-10 | stricteq | Tor Andersson | |
2023-12-10 | stafford branch fix | teisuru | |
2023-12-10 | Fixed setting enemy favor in pillage. | Troy Nordine | |
2023-12-10 | Remove duplicate get_supply_from_source. | Tor Andersson | |
2023-12-10 | Simplify do_lord_waste(). | Tor Andersson | |
2023-12-10 | LOC_DOCHESTER -> LOC_ROCHESTER | Tor Andersson | |
2023-12-10 | game.battle.routed_vassals is a always set | Tor Andersson | |
No need to check if it is 0. | |||
2023-12-10 | stricteq | Tor Andersson | |
2023-12-10 | get_vassals_with_lord -> for_each_vassal_with_lord | Tor Andersson | |
2023-12-10 | Optimize away get_lords_in_locale. | Tor Andersson | |
Use iterator or other help function instead of creating temporary array. | |||
2023-12-10 | Reformat more using 'prettier'. | Tor Andersson | |
2023-12-10 | Fix some formatting stuff. | Tor Andersson | |