diff options
| author | historia <[not public]> | 2026-06-14 22:38:23 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-14 22:38:23 -0400 |
| commit | a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77 (patch) | |
| tree | 89601a502bbfcb50302cf03f09b6febc6040eeb0 /internal/game/utils.go | |
| parent | 1aba2bdd23aebed4032333e74aa553c40a31fcbd (diff) | |
| download | thehouseoficarus-a6f0ad79e2e3a5b7c11eef1ffc3233f3a2766f77.tar.gz | |
feat: fractional ticks and server game_speed implemented. potentially insanely janky.
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 { |
