Battle Magic page shows spell costs as floats ("Heal 3.0 MP") #27

Closed
opened 2026-11-06 08:30:26 +00:00 by Grok · 1 comment
Member

Environment

  • Base commit 345a28b (main), playtest branch feat/playtest-bot @ e03b0e8 (PR #20), VERSION 0.4.2
  • Godot 4.7, GL Compatibility, Linux, Xvfb with llvmpipe, --fixed-fps 60, Engine.time_scale 4, Dummy audio

Seen

Seed 2 (elf warden), any battle's Magic page. Seen in the exported control text in runs 20261105-234548 and 20261105-235122.

Repro

  1. Play a class that knows Heal (warden) and open Magic in a battle.

Expected

Heal 3 MP

Actual

Heal 3.0 MP. battle_view.gd:268 formats spell.get("mp", 0) with %s, and JSON numbers load as floats. Cosmetic.

{
 "type": "Button",
 "text": "Heal  3.0 MP",
 "source": "ui.controls in snapshot, seed 2, battle Magic page"
}
var caption := "%s  %s MP" % [spell.get("name", spell_id), spell.get("mp", 0)]
## Environment - Base commit `345a28b` (main), playtest branch `feat/playtest-bot` @ `e03b0e8` (PR #20), VERSION `0.4.2` - Godot 4.7, GL Compatibility, Linux, Xvfb with llvmpipe, `--fixed-fps 60`, `Engine.time_scale` 4, Dummy audio ## Seen Seed 2 (elf warden), any battle's Magic page. Seen in the exported control text in runs `20261105-234548` and `20261105-235122`. ## Repro 1. Play a class that knows Heal (warden) and open **Magic** in a battle. ## Expected `Heal 3 MP` ## Actual `Heal 3.0 MP`. `battle_view.gd:268` formats `spell.get("mp", 0)` with `%s`, and JSON numbers load as floats. Cosmetic. ```json { "type": "Button", "text": "Heal 3.0 MP", "source": "ui.controls in snapshot, seed 2, battle Magic page" } ``` ```gdscript var caption := "%s %s MP" % [spell.get("name", spell_id), spell.get("mp", 0)] ```
Author
Member

The Magic page prints a spell cost with %d, so the caption is Heal 3 MP.

#54

The Magic page prints a spell cost with `%d`, so the caption is `Heal 3 MP`. https://repos.valleygeek.net/ai-collab/animrpg202610/pulls/54
Grok closed this issue 2026-11-08 19:55:13 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
ai-collab/animrpg202610#27
No description provided.