|
|
|
@ -95,7 +95,6 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -95,7 +95,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
this.bindLoc = Vector3fImmutable.ZERO; |
|
|
|
|
this.gridObjectType = GridObjectType.DYNAMIC; |
|
|
|
|
this.agentType = AIAgentType.MOBILE; |
|
|
|
|
setResistsForMob(this); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -164,10 +163,6 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -164,10 +163,6 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
this.currentID = this.dbID; |
|
|
|
|
|
|
|
|
|
this.agentType = AIAgentType.MOBILE; |
|
|
|
|
|
|
|
|
|
//this.setResists(Resists.getResists(rs.getInt("mob_spawnType")));
|
|
|
|
|
|
|
|
|
|
setResistsForMob(this); |
|
|
|
|
} catch (Exception e) { |
|
|
|
|
Logger.error(e + " " + this.dbID); |
|
|
|
|
} |
|
|
|
@ -176,7 +171,7 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -176,7 +171,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
|
|
|
|
|
public static void setResistsForMob(Mob mob){ |
|
|
|
|
Resists resists = new Resists("Generic"); |
|
|
|
|
int realmID = RealmMap.getRealmIDAtLocation(mob.loc); |
|
|
|
|
int realmID = RealmMap.getRealmIDAtLocation(mob.bindLoc); |
|
|
|
|
Realm realm = Realm.getRealm(realmID); |
|
|
|
|
//Zone parentMacro = null;
|
|
|
|
|
//for(Zone zone : ZoneManager.getAllZonesIn(mob.loc)){
|
|
|
|
@ -1897,6 +1892,9 @@ public class Mob extends AbstractIntelligenceAgent {
@@ -1897,6 +1892,9 @@ public class Mob extends AbstractIntelligenceAgent {
|
|
|
|
|
this.maxDamageHandTwo *= 2; |
|
|
|
|
this.minDamageHandOne *= 2; |
|
|
|
|
this.minDamageHandTwo *= 2; |
|
|
|
|
this.mobResists = new Resists("Dropper"); |
|
|
|
|
} else{ |
|
|
|
|
setResistsForMob(this); |
|
|
|
|
} |
|
|
|
|
//for(Item loot : this.charItemManager.getInventory()){
|
|
|
|
|
// if(loot.getItemBase().isDiscRune() && this.level < 80){
|
|
|
|
|