diff options
| author | historia <[not public]> | 2026-06-19 02:40:22 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-19 02:40:22 -0400 |
| commit | 2ae4a052fd1c15c3c6ba0f1dd324d896371aaffc (patch) | |
| tree | 3caef60f71a462b7e7ace668053e1f02fb61db15 /internal/game/prompt.go | |
| parent | 86aec0e14eb6fec0a39d742bab1761dad8d7012c (diff) | |
| download | thehouseoficarus-2ae4a052fd1c15c3c6ba0f1dd324d896371aaffc.tar.gz | |
feat: rough technology skill added
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)) |
