diff options
| author | historia <workhorse@localhost.localdomain> | 2026-06-20 21:36:32 -0400 |
|---|---|---|
| committer | historia <workhorse@localhost.localdomain> | 2026-06-20 21:36:32 -0400 |
| commit | 010fa439399581391fcd509d2058191ff4fa74b3 (patch) | |
| tree | 2deb54f5b2724e34091e6fb97390e6958f973561 /internal/game/action_identify.go | |
| parent | 00a0622dcb5eae90b4ec14ed16c527b81f963c3f (diff) | |
| download | thehouseoficarus-010fa439399581391fcd509d2058191ff4fa74b3.tar.gz | |
feat: stop command added
Diffstat (limited to 'internal/game/action_identify.go')
| -rw-r--r-- | internal/game/action_identify.go | 8 |
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) |
