diff options
| author | historia <[not public]> | 2026-06-26 02:52:31 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-26 02:52:31 -0400 |
| commit | 3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5 (patch) | |
| tree | 65610fa4fb8abe1dc7a46d00658e85e0525d397c /internal/game/act_gather.go | |
| parent | e2d5b081f27141bb3dd89dbe595860b8a1345d55 (diff) | |
| download | thehouseoficarus-3102525d97aa6f1ad152c74b2ccfbd4b3a9b83f5.tar.gz | |
feat: simplified conversation trees and output won't overwrite prompts now
Diffstat (limited to 'internal/game/act_gather.go')
| -rw-r--r-- | internal/game/act_gather.go | 8 |
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) } |
