12 public override bool InstancePerEntity =>
true;
13 public override bool CloneNewInstances =>
true;
20 public bool IsCheated {
get;
internal set; }
22 public bool ShouldBeIgnored(Item item, Player player)
23 => !IsCheated && IsInVanitySot(item, player)
24 || IsCheated && !IsInVanitySot(item, player) && !IsInInventory(item, player);
26 public bool IsInInventory(Item item, Player player)
27 => player.inventory.Any(x => x.IsTheSameAs(item));
32 public bool IsInVanitySot(Item item, Player player)
33 => player.armor.Skip(13).Any(x => x.IsTheSameAs(item));
35 private bool IsNotEquippedAtAll(Item item, Player player)
36 => !player.armor.Any(x => x.IsTheSameAs(item));
40 if (IsInVanitySot(item, player) || IsNotEquippedAtAll(item, player))
48 if (IsInVanitySot(item, player) || IsNotEquippedAtAll(item, player))
override void UpdateInventory(Item item, Player player)
override void UpdateEquip(Item item, Player player)
override void PostUpdate(Item item)
Can detect if an item was activated via cheats
override void UpdateAccessory(Item item, Player player, bool hideVisual)