summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
authorTor Andersson <tor@ccxvii.net>2024-04-16 18:18:00 +0200
committerTor Andersson <tor@ccxvii.net>2024-04-16 18:18:36 +0200
commit1162e1624b5a1bb6be4e69d942c619a8f749895e (patch)
treedafd4e7f5a914dff0e8b4f726271d05dbcef9c91 /rules.js
parent3050c84898aaa2f4c4c42f31ec8e651aab5d7236 (diff)
downloadplantagenet-1162e1624b5a1bb6be4e69d942c619a8f749895e.tar.gz
Add TODO about She-wold event.
Is it safe to use game.pieces.moved to track vassals? Use event specific list instead?
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/rules.js b/rules.js
index 747d911..19c502f 100644
--- a/rules.js
+++ b/rules.js
@@ -10190,6 +10190,7 @@ function end_welsh_rebellion() {
}
// === EVENT: HENRY RELEASED ===
+
function goto_lancaster_event_henry_released() {
if (has_favourl_marker(LOC_LONDON)) {
logi(`Henry Released : 5 Influence for Lancaster`)
@@ -10722,16 +10723,19 @@ function goto_york_event_shewolf_of_france() {
// TO TRACK VASSALS DURING EVENTS
function get_vassal_moved(v) {
+ // TODO: does it clash with lords moved?
+ // TODO: or use game.count instead?
return map_get(game.pieces.moved, v, 0)
}
function set_vassal_moved(v, x) {
+ // TODO: does it clash with lords moved?
map_set(game.pieces.moved, v, x)
}
function pay_vassal_shewolf(vassal) {
if (current_turn() < 16)
- set_vassal_lord_and_service(vassal, get_vassal_lord(vassal),get_vassal_service(vassal) + 1)
+ set_vassal_lord_and_service(vassal, get_vassal_lord(vassal), get_vassal_service(vassal) + 1)
}
states.she_wolf = {
@@ -10933,7 +10937,7 @@ states.earl_rivers = {
}
}
-// === EVENT: THE KINGS NAME ===
+// === EVENT (AS LEVY EFFECT): THE KINGS NAME ===
function eligible_kings_name() {
if (
@@ -11074,7 +11078,7 @@ function kings_name_reset_troops() {
}
}
-// === EVENT: RISING WAGES ===
+// === EVENT (AS LEVY EFFECT): RISING WAGES ===
function goto_rising_wages() {
game.state = "rising_wages"
@@ -11102,7 +11106,7 @@ states.rising_wages = {
},
}
-// === EVENT: THE COMMONS ===
+// === EVENT (AS LEVY EFFECT): THE COMMONS ===
// each Levy Troops action ends with coming here