aboutsummaryrefslogtreecommitdiff
path: root/internal/game/combat_mob.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-10-05 17:05:14 -0400
committerhistoria <[not public]>2026-10-05 17:05:14 -0400
commite42952469dadfb3535633c66c881050ac128703c (patch)
treea78f7396b72cdbd6fa4f6c454c830f40cf2ad0cb /internal/game/combat_mob.go
parent90ad8c0c33b519d5830c69d4128bdc984b5e9de8 (diff)
downloadthehouseoficarus-e42952469dadfb3535633c66c881050ac128703c.tar.gz
fix: gather verbs, walk oom, admin path bypass, roulette refund
Diffstat (limited to 'internal/game/combat_mob.go')
-rw-r--r--internal/game/combat_mob.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/game/combat_mob.go b/internal/game/combat_mob.go
index b717d8e..c5a6d9f 100644
--- a/internal/game/combat_mob.go
+++ b/internal/game/combat_mob.go
@@ -379,6 +379,11 @@ func (g *Game) killPlayer(sess *net.Session, p *player.Player, mob *world.MobIns
if mob.HP < 0 {
mob.HP = 0
}
+ // Every other damage site arms the regen timer; without this a
+ // surviving mob heals 1 HP per tick instead of 1 per 100.
+ if mob.HP > 0 && mob.HP < mob.MaxHP {
+ mob.StartRegen()
+ }
sess.WriteLine(fmt.Sprintf("Dead Man's Switch activates! %s takes %s damage!",
mobDisplayName(mob, true), g.dmgDisplay(sess, retDmg)))
}