summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-12-03 12:23:07 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-12-03 12:23:07 +0100
commit9be45071168928c2ad3b2a184c2a3c9e7183040a (patch)
tree66e5cc3a2d0b40fb97fb8f411f7eb088cace353d /lib/colonial_twilight
parent7e94c38bc75cc0393e140e23df5531927acc87d7 (diff)
downloadcolonial-twilight-9be45071168928c2ad3b2a184c2a3c9e7183040a.zip
colonial-twilight-9be45071168928c2ad3b2a184c2a3c9e7183040a.tar.gz
FLNBotRules : fix rally 9 and priorities
Diffstat (limited to 'lib/colonial_twilight')
-rw-r--r--lib/colonial_twilight/fln_bot_rules.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/colonial_twilight/fln_bot_rules.rb b/lib/colonial_twilight/fln_bot_rules.rb
index 90936ad..3f04ed5 100644
--- a/lib/colonial_twilight/fln_bot_rules.rb
+++ b/lib/colonial_twilight/fln_bot_rules.rb
@@ -145,13 +145,14 @@ module ColonialTwilight
end
def may_rally_9_in?(space)
- r = may_agitate_in?(space) && (space.terror.positive? || !space.oppose?)
+ r = may_agitate_in?(space)
dbg " may_rally_9_in : #{space.name}", r
r
end
def rally_9_priority(spaces, resources)
- _filter(spaces) { |s| !s.oppose? && resources > s.terror }
+ f = _filter(spaces) { |s| s.support? && resources > s.terror }
+ _filter(f) { |s| s.neutral? && resources > s.terror }
end
# Extort