|
|
@ -9,12 +9,12 @@ |
|
|
|
|
|
|
|
|
|
|
|
package engine.objects; |
|
|
|
package engine.objects; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import engine.Enum; |
|
|
|
import engine.exception.SerializationException; |
|
|
|
import engine.exception.SerializationException; |
|
|
|
import engine.gameManager.PowersManager; |
|
|
|
import engine.gameManager.PowersManager; |
|
|
|
import engine.net.ByteBufferWriter; |
|
|
|
import engine.net.ByteBufferWriter; |
|
|
|
import engine.powers.EffectsBase; |
|
|
|
import engine.powers.EffectsBase; |
|
|
|
import engine.powers.poweractions.AbstractPowerAction; |
|
|
|
import engine.powers.poweractions.AbstractPowerAction; |
|
|
|
import org.pmw.tinylog.Logger; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
import java.util.concurrent.atomic.AtomicInteger; |
|
|
|
|
|
|
|
|
|
|
@ -61,13 +61,8 @@ public class MobEquipment extends AbstractGameObject { |
|
|
|
this.itemBase = ItemBase.getItemBase(itemBaseID); |
|
|
|
this.itemBase = ItemBase.getItemBase(itemBaseID); |
|
|
|
this.template = ItemTemplate.itemTemplates.get(itemBaseID); |
|
|
|
this.template = ItemTemplate.itemTemplates.get(itemBaseID); |
|
|
|
|
|
|
|
|
|
|
|
if (this.itemBase != null) |
|
|
|
Enum.EquipSlotType equipSlot = template.item_eq_slots_and.iterator().next(); |
|
|
|
this.slot = this.itemBase.getValidSlot(); |
|
|
|
this.slot = equipSlot.ordinal(); |
|
|
|
else { |
|
|
|
|
|
|
|
Logger.error("Failed to find Itembase for ID : " + itemBaseID); |
|
|
|
|
|
|
|
this.slot = 0; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.dropChance = dropChance; |
|
|
|
this.dropChance = dropChance; |
|
|
|
|
|
|
|
|
|
|
|
this.parentID = 0; |
|
|
|
this.parentID = 0; |
|
|
|