summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-03-27 07:55:20 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-03-27 07:55:20 -0400
commitffbe9096f786d5cc7d89cd2dd3cfdb2659788c13 (patch)
tree38c002b26129c8a9ac7d521d9f92a8e106950c38 /rules.js
parent557d348024c447a8387194cf96d6353f35daa8de (diff)
downloadvijayanagara-ffbe9096f786d5cc7d89cd2dd3cfdb2659788c13.tar.gz
Fix migrate shift cost
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index e72dfa5..92b3324 100644
--- a/rules.js
+++ b/rules.js
@@ -1817,9 +1817,12 @@ states.migrate_space = {
states.migrate_shift_influence = {
inactive: "Migrate",
prompt() {
- view.prompt = "Migrate: Pay one resource to Shift Influence."
-
- gen_action_resources(game.current)
+ if (game.resources[game.current] > 0 ) {
+ view.prompt = "Migrate: Pay a Resource to Shift Influence."
+ gen_action_resources(game.current)
+ } else {
+ view.prompt = "Migrate: Not enough Resource to Shift Influence."
+ }
view.actions.skip = 1
},