aboutsummaryrefslogtreecommitdiff
path: root/internal/game/sys_hazard.go
diff options
context:
space:
mode:
authorhistoria <[not public]>2026-06-26 02:52:31 -0400
committerhistoria <[not public]>2026-06-26 02:52:31 -0400
commit3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5 (patch)
tree65610fa4fb8abe1dc7a46d00658e85e0525d397c /internal/game/sys_hazard.go
parente2d5b081f27141bb3dd89dbe595860b8a1345d55 (diff)
downloadthehouseoficarus-3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5.tar.gz
feat: simplified conversation trees and output won't overwrite prompts now
Diffstat (limited to 'internal/game/sys_hazard.go')
-rw-r--r--internal/game/sys_hazard.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/game/sys_hazard.go b/internal/game/sys_hazard.go
index 29bf65e..c3b52b7 100644
--- a/internal/game/sys_hazard.go
+++ b/internal/game/sys_hazard.go
@@ -92,7 +92,7 @@ func (g *Game) rollHazard(sess *net.Session, p *player.Player, hz *world.HazardD
if miss == "" {
miss = fmt.Sprintf("You weather the %s.", hz.Name)
}
- sess.WriteLine("\n" + g.colorize(sess, "miss", miss))
+ sess.WriteLine(g.colorize(sess, "miss", miss))
g.writePrompt(sess)
}
}
@@ -123,7 +123,7 @@ func (g *Game) applyHazardHit(sess *net.Session, p *player.Player, hz *world.Haz
msg = fmt.Sprintf(msg, dmg)
}
hpSuffix := fmt.Sprintf(" %s [%d/%d]", g.hpBar(sess, p.HP, p.MaxHP()), p.HP, p.MaxHP())
- sess.WriteLine("\n" + g.colorize(sess, "damage_taken", msg) + hpSuffix)
+ sess.WriteLine(g.colorize(sess, "damage_taken", msg) + hpSuffix)
// NB: a hazard never clears MoveState, so it cannot interrupt a walk the way
// a mob hit ("Can't escape!") does.