summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2022-12-18 00:38:32 +0100
committerTor Andersson <tor@ccxvii.net>2023-02-18 13:02:38 +0100
commit7b0a6c41c6ccda2093381d222840beccd3999e45 (patch)
tree618b964150929e04c5d9e2488b219cc41f1b5abb
parent4ef92ce77a2e096a58f9d457136ccf09ff7ddd6f (diff)
downloadnevsky-7b0a6c41c6ccda2093381d222840beccd3999e45.tar.gz
s/assets/spoils/
-rw-r--r--rules.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/rules.js b/rules.js
index bf1ac2a..10145f0 100644
--- a/rules.js
+++ b/rules.js
@@ -412,15 +412,15 @@ function enemy_player() {
}
function get_spoils(type) {
- return pack4_get(game.assets, type)
+ return pack4_get(game.spoils, type)
}
function set_spoils(type, n) {
- game.assets = pack4_set(game.assets, type, n)
+ game.spoils = pack4_set(game.spoils, type, n)
}
function add_spoils(type, n) {
- game.assets = pack4_set(game.assets, type, pack4_get(game.assets) + n)
+ game.spoils = pack4_set(game.spoils, type, pack4_get(game.spoils) + n)
}
function get_lord_locale(lord) {
@@ -2848,7 +2848,7 @@ function goto_avoid_battle() {
game.stack = game.group
game.who = NOBODY
game.state = "avoid_battle"
- game.assets = 0
+ game.spoils = 0
resume_avoid_battle()
}
@@ -3076,7 +3076,7 @@ function end_withdraw() {
// === ACTION: MARCH - DIVIDE SPOILS AFTER AVOID BATTLE ===
function goto_divide_spoils_after_avoid_battle() {
- if (game.assets > 0)
+ if (game.spoils > 0)
game.state = "divide_spoils_after_avoid_battle"
else
march_with_group_3()
@@ -3087,7 +3087,7 @@ states.divide_spoils_after_avoid_battle = {
view.actions.end_spoils = 1
},
end_spoils() {
- game.assets = 0
+ game.spoils = 0
march_with_group_3()
},
}