diff options
| author | historia <[not public]> | 2026-07-08 19:59:14 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-08 19:59:14 -0400 |
| commit | 09d325dcf5e779eab5550d3fd3377bde50101428 (patch) | |
| tree | a433be903aabbf1d2eadce2aacdac12a9eb8dde0 /internal/game/combat_mob.go | |
| parent | 9184377301c2604e003f36426788c032fb0ca524 (diff) | |
| download | thehouseoficarus-09d325dcf5e779eab5550d3fd3377bde50101428.tar.gz | |
feat: unify on use, on look, and on kill. all support same conditions/actions now.
Diffstat (limited to 'internal/game/combat_mob.go')
| -rw-r--r-- | internal/game/combat_mob.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/game/combat_mob.go b/internal/game/combat_mob.go index a3fc040..0395049 100644 --- a/internal/game/combat_mob.go +++ b/internal/game/combat_mob.go @@ -217,6 +217,11 @@ func (g *Game) endCombat(sess *net.Session, p *player.Player, mob *world.MobInst g.announceKill(sess, p, mob, isTask) g.awardKillDrops(sess, p, mob, isTask) + // On Kill fires for both combat kills and task-mob completion (draining a + // task mob's HP to zero is the "kill" that completes the work). itemMatch + // is the "wielding" gate — on_kill entries with an item_id only fire if + // the player currently has that item equipped in a weapon-hand slot. + g.applyInteraction(sess, p, mob.OnKill, p.RoomID, true, p.IsWielding) g.scheduleMobRespawn(mob) g.writePrompt(sess) } |
