aboutsummaryrefslogtreecommitdiff
path: root/internal/game/cmd_attack.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-15 00:03:55 -0400
committerhistoria <[not public]>2026-06-15 00:03:55 -0400
commitb6fdde0aa6fcefd735e7c550aaa7fca879023f1c (patch)
tree924be72a906522d60512213cdbaba1f55e694bd3 /internal/game/cmd_attack.go
parenteb37418b933d7bd996658209e867ea3f3e3806ec (diff)
downloadthehouseoficarus-b6fdde0aa6fcefd735e7c550aaa7fca879023f1c.tar.gz
feat: unicode option, fixed up options and tables
Diffstat (limited to 'internal/game/cmd_attack.go')
-rw-r--r--internal/game/cmd_attack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/cmd_attack.go b/internal/game/cmd_attack.go
index ef80189..ca5bc4c 100644
--- a/internal/game/cmd_attack.go
+++ b/internal/game/cmd_attack.go
@@ -215,7 +215,7 @@ func (g *Game) playerAttack(sess *net.Session, p *player.Player, mob *world.MobI
prefix := fmt.Sprintf(" You hit %s for %d damage.", mobName, dmg)
hpPart := fmt.Sprintf("[%d/%dhp]", mob.HP, mob.MaxHP)
line := fmt.Sprintf("%-*s %s", g.combatPadWidth, prefix, hpPart)
- if p.OptionBool("xpdrops") && len(gains) > 0 {
+ if p.OptionBool("xp_drops") && len(gains) > 0 {
var parts []string
for _, gain := range gains {
parts = append(parts, fmt.Sprintf("+%dxp %s", gain.XP, player.SkillAbbr[player.SkillName(gain.Skill)]))
@@ -462,7 +462,7 @@ func (g *Game) respawnMob(instanceID string) {
if g.Hub != nil {
for _, sess := range g.Hub.PlayersInRoom(homeRoom) {
- if p, ok := sess.Player.(*player.Player); ok && p.OptionBool("mobspawn") {
+ if p, ok := sess.Player.(*player.Player); ok && p.OptionBool("mob_spawn") {
sess.WriteLine(fmt.Sprintf("\n%s (level %d) spawns in the area.", mobDisplayName(inst, false), mobCombatLevel(inst)))
}
}