diff options
| author | historia <[not public]> | 2026-06-19 21:20:32 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-19 21:20:32 -0400 |
| commit | 5ea082ab4e82409aebc889b496f43e52b003d4f7 (patch) | |
| tree | 942f2c4a18ecbee42ba25726048d09827ea68894 /internal/game/cmd_autotrigger.go | |
| parent | 8ee8982b8759bcae116647cc993867f4c8b0a6ce (diff) | |
| download | thehouseoficarus-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.go | 5 |
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 |
