aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_autotrigger.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-19 21:20:32 -0400
committerhistoria <[not public]>2026-06-19 21:20:32 -0400
commit5ea082ab4e82409aebc889b496f43e52b003d4f7 (patch)
tree942f2c4a18ecbee42ba25726048d09827ea68894 /internal/game/cmd_autotrigger.go
parent8ee8982b8759bcae116647cc993867f4c8b0a6ce (diff)
downloadthehouseoficarus-5ea082ab4e82409aebc889b496f43e52b003d4f7.tar.gz
feat: science combat/triggers overhauled. decks now use autotrigger attacks.
Diffstat (limited to 'internal/game/cmd_autotrigger.go')
-rw-r--r--internal/game/cmd_autotrigger.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/internal/game/cmd_autotrigger.go b/internal/game/cmd_autotrigger.go
index e2ecd1a..acfa76e 100644
--- a/internal/game/cmd_autotrigger.go
+++ b/internal/game/cmd_autotrigger.go
@@ -27,13 +27,14 @@ func (g *Game) doAutotrigger(sess *net.Session, input string) {
return
}
- if strings.ToLower(input) == "off" {
+ lower := strings.ToLower(input)
+ if lower == "off" || lower == "none" {
p.AutotriggerMod = ""
sess.WriteLine("Autotrigger disabled.")
return
}
- mod := FindMod(strings.ToLower(input))
+ mod := FindModForPlayer(lower, p.Level(player.Science))
if mod == nil {
sess.WriteLine("Unknown mod.")
return