Require typed weapon facets for schematic icons
This commit is contained in:
parent
dce2ec7591
commit
fee50c5ad6
4 changed files with 2 additions and 13 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue