aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_identify.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/action_identify.go')
-rw-r--r--internal/game/action_identify.go8
1 files changed, 4 insertions, 4 deletions
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)