summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rules.js8
1 files changed, 1 insertions, 7 deletions
diff --git a/rules.js b/rules.js
index 5ac85a6..844315d 100644
--- a/rules.js
+++ b/rules.js
@@ -1912,12 +1912,9 @@ function build_fln_unit(type, where) {
log(`Built U${u} in A${where}`)
set_unit_loc(u, where)
set_unit_box(u, UG)
- let cost = build_cost(type, where)
+ let cost = build_cost(where)
game.fln_ap -= cost
log(`>Paid ${cost} AP`)
- if (game.fln_ap < 0) {
- throw new Error("ASSERT game.fln_ap < 0")
- }
}
function convert_fln_unit(u, type) {
@@ -1930,9 +1927,6 @@ function convert_fln_unit(u, type) {
let cost = convert_cost(type)
game.fln_ap -= cost
log(`>Paid ${cost} AP`)
- if (game.fln_ap < 0) {
- throw new Error("ASSERT game.fln_ap < 0")
- }
}
states.fln_reinforcement = {