summaryrefslogtreecommitdiff
path: root/rules.js
AgeCommit message (Collapse)Author
2023-12-10removed testing coode.Troy Nordine
2023-12-10Impl. French Troops. Fixed other errors.Troy Nordine
2023-12-10Implemented L19 Henry's Proclamation.Troy Nordine
2023-12-10Implemented L15 Henry Pressures Parliment.Troy Nordine
2023-12-10Implemented Event L114 - Scots.Troy Nordine
2023-12-10fix wrong function nameTor Andersson
2023-12-10Fixed unit selection in battle.Troy Nordine
2023-12-10fix tax seaportteisuru
2023-12-10fix parley seaportteisuru
2023-12-10Fix Parley during campaign.Tor Andersson
2023-12-10Tax - fix bug and add Stafford Branch effect.Tor Andersson
2023-12-10Optimize and fix Supply.Tor Andersson
2023-12-10rename againTor Andersson
2023-12-10remove bad clear_undoTor Andersson
2023-12-10Optimize Tax action.Tor Andersson
2023-12-10Rename port-to-port and any-to-port adjacency functions.Tor Andersson
2023-12-10lords only have one seatTor Andersson
2023-12-10parley search fixTor Andersson
2023-12-10Optimize 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-10Simplify gnarly if-statement in count_group_assets.Tor Andersson
2023-12-10don't require explicit game.active argument to is_favour_friendlyTor Andersson
2023-12-10fix undo during marchTor Andersson
2023-12-10Fix 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-10Revert "Fix update_aliases so it works with patch_replay.js"Tor Andersson
This reverts commit d01f5507ebf75427118135debf7ff772315cb9fe.
2023-12-10consistent favour spellingTor Andersson
2023-12-10Fix spend1 and spend3 action generation for buttons.Tor Andersson
2023-12-10Fix some undo states.Tor Andersson
2023-12-10Fix update_aliases so it works with patch_replay.jsTor Andersson
2023-12-10add and use data.exile_boxesTor Andersson
2023-12-10Rejig 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-10battle strike position stuffTor Andersson
2023-12-10calculate_spoils in tor styleTor Andersson
2023-12-10get_defeated_lords -> has_defeated_lords and for ofTor Andersson
2023-12-10forEach -> for ofTor Andersson
2023-12-10Simplify way data (only single roads, no multi-road ways).Tor Andersson
2023-12-10no 1-element arrays for sea and exile dataTor Andersson
2023-12-10fix P1_LORD_MASK and P2_LORD_MASK for hidden mat optionTor Andersson
2023-12-10remove unused this_lord propertyTor Andersson
2023-12-10Use set functions.Tor Andersson
2023-12-10for_each_ready_vassalTor Andersson
2023-12-10don't use 1-element arrays for vassal seatTor Andersson
2023-12-10Event helping commentsteisuru
2023-12-10Use common routed_vassals set (instead of one set per lord).Tor Andersson
2023-12-10remove stronghold dataTor Andersson
2023-12-10fix various typos and eslint warningsTor Andersson
2023-12-10fix block nesting error in can_action_sailTor Andersson
2023-12-10fix check_protection_capabilitiesTor Andersson
2023-12-10remove unused code and variables flagged by eslintTor Andersson
2023-12-10LOC_DOCHESTER typo and zap duplicate get_supply_from_source.Tor Andersson
2023-12-10stricteqTor Andersson