aboutsummaryrefslogtreecommitdiff
path: root/internal/game/tick.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/tick.go')
-rw-r--r--internal/game/tick.go30
1 files changed, 15 insertions, 15 deletions
diff --git a/internal/game/tick.go b/internal/game/tick.go
index 7567ca7..ab82254 100644
--- a/internal/game/tick.go
+++ b/internal/game/tick.go
@@ -4,9 +4,9 @@ import (
"fmt"
"math/rand"
- "thirdcollapse/internal/combat"
- "thirdcollapse/internal/player"
- "thirdcollapse/internal/world"
+ "thehouseoficarus/internal/combat"
+ "thehouseoficarus/internal/player"
+ "thehouseoficarus/internal/world"
)
func (g *Game) DisconnectTick() {
@@ -127,21 +127,21 @@ func (g *Game) WanderTick() {
if !ok {
continue
}
- if p.RoomID == m.fromRoom && p.OptionBool("mob_leave") {
- if m.level > 0 {
- sess.WriteLine(fmt.Sprintf("\n%s (level %d) leaves.", m.name, m.level))
- } else {
- sess.WriteLine(fmt.Sprintf("\n%s moves away.", m.name))
- }
+ if p.RoomID == m.fromRoom && p.OptionBool("mob_leave") {
+ if m.level > 0 {
+ sess.WriteLine(g.colorize(sess, "broadcast", fmt.Sprintf("\n%s (level %d) leaves.", m.name, m.level)))
+ } else {
+ sess.WriteLine(g.colorize(sess, "broadcast", fmt.Sprintf("\n%s moves away.", m.name)))
}
- if p.RoomID == m.toRoom && p.OptionBool("mob_enter") {
- if m.level > 0 {
- sess.WriteLine(fmt.Sprintf("\n%s (level %d) enters.", m.name, m.level))
- } else {
- sess.WriteLine(fmt.Sprintf("\n%s drifts in.", m.name))
- }
+ }
+ if p.RoomID == m.toRoom && p.OptionBool("mob_enter") {
+ if m.level > 0 {
+ sess.WriteLine(g.colorize(sess, "broadcast", fmt.Sprintf("\n%s (level %d) enters.", m.name, m.level)))
+ } else {
+ sess.WriteLine(g.colorize(sess, "broadcast", fmt.Sprintf("\n%s drifts in.", m.name)))
}
}
+ }
}
}