diff options
Diffstat (limited to 'internal/game/utils.go')
| -rw-r--r-- | internal/game/utils.go | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/internal/game/utils.go b/internal/game/utils.go index e80de24..729ea97 100644 --- a/internal/game/utils.go +++ b/internal/game/utils.go @@ -79,29 +79,6 @@ func formatPickupList(sess *net.Session, picked []string) { } } -func playerActionDescription(p *player.Player) string { - if p.Action == nil { - return "" - } - target := p.Action.TargetName - if idx, ok := p.Action.Data["instance_idx"]; ok { - target += fmt.Sprintf(" [%d]", idx) - } - switch p.Action.Type { - case "gather": - return "mining a " + target - case "talk": - return "talking to " + target - case "use": - return "using a " + target - case "burn": - return "trying to start a fire" - case "stoke": - return "tending to a fire" - } - return "" -} - func (g *Game) newInventorySlot(itemID string, qty int) *player.InventorySlot { slot := &player.InventorySlot{ItemID: itemID, Quantity: qty} if def, err := g.ItemStore.Load(itemID); err == nil && def.MaxQuality > 0 { |
