Require typed weapon facets for schematic icons

This commit is contained in:
Meta Vens 2026-06-14 01:31:53 +01:00
commit fee50c5ad6
4 changed files with 2 additions and 13 deletions

Binary file not shown.

View file

@ -123,8 +123,6 @@ public class SchematicDisplay : MonoBehaviour
var typedWeapon = FindTypedWeapon(x.Item.EquippableItem);
if (typedWeapon != null)
x.ListElement.ShowWeapon(typedWeapon);
else if(x.Item.Data is WeaponItemData weaponItemData)
x.ListElement.ShowWeapon(weaponItemData);
//x.ListElement.Label.text = x.Item.EquippableItem.Name;
if (!_enemy)
{

View file

@ -30,16 +30,6 @@ public class SchematicListElement : MonoBehaviour
ShowWeapon(caliber, range, type, fireTypes, modifiers);
}
public void ShowWeapon(WeaponItemData weapon)
{
ShowWeapon(
weapon.WeaponCaliber,
weapon.WeaponRange,
weapon.WeaponType,
weapon.WeaponFireTypes,
weapon.WeaponModifiers);
}
private void ShowWeapon(
WeaponCaliber caliber,
WeaponRange range,

View file

@ -89,7 +89,8 @@ legacy catalog cache, and legacy UI paths should be migration-only or deleted.
player settings back through the package-owned CultCache reader before falling
back to defaults.
- The combat schematic HUD uses typed runtime catalog weapon facets for its
static weapon icon strip before falling back to legacy `WeaponItemData`.
static weapon icon strip; missing typed weapon facets no longer fall back to
legacy `WeaponItemData`.
Hull and item durability percentages use typed max durability before falling
back to legacy `ItemData.Durability`.
Runtime weapon behavior still owns ammo counts, active range, cooldowns,