aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_clean.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/act_clean.go')
-rw-r--r--internal/game/act_clean.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/act_clean.go b/internal/game/act_clean.go
index f995ae1..2872173 100644
--- a/internal/game/act_clean.go
+++ b/internal/game/act_clean.go
@@ -42,7 +42,7 @@ func (g *Game) advanceClean(sess *net.Session, p *player.Player) {
if p.Level(player.Pharmacy) < c.Level {
continue
}
- if !craftHasAllItems(c, p.HasItem) {
+ if !craftHasAllItems(c, p.CountItem) {
continue
}
matchItem = item
@@ -89,7 +89,7 @@ func (g *Game) advanceClean(sess *net.Session, p *player.Player) {
continue
}
}
- if p.Level(player.Pharmacy) >= c.Level && craftHasAllItems(c, p.HasItem) {
+ if p.Level(player.Pharmacy) >= c.Level && craftHasAllItems(c, p.CountItem) {
hasMore = true
break
}