summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-05-25 16:35:35 +0200
committerTor Andersson <tor@ccxvii.net>2024-05-30 21:59:25 +0200
commitc5fe029ae2d4c6f34c204bf66f792d0ae7e89ab8 (patch)
treea08fa0da6a54700299ae5c1b42fe6d0f79f61632
parentd71c2c534a48388d834b32f14ba75f9dde262353 (diff)
downloadfriedrich-c5fe029ae2d4c6f34c204bf66f792d0ae7e89ab8.tar.gz
fix typo
-rw-r--r--rules.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/rules.js b/rules.js
index a9344f5..6518e55 100644
--- a/rules.js
+++ b/rules.js
@@ -148,6 +148,7 @@ const all_power_depots = [
const MUNSTER_Y = data.cities.y[find_city("Munster")]
const HALLE = find_city("Halle")
+const KUSTRIN = find_city("Küstrin")
const all_power_re_entry_cities = [
data.sectors.spades_berlin,
@@ -392,7 +393,6 @@ function forbid_play_value_10_or_more() {
function must_reach_positive_score() {
if (game.fx === NEXT_TURN_IF_FRIEDRICH_IS_INVOLVED_IN_COMBAT_PRUSSIA_MUST_REACH_A_POSITIVE_SCORE) {
if (game.power === P_PRUSSIA) {
- throw "STOP +VE"
return (game.pos[GEN_FRIEDRICH] === game.attacker || game.pos[GEN_FRIEDRICH] === game.defender)
}
}
@@ -2306,7 +2306,7 @@ function fate_card_bonus(c) {
if (game.power === P_PRUSSIA && game.pos[GEN_FRIEDRICH] === game.defender)
return 0
if (game.fx === NEXT_TURN_PRUSSIA_MAY_PLAY_THE_11_OF_SPADES_ONCE_AT_DOUBLE_VALUE)
- if (gaem.power === P_PRUSSIA && to_suit(c) === SPADES && to_value(c) === 11)
+ if (game.power === P_PRUSSIA && to_suit(c) === SPADES && to_value(c) === 11)
return 11
return 0
}