diff options
Diffstat (limited to 'internal/game/prompt.go')
| -rw-r--r-- | internal/game/prompt.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/game/prompt.go b/internal/game/prompt.go index de88bc6..c3768fe 100644 --- a/internal/game/prompt.go +++ b/internal/game/prompt.go @@ -36,6 +36,8 @@ func (g *Game) expandPromptVars(sess *net.Session, text string) string { text = strings.ReplaceAll(text, "%%", "\x00") text = strings.ReplaceAll(text, "%h", fmt.Sprint(p.HP)) text = strings.ReplaceAll(text, "%H", fmt.Sprint(p.MaxHP())) + text = strings.ReplaceAll(text, "%b", fmt.Sprintf("%.1f", p.Battery)) + text = strings.ReplaceAll(text, "%B", fmt.Sprintf("%.0f", p.MaxBattery())) text = strings.ReplaceAll(text, "%c", fmt.Sprint(p.Credits)) text = strings.ReplaceAll(text, "%i", fmt.Sprint(p.FreeSlots())) text = strings.ReplaceAll(text, "%s", attackStyleShort(p.AttackStyle)) |
