P06-01: Show A06 reserve capacity in HUD, add new-PID and perf evidence

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Takeshi
2026-10-19 20:29:04 +09:00
co-authored by Claude Opus 5.5
parent ae0f998ff4
commit 65534cfd15
5 changed files with 249 additions and 1 deletions
+3 -1
View File
@@ -2793,6 +2793,7 @@ func _phase_name(phase: GameClock.Phase) -> String:
return "夜"
const MANA_RESERVE := preload("res://scripts/mana/mana_reserve_cycle.gd")
const RESOURCE_TITLES := {&"gold": "所持金", &"mana": "マナ", &"materials": "資材", &"faith": "信仰"}
func _resource_title(resource_name: StringName) -> String:
@@ -2805,8 +2806,9 @@ func _on_resource_changed(resource_name: StringName, value: int) -> void:
var label := resource_labels[resource_name] as Label
label.text = "%s %d" % [_resource_title(resource_name), value]
if resource_name == &"mana":
label.text += "/%d" % MANA_RESERVE.CAPACITY
label.mouse_filter = Control.MOUSE_FILTER_STOP
label.tooltip_text = "残量0で全館停止。接客・調理・搬入・エレベーターと新規入館が停止します。\n残量と配電が回復すると再開します。破壊・摘発による休止は解除されません。"
label.tooltip_text = "世界樹が%d分ごとに%dマナを生成し、施設の維持マナを先に支払って残りを最大%dまで蓄えます。\n残量0で全館停止。接客・調理・搬入・エレベーターと新規入館が停止します。\n残量と配電が回復すると再開します。破壊・摘発による休止は解除されません。" % [MANA_RESERVE.INTERVAL_MINUTES, MANA_RESERVE.WORLD_TREE_GENERATION, MANA_RESERVE.CAPACITY]
if value <= 0:
label.text += "・停止"
label.add_theme_color_override("font_color", Color("ffb095"))