diff options
| author | historia <[not public]> | 2026-09-16 17:05:17 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-16 17:05:17 -0400 |
| commit | 1dad15698845d370e998f7cc5feb8aece3fab58f (patch) | |
| tree | 8d58058782de9f422573e1f8efd5d130ce7d1ce9 /internal/game/cmd_tech.go | |
| parent | a6cf03a6ae98e4fb675da25046d148e92bcf7206 (diff) | |
| download | thehouseoficarus-1dad15698845d370e998f7cc5feb8aece3fab58f.tar.gz | |
refactor: remove dead code, consolidate save/error handling, add lint gate
Diffstat (limited to 'internal/game/cmd_tech.go')
| -rw-r--r-- | internal/game/cmd_tech.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/internal/game/cmd_tech.go b/internal/game/cmd_tech.go index 1431228..587df60 100644 --- a/internal/game/cmd_tech.go +++ b/internal/game/cmd_tech.go @@ -129,14 +129,14 @@ func (g *Game) doTechList(sess *net.Session) { var nameStr string if tech.Level <= techLevel { if p.HasActiveTech(tech.ID) { - status = color.Render(mode, g.resolveConstant(sess, "tech_status_on"), "ON") + status = color.Render(mode, g.resolveConstant("tech_status_on"), "ON") } else { - status = color.Render(mode, g.resolveConstant(sess, "tech_status_off"), "off") + status = color.Render(mode, g.resolveConstant("tech_status_off"), "off") } - nameStr = color.Render(mode, g.resolveConstant(sess, "tech_name_unlocked"), tech.Name) + nameStr = color.Render(mode, g.resolveConstant("tech_name_unlocked"), tech.Name) } else { - status = color.Render(mode, g.resolveConstant(sess, "tech_status_locked"), "locked") - nameStr = color.Render(mode, g.resolveConstant(sess, "tech_name_locked"), tech.Name) + status = color.Render(mode, g.resolveConstant("tech_status_locked"), "locked") + nameStr = color.Render(mode, g.resolveConstant("tech_name_locked"), tech.Name) } effect := techEffectString(tech) @@ -192,7 +192,7 @@ func (g *Game) doTechQuick(sess *net.Session, p *player.Player, input string) { } p.QuickTech = matches[0].ID - g.AccountStore.SaveCharacter(p) + g.saveCharacter(p) sess.WriteLine(fmt.Sprintf("Quick tech set to %s.", matches[0].Name)) } |
