diff options
| author | historia <[not public]> | 2026-09-18 05:31:09 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-09-18 05:31:09 -0400 |
| commit | 153acb7f644d755c45533b7c5311e3ffa47e8973 (patch) | |
| tree | 7645e6f7b65bc3830b078e3b9336d2e6b199d584 /internal/game/act_clean.go | |
| parent | 87d08f0151e643951769e323995f1c5ed89ee200 (diff) | |
| download | thehouseoficarus-153acb7f644d755c45533b7c5311e3ffa47e8973.tar.gz | |
fix: harden engine across casino, economy, concurrency, security, and content
Diffstat (limited to 'internal/game/act_clean.go')
| -rw-r--r-- | internal/game/act_clean.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/game/act_clean.go b/internal/game/act_clean.go index 2872173..3525475 100644 --- a/internal/game/act_clean.go +++ b/internal/game/act_clean.go @@ -71,7 +71,10 @@ func (g *Game) advanceClean(sess *net.Session, p *player.Player) { } g.saveCharacter(p) - msg := g.resolveCraftMessage(sess, craft.SuccessMessage, "You clean the %i1.", craft, matchItem.ID, nil, p.HasItem) + // The grimy herb's slot was just overwritten with the clean product, so + // p.HasItem is false for it: resolve %i1 from the exact item consumed. + msg := g.resolveCraftMessage(sess, craft.SuccessMessage, "You clean the %i1.", craft, matchItem.ID, nil, + func(id string) bool { return id == consumeID }) if p.OptionBool("xp_drops") && craft.XP > 0 { msg += g.formatXpDropSingle(sess, p, player.Pharmacy, craft.XP) } |
