aboutsummaryrefslogtreecommitdiff
path: root/internal/game/act_gather.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/game/act_gather.go')
-rw-r--r--internal/game/act_gather.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/game/act_gather.go b/internal/game/act_gather.go
index 0c743e7..826b901 100644
--- a/internal/game/act_gather.go
+++ b/internal/game/act_gather.go
@@ -94,7 +94,7 @@ func (g *Game) startGather(sess *net.Session, p *player.Player, obj *object.Obje
verb = "chopping"
}
- g.broadcastAction(sess, "\n%s starts %s the %s.", p.Name, verb, obj.Name)
+ g.broadcastAction(sess, "%s starts %s the %s.", p.Name, verb, obj.Name)
d := &behavior.GatherData{
ObjDefID: obj.ID,
@@ -259,7 +259,7 @@ func (g *Game) advanceGather(sess *net.Session, p *player.Player) {
continue
}
if gd, ok := op.Action.Data.(*behavior.GatherData); ok && gd.InstanceKey == instanceKey {
- other.WriteLine(fmt.Sprintf("\nThe %s was depleted by %s!", g.colorize(sess, "item", p.Action.TargetName), g.colorize(sess, "player_name", p.Name)))
+ other.WriteLine(fmt.Sprintf("The %s was depleted by %s!", g.colorize(sess, "item", p.Action.TargetName), g.colorize(sess, "player_name", p.Name)))
g.cancelAction(op)
g.writePrompt(other)
}
@@ -330,10 +330,10 @@ func (g *Game) depleteSharedTree(st *world.ObjState, cfg *behavior.GatherConfig,
}
}
if isDepleter {
- sess.WriteLine(fmt.Sprintf("\n%s", msg))
+ sess.WriteLine(msg)
continue
}
- sess.WriteLine(fmt.Sprintf("\n%s", msg))
+ sess.WriteLine(msg)
g.cancelAction(op)
g.writePrompt(sess)
}