forked from MagicBane/Server
ABS char skill system
This commit is contained in:
@@ -1500,44 +1500,6 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
|
||||
}
|
||||
|
||||
|
||||
public ItemBase getWeaponItemBase(boolean mainHand) {
|
||||
|
||||
if (this.equipmentSetID != 0)
|
||||
if (charItemManager.equipped != null) {
|
||||
Item me;
|
||||
|
||||
if (mainHand)
|
||||
me = charItemManager.equipped.get(EquipSlotType.RHELD); //mainHand
|
||||
else
|
||||
me = charItemManager.equipped.get(EquipSlotType.LHELD); //offHand
|
||||
|
||||
if (me != null) {
|
||||
|
||||
ItemBase ib = me.getItemBase();
|
||||
|
||||
if (ib != null)
|
||||
return ib;
|
||||
|
||||
}
|
||||
}
|
||||
MobBase mb = this.mobBase;
|
||||
|
||||
if (mb != null)
|
||||
if (this.charItemManager.equipped.isEmpty() == false) {
|
||||
|
||||
Item me;
|
||||
|
||||
if (mainHand)
|
||||
me = this.charItemManager.equipped.get(EquipSlotType.RHELD); //mainHand
|
||||
else
|
||||
me = this.charItemManager.equipped.get(EquipSlotType.LHELD); //offHand
|
||||
|
||||
if (me != null)
|
||||
return me.getItemBase();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void runAfterLoad() {
|
||||
|
||||
@@ -1767,9 +1729,6 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
|
||||
return lastAttackTime;
|
||||
}
|
||||
|
||||
public void setLastAttackTime(long lastAttackTime) {
|
||||
this.lastAttackTime = lastAttackTime;
|
||||
}
|
||||
|
||||
public void setDeathTime(long deathTime) {
|
||||
this.deathTime = deathTime;
|
||||
@@ -1779,10 +1738,6 @@ public class Mob extends AbstractIntelligenceAgent implements Delayed {
|
||||
return hasLoot;
|
||||
}
|
||||
|
||||
public DeferredPowerJob getWeaponPower() {
|
||||
return weaponPower;
|
||||
}
|
||||
|
||||
public void setWeaponPower(DeferredPowerJob weaponPower) {
|
||||
this.weaponPower = weaponPower;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user