ABS char skill system

This commit is contained in:
2024-03-27 17:17:34 -05:00
parent 27d869276a
commit aff2a8fa0e
16 changed files with 542 additions and 656 deletions
-45
View File
@@ -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;
}