aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_clean.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-19 18:20:26 -0400
committerhistoria <[not public]>2026-06-19 18:20:26 -0400
commit0ea4eec5dd2122c6704216971eb1249276297867 (patch)
tree430fbbef04e837820f1d031c190f52ecd6112e25 /internal/game/action_clean.go
parent3a58125d14bb307f861b38c6c5b0a63babde7e08 (diff)
downloadthehouseoficarus-0ea4eec5dd2122c6704216971eb1249276297867.tar.gz
shop fixes, 'toggle' completely removed, movement speed increased
Diffstat (limited to 'internal/game/action_clean.go')
-rw-r--r--internal/game/action_clean.go11
1 files changed, 4 insertions, 7 deletions
diff --git a/internal/game/action_clean.go b/internal/game/action_clean.go
index dab3619..104dcb0 100644
--- a/internal/game/action_clean.go
+++ b/internal/game/action_clean.go
@@ -21,7 +21,7 @@ func (g *Game) advanceClean(sess *net.Session, p *player.Player) {
allRecipes, err := g.RecipeStore.LoadAll()
if err != nil {
- g.CancelBackgroundAction(p)
+ g.cancelBackgroundAction(p)
return
}
@@ -51,7 +51,7 @@ func (g *Game) advanceClean(sess *net.Session, p *player.Player) {
if recipe == nil {
sess.WriteLine("\nYou've finished cleaning herbs.")
- g.CancelBackgroundAction(p)
+ g.cancelBackgroundAction(p)
return
}
@@ -64,10 +64,7 @@ func (g *Game) advanceClean(sess *net.Session, p *player.Player) {
}
if recipe.xp > 0 {
- if newLevel := p.AddSkillXP(player.Pharmacy, recipe.xp); newLevel > 0 {
- sess.WriteLine(g.colorize(sess, "level_up",
- fmt.Sprintf("*** You are now level %d pharmacy! ***", newLevel)))
- }
+ g.awardSkillXP(sess, p, player.Pharmacy, recipe.xp)
}
g.AccountStore.SaveCharacter(p)
@@ -108,7 +105,7 @@ func (g *Game) advanceClean(sess *net.Session, p *player.Player) {
if !hasMore {
sess.WriteLine("\nYou've finished cleaning herbs.")
- g.CancelBackgroundAction(p)
+ g.cancelBackgroundAction(p)
return
}