summaryrefslogtreecommitdiff
path: root/rules.js
diff options
context:
space:
mode:
Diffstat (limited to 'rules.js')
-rw-r--r--rules.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules.js b/rules.js
index 2356081..98b8df2 100644
--- a/rules.js
+++ b/rules.js
@@ -3503,6 +3503,17 @@ function can_action_forage() {
function goto_forage() {
push_undo()
let here = get_lord_locale(game.command)
+ for (let next of data.locales[here].adjacent)
+ if (has_enemy_lord(next)) {
+ let die = roll_die()
+ if (die <= 4) {
+ add_lord_assets(game.command, PROV, 1)
+ log(`${HIT[die]}, Successful Forage`)
+ }
+ else {
+ log(`${MISS[die]}, Forage Failure`)
+ }
+ }
log(`Foraged at %${here}`)
add_lord_assets(game.command, PROV, 1)
deplete_locale(here)