Browse Source

checkf o valid slot type when equipping item

combat-2
FatBoy-DOTC 8 months ago
parent
commit
e1018a48f0
  1. 5
      src/engine/objects/ItemTemplate.java

5
src/engine/objects/ItemTemplate.java

@ -490,6 +490,11 @@ public class ItemTemplate { @@ -490,6 +490,11 @@ public class ItemTemplate {
if (equipped == null)
return false;
//Item not valid for slot
if(item.template.item_eq_slots_or.contains(slot) == false)
return false;
// Slot is taken
if (equipped.get(slot) != null && equipped.get(slot).equals(item) == false)

Loading…
Cancel
Save