diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-10-22 00:02:23 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-10-22 00:03:23 +0200 |
commit | 9161d8dab4ac318caf41f1f63879d59348d91554 (patch) | |
tree | 50f17ba820d2814729e8cd18aed510158b060962 /play.js | |
parent | fc71ebf81c6a7c672e0b13e1c274cef3a2e63b81 (diff) | |
download | maria-9161d8dab4ac318caf41f1f63879d59348d91554.tar.gz |
victory check
Diffstat (limited to 'play.js')
-rw-r--r-- | play.js | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -921,7 +921,18 @@ function layout_retro(s, pow) { } function layout_victory_pool(pow, max, x, y) { - let n = 0 + let n = view.vp[pow] + if (pow === P_PRUSSIA) { + if (view.flags & F_SILESIA_ANNEXED) ++n + } + if (pow === P_FRANCE) { + if (view.flags & F_ITALY_FRANCE) ++n + if (view.flags & F_EMPEROR_FRANCE) ++n + } + if (pow === P_AUSTRIA) { + if (view.flags & F_ITALY_AUSTRIA) ++n + if (view.flags & F_EMPEROR_AUSTRIA) ++n + } for (let i = 0; i < view.victory.length; i += 2) if (view.victory[i+1] === pow) ++n |