forked from MagicBane/Server
hellgates maybe? round 2
This commit is contained in:
@@ -24,10 +24,14 @@ public class Hellgate {
|
||||
}
|
||||
this.parent = parentZone;
|
||||
this.entrances = new ArrayList<>();
|
||||
entrances.add(ZoneManager.getZoneByUUID(994).getLoc());
|
||||
entrances.add(ZoneManager.getZoneByUUID(996).getLoc());
|
||||
entrances.add(ZoneManager.getZoneByUUID(997).getLoc());
|
||||
entrances.add(ZoneManager.getZoneByUUID(998).getLoc());
|
||||
Zone entrance1 = ZoneManager.getZoneByUUID(994);
|
||||
Zone entrance2 = ZoneManager.getZoneByUUID(996);
|
||||
Zone entrance3 = ZoneManager.getZoneByUUID(997);
|
||||
Zone entrance4 = ZoneManager.getZoneByUUID(998);
|
||||
//entrances.add(ZoneManager.getZoneByUUID(994).getLoc());
|
||||
//entrances.add(ZoneManager.getZoneByUUID(996).getLoc());
|
||||
//entrances.add(ZoneManager.getZoneByUUID(997).getLoc());
|
||||
//entrances.add(ZoneManager.getZoneByUUID(998).getLoc());
|
||||
this.mobs = new ArrayList<>();
|
||||
this.mini_bosses = new ArrayList<>();
|
||||
this.completionTime = 0L;
|
||||
|
||||
@@ -142,6 +142,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
if (building != null && building.getOwner() != null) {
|
||||
this.lastName = "the " + contract.getName();
|
||||
}
|
||||
this.gridObjectType = GridObjectType.DYNAMIC;
|
||||
clearStatic();
|
||||
}
|
||||
|
||||
@@ -2003,11 +2004,15 @@ public class Mob extends AbstractIntelligenceAgent {
|
||||
//skip for pets
|
||||
|
||||
if (this.isPet() == false && (this.agentType.equals(AIAgentType.PET)) == false && this.isNecroPet() == false) {
|
||||
if (this.getMobBase().notEnemy.size() > 0)
|
||||
this.notEnemy.addAll(this.getMobBase().notEnemy);
|
||||
try {
|
||||
if (this.getMobBase().notEnemy.size() > 0)
|
||||
this.notEnemy.addAll(this.getMobBase().notEnemy);
|
||||
|
||||
if (this.getMobBase().enemy.size() > 0)
|
||||
this.enemy.addAll(this.getMobBase().enemy);
|
||||
if (this.getMobBase().enemy.size() > 0)
|
||||
this.enemy.addAll(this.getMobBase().enemy);
|
||||
}catch(Exception ignored){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user