diff options
| author | historia <[not public]> | 2026-07-01 04:53:56 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-01 04:53:56 -0400 |
| commit | bf7c27c2cbf3eb56a0a4c5141e39b152c51614b5 (patch) | |
| tree | 5383c325fafeb34c01ea737a7070402f040fc5af /internal/game/cmd_use.go | |
| parent | fbe5090ac3325ff8ea6989cdf4515c7f077c975b (diff) | |
| download | thehouseoficarus-bf7c27c2cbf3eb56a0a4c5141e39b152c51614b5.tar.gz | |
feat: admin gui map, item, and objects mostly complete
Diffstat (limited to 'internal/game/cmd_use.go')
| -rw-r--r-- | internal/game/cmd_use.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/game/cmd_use.go b/internal/game/cmd_use.go index 1989a3e..72de3d6 100644 --- a/internal/game/cmd_use.go +++ b/internal/game/cmd_use.go @@ -225,11 +225,11 @@ func (g *Game) doUseItemOnTarget(sess *net.Session, p *player.Player, itemAName, if len(recipes[0].Craft) > 0 { firstSubtype = recipes[0].FirstCraft().Subtype } - if firstSubtype == "smelt" { + if firstSubtype == "smelting" { var filtered []*item.ItemDef for _, item := range recipes { c := item.FirstCraft() - if c.Subtype != "smelt" { + if c.Subtype != "smelting" { continue } if !craftHasAllItemsQty(c, p.CountItem) { @@ -417,7 +417,7 @@ func (g *Game) doUseItemOnTarget(sess *net.Session, p *player.Player, itemAName, } func (g *Game) isGrimyHerb(itemID string) bool { - items := g.CraftIndex.BySubtype("clean") + items := g.CraftIndex.BySubtype("cleaning") for _, item := range items { for _, e := range item.FirstCraft().Ingredients { for _, id := range e.Items { |
