summaryrefslogtreecommitdiff
path: root/rules.js
AgeCommit message (Collapse)Author
2023-12-10end tides of war + heraldsteisuru
2023-12-10various fixes for exiled lords and vassalsteisuru
2023-12-10removed nevsky capability seatteisuru
2023-12-10fix log margaret capteisuru
2023-12-10Fix for loops < last_thing to <= last thingTor Andersson
2023-12-10oops!Tor Andersson
2023-12-10update has_locale_to_musterTor Andersson
2023-12-10fix supply amountsTor Andersson
2023-12-10Delete unused code.Tor Andersson
2023-12-10Fix bug when choosing supply source type.Tor Andersson
2023-12-10Tweak vassal state handling.Tor Andersson
2023-12-10Use map structures instead of arrays and bit packing.Tor Andersson
There are 28 lords, so packing multiple bits per lord into one word won't work. Most lords will never be on the map, so carrying around their asset/force/routed data is wasteful. Use map structures instead, since at most 6 lords will be on the map at once, and at most 13 on the map + calendar.
2023-12-10set_lord_calendar directlyTor Andersson
2023-12-10Levy troops not possible in exileteisuru
2023-12-10Use game.count for tracking lords in Scots event.Tor Andersson
2023-12-10Use game.parley for list of valid locations instead of game.what.Tor Andersson
2023-12-10Hide asset/forces/routed implementation details.Tor Andersson
Use accessors everywhere.
2023-12-10no global capabilitiesTor Andersson
2023-12-10Fixed French Troops.Troy Nordine
2023-12-10drop game.crown property (redundant with game.rebel)Tor Andersson
2023-12-10skip setup for scenarios that don't use itTor Andersson
2023-12-10Allow Parley at unfriendly locales during Levy.Tor Andersson
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