diff options
| author | historia <[not public]> | 2026-06-25 15:40:48 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-25 15:40:48 -0400 |
| commit | abd612c15799f604e671e83dc7c410ed2b44185f (patch) | |
| tree | 0597ca92350de73aac2a7cf26b2f2d6595dac0cc /internal/game/cmd_consume.go | |
| parent | 2725e2927a1595c7b100d942d1f14146252adeb7 (diff) | |
| download | thehouseoficarus-abd612c15799f604e671e83dc7c410ed2b44185f.tar.gz | |
slop refactor
Diffstat (limited to 'internal/game/cmd_consume.go')
| -rw-r--r-- | internal/game/cmd_consume.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_consume.go b/internal/game/cmd_consume.go index 249bc9a..133bf57 100644 --- a/internal/game/cmd_consume.go +++ b/internal/game/cmd_consume.go @@ -6,8 +6,8 @@ import ( "time" "thehouseoficarus/internal/engine" + "thehouseoficarus/internal/item" "thehouseoficarus/internal/net" - "thehouseoficarus/internal/object" "thehouseoficarus/internal/player" ) @@ -76,7 +76,7 @@ func (g *Game) doEat(sess *net.Session, input string) { } } -func (g *Game) doEatNow(sess *net.Session, p *player.Player, itemID string, def *object.ItemDef) { +func (g *Game) doEatNow(sess *net.Session, p *player.Player, itemID string, def *item.ItemDef) { if def == nil { var err error def, err = g.ItemStore.Load(itemID) @@ -211,7 +211,7 @@ func (g *Game) doDrink(sess *net.Session, args []string) { } } -func (g *Game) applyPotion(sess *net.Session, p *player.Player, itemID string, def *object.ItemDef) { +func (g *Game) applyPotion(sess *net.Session, p *player.Player, itemID string, def *item.ItemDef) { if def == nil { var err error def, err = g.ItemStore.Load(itemID) |
