From 010fa439399581391fcd509d2058191ff4fa74b3 Mon Sep 17 00:00:00 2001 From: historia Date: Sat, 20 Jun 2026 21:36:32 -0400 Subject: feat: stop command added --- internal/game/action_identify.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/game/action_identify.go') diff --git a/internal/game/action_identify.go b/internal/game/action_identify.go index b04bf97..fd7df20 100644 --- a/internal/game/action_identify.go +++ b/internal/game/action_identify.go @@ -11,9 +11,9 @@ func (g *Game) advanceIdentify(sess *net.Session, p *player.Player) { junkID := p.Action.Data["junk_id"].(string) xpPer := p.Action.Data["xp_per"].(int) - scrapCount := p.CountItem("scrap_metal") + scrapCount := p.CountItem("scrap") if scrapCount == 0 { - sess.WriteLine("You don't have any scrap metal.") + sess.WriteLine("You don't have any scrap.") g.cancelAction(p) return } @@ -38,7 +38,7 @@ func (g *Game) advanceIdentify(sess *net.Session, p *player.Player) { for i := 0; i < 28; i++ { slot := p.InvSlot(i) - if slot != nil && slot.ItemID == "scrap_metal" { + if slot != nil && slot.ItemID == "scrap" { p.SetInvSlot(i, nil) } } @@ -63,7 +63,7 @@ func (g *Game) advanceIdentify(sess *net.Session, p *player.Player) { junkName = def.Name } - msg := fmt.Sprintf("The altar hums. You identify %d scrap metal into %d %s.", scrapCount, totalJunk, junkName) + msg := fmt.Sprintf("The altar hums. You identify %d scrap into %d %s.", scrapCount, totalJunk, junkName) g.awardSkillXP(sess, p, player.Scavenging, totalXP) -- cgit v1.2.3