diff options
| author | historia <[not public]> | 2026-08-03 17:15:50 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-08-03 17:15:50 -0400 |
| commit | a2cbc04f86508708daa09affa5e9d73cc689b2ba (patch) | |
| tree | 0d0c6c7fbf4a775faaf5e9dd700157b883882638 /internal/game/act_talk.go | |
| parent | adda27dba5bf7bf1dee62159f0cbc0bd90734751 (diff) | |
| download | thehouseoficarus-a2cbc04f86508708daa09affa5e9d73cc689b2ba.tar.gz | |
feat: new color 'command', color tag system implemented
Diffstat (limited to 'internal/game/act_talk.go')
| -rw-r--r-- | internal/game/act_talk.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/game/act_talk.go b/internal/game/act_talk.go index 8de58df..dfa7b94 100644 --- a/internal/game/act_talk.go +++ b/internal/game/act_talk.go @@ -5,7 +5,6 @@ import ( "strings" "thehouseoficarus/internal/behavior" - "thehouseoficarus/internal/color" "thehouseoficarus/internal/net" "thehouseoficarus/internal/object" "thehouseoficarus/internal/player" @@ -100,7 +99,7 @@ func (g *Game) showTalkNode(sess *net.Session, node behavior.TalkNode) { td.SeqIndex = 0 msg := node.Messages[0] if msg != "" { - sess.WriteLine(color.ExpandDialogTags(g.colorMode(sess), dialogSpec, msg)) + sess.WriteLine(g.expandDialogTags(sess, dialogSpec, msg)) } td.SeqIndex = 1 if td.SeqIndex < len(node.Messages) { @@ -118,7 +117,7 @@ func (g *Game) showTalkNode(sess *net.Session, node behavior.TalkNode) { visible := g.visibleOptions(sess, node.Options) if len(visible) > 0 { for i, opt := range visible { - sess.WriteLine(fmt.Sprintf(" %d. %s", i+1, color.ExpandDialogTags(g.colorMode(sess), g.resolveColor(sess, "dialog_options"), opt.Text))) + sess.WriteLine(fmt.Sprintf(" %d. %s", i+1, g.expandDialogTags(sess, g.resolveColor(sess, "dialog_options"), opt.Text))) } sess.State = net.StateTalk g.reprompt(sess) @@ -158,7 +157,7 @@ func (g *Game) finishSequence(sess *net.Session, node behavior.TalkNode) { visible := g.visibleOptions(sess, node.Options) if len(visible) > 0 { for i, opt := range visible { - sess.WriteLine(fmt.Sprintf(" %d. %s", i+1, color.ExpandDialogTags(g.colorMode(sess), g.resolveColor(sess, "dialog_options"), opt.Text))) + sess.WriteLine(fmt.Sprintf(" %d. %s", i+1, g.expandDialogTags(sess, g.resolveColor(sess, "dialog_options"), opt.Text))) } sess.State = net.StateTalk g.reprompt(sess) @@ -294,7 +293,7 @@ func (g *Game) advanceTalk(sess *net.Session, p *player.Player) { if td.SeqIndex < len(node.Messages) { msg := node.Messages[td.SeqIndex] if msg != "" { - sess.WriteLine(color.ExpandDialogTags(g.colorMode(sess), dialogSpec, msg)) + sess.WriteLine(g.expandDialogTags(sess, dialogSpec, msg)) } td.SeqIndex++ } |
