aboutsummaryrefslogtreecommitdiff
path: root/internal/game/sys_hazard.go
diff options
context:
space:
mode:
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.