diff options
Diffstat (limited to 'internal/game/render_prompt.go')
| -rw-r--r-- | internal/game/render_prompt.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/game/render_prompt.go b/internal/game/render_prompt.go index ad1ba9c..9d7b20a 100644 --- a/internal/game/render_prompt.go +++ b/internal/game/render_prompt.go @@ -36,6 +36,8 @@ func (g *Game) expandPromptVars(sess *net.Session, text string) string { 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, "%r", fmt.Sprint(p.RunEnergy)) + text = strings.ReplaceAll(text, "%R", fmt.Sprint(p.MaxRunEnergy())) text = strings.ReplaceAll(text, "%c", fmt.Sprint(p.Credits)) text = strings.ReplaceAll(text, "%k", fmt.Sprint(countChips(p))) text = strings.ReplaceAll(text, "%i", fmt.Sprint(p.FreeSlots())) |
