HUD: a weapon says what its ammunition label shows; a beam reads its reserve alone

ConstantWeapon names an AmmoType but has no magazine (a crate per AmmoInterval straight from the cargo), so the label printed its unfilled
magazine ("1/N"). Weapon.AmmoReadout owns the label's text, HasMagazine says whether there is a magazine to show, and SchematicDisplay reads it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Nibu 2026-11-11 04:36:56 +00:00
commit 908712b2ee
4 changed files with 36 additions and 1 deletions

View file

@ -234,7 +234,7 @@ public class SchematicDisplay : MonoBehaviour
x.ListElement.CooldownFill.anchorMax = new Vector2(x.Cooldown.Progress, 1);
x.ListElement.DurabilityLabel.text = $"{(int)(x.Row.Item.EquippableItem.Durability / itemData.Durability * 100)}%";
if (x.Weapon.WeaponData.AmmoType.IsSet())
x.ListElement.AmmoLabel.text = $"{x.Weapon.Ammo}/{x.Weapon.Reserve}";
x.ListElement.AmmoLabel.text = x.Weapon.AmmoReadout;
}
if (x.ListElement.RangeLabel)