summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorJoël Simoneau <simoneaujoel@gmail.com>2025-03-27 17:41:25 -0400
committerJoël Simoneau <simoneaujoel@gmail.com>2025-03-27 17:41:25 -0400
commit607b8a7e6e1f4542ad42bae73b16516d9e57051c (patch)
tree397f9ea46e61bf87f822c91e25a600fc2392b7ac /rules.js
parentb8dd702977a5b73631973e2e69a20f9d0fdf088f (diff)
downloadvijayanagara-607b8a7e6e1f4542ad42bae73b16516d9e57051c.tar.gz
Verbose and efficient MI
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js12
1 files changed, 9 insertions, 3 deletions
diff --git a/rules.js b/rules.js
index 7b061ed..10f25d4 100644
--- a/rules.js
+++ b/rules.js
@@ -4490,7 +4490,7 @@ function vm_log_br() {
}
function vm_log_h2() {
- log_h2(faction_flags[vm_operand(1)] + " " + vm_operand(2))
+ log_h2(faction_acronyms[vm_operand(1)] + " " + vm_operand(2))
vm_next()
}
@@ -5354,7 +5354,7 @@ function vm_timurid_crisis() { game.state = "vm_timurid_crisis" }
states.vm_timurid_crisis = {
prompt() {
- event_prompt("Mongols Invaders gather in the Mountain Passes.")
+ event_prompt("Mongol Invaders gather in the Mountain Passes.")
gen_action_space(S_MONGOL_INVADERS)
},
space(s) {
@@ -6745,11 +6745,17 @@ CODE[5 * 2 + 74] = [
[ vm_prompt, "Invaders are attacking in the Mountain Passes!" ],
[ vm_space, true, 1, 1, (s)=>(s === S_MOUNTAIN_PASSES && has_ds_unit(s) && has_mi_unit(s)) ],
[ vm_free_attack, DS ],
+ [ vm_endspace ],
+ [ vm_prompt, "Invaders are moving towards Punjab." ],
+ [ vm_space, true, 1, 1, (s)=>(s === S_PUNJAB) ],
[ vm_timurid_advance, S_MOUNTAIN_PASSES, S_PUNJAB ],
[ vm_endspace ],
- [ vm_prompt, "Invaders are moving towards Delhi!" ],
+ [ vm_prompt, "Invaders are Attacking in Punjab!" ],
[ vm_space, true, 1, 1, (s)=>(s === S_PUNJAB && has_ds_unit(s) && has_mi_unit(s)) ],
[ vm_free_attack, DS ],
+ [ vm_endspace ],
+ [ vm_prompt, "Invaders are moving towards Delhi." ],
+ [ vm_space, true, 1, 1, (s)=>(s === S_DELHI) ],
[ vm_timurid_advance, S_PUNJAB, S_DELHI ],
[ vm_endspace ],
[ vm_prompt, "Invaders are laying a siege to Delhi!" ],