aboutsummaryrefslogtreecommitdiff
path: root/internal/game/action_use.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-11 20:41:06 -0400
committerhistoria <[not public]>2026-06-11 20:41:06 -0400
commitd6ab0e93a64525ce34f89e26d5272efbac513c32 (patch)
treed0ec59a72a32a15d0917d9c6c3bfa2f2a424c1f1 /internal/game/action_use.go
parent6b2b4bf470b655f01c5a21c5f558a6102402c214 (diff)
downloadthehouseoficarus-d6ab0e93a64525ce34f89e26d5272efbac513c32.tar.gz
feat: big map and options changes
Diffstat (limited to 'internal/game/action_use.go')
-rw-r--r--internal/game/action_use.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/game/action_use.go b/internal/game/action_use.go
index c1a07ed..69d29c1 100644
--- a/internal/game/action_use.go
+++ b/internal/game/action_use.go
@@ -105,7 +105,7 @@ func (g *Game) advanceUse(sess *net.Session, p *player.Player) {
itemName = def.Name
}
line := fmt.Sprintf("You make a %s.", itemName)
- if cfg.XP > 0 && p.Toggles["xpdrops"] {
+ if cfg.XP > 0 && p.OptionBool("xpdrops") {
line += fmt.Sprintf(" (+%dxp %s)", cfg.XP, player.SkillAbbr[player.SkillName(cfg.Skill)])
}
sess.WriteLine(line)