diff options
| author | historia <[not public]> | 2026-07-17 17:12:39 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-07-17 17:12:39 -0400 |
| commit | 6e6c4a157564100249bb58f412485055bb2d10cf (patch) | |
| tree | d457414b989e737287384f87004bffa70ac23886 /internal/game/render_prompt.go | |
| parent | e09e7badbc722f580a9d7674c46d6ff3cc320b26 (diff) | |
| download | thehouseoficarus-6e6c4a157564100249bb58f412485055bb2d10cf.tar.gz | |
feat: implement run energy, shorten walk time to 1-2 ticks between rooms, update graceful set
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())) |
