From a1b6613c6c6a2f8d6e1ecd47e766bd40f92ac295 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Sun, 28 Jun 2026 02:40:30 -0400 Subject: feat: admin accounts, god mode, OLC commands like dig/room, 'inline' objects changed to 'local' objects --- internal/game/combat_mob.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal/game/combat_mob.go') diff --git a/internal/game/combat_mob.go b/internal/game/combat_mob.go index 7096b66..a4bf435 100644 --- a/internal/game/combat_mob.go +++ b/internal/game/combat_mob.go @@ -237,6 +237,12 @@ func (g *Game) endCombat(sess *net.Session, p *player.Player, mob *world.MobInst // mob may be nil (e.g. a hazard kill); it is only used for Dead Man's Switch // retribution. func (g *Game) killPlayer(sess *net.Session, p *player.Player, mob *world.MobInstance) { + if p.GodMode { + p.HP = 1 + sess.WriteLine(g.colorize(sess, "miss", "Your divine power prevents death.")) + g.writePrompt(sess) + return + } g.Combat.Leave(p.Name) if p.HasActiveTech("retribution") { -- cgit v1.2.3