diff options
author | Tor Andersson <tor@ccxvii.net> | 2023-01-22 17:04:21 +0100 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2023-02-18 13:02:39 +0100 |
commit | d5dcddaba64662068453dc7e9e37e91b49ef92ce (patch) | |
tree | 6b9838b260c49ef615666cab6b627d2cd392a023 /rules.js | |
parent | adb54e6f81724f64fa644f50dc7ca2e24f633a79 (diff) | |
download | nevsky-d5dcddaba64662068453dc7e9e37e91b49ef92ce.tar.gz |
Fix Famine.
Diffstat (limited to 'rules.js')
-rw-r--r-- | rules.js | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -5954,12 +5954,11 @@ function can_supply() { function goto_supply() { push_undo() - if (is_famine_in_play() && game.flags.famine === 0) { + if (is_famine_in_play() && !game.flags.famine) { if (game.active === TEUTONS) logevent(EVENT_RUSSIAN_FAMINE) else logevent(EVENT_TEUTONIC_FAMINE) - game.flags.famine = 1 } if (init_lodya_supply()) { @@ -6024,6 +6023,8 @@ states.supply_source = { logi(`Seat at %${source}`) game.supply.available-- array_remove_item(game.supply.seats, source) + if (is_famine_in_play()) + game.flags.famine = 1 } else { logi(`Seaport at %${source}`) game.supply.ships-- |