hellgates maybe? round 7
This commit is contained in:
@@ -20,13 +20,17 @@ public class HellgateManager {
|
|||||||
public static void Reset(Hellgate hellgate){
|
public static void Reset(Hellgate hellgate){
|
||||||
for(Mob mob : hellgate.mobs){
|
for(Mob mob : hellgate.mobs){
|
||||||
mob.respawn();
|
mob.respawn();
|
||||||
|
mob.destination = mob.bindLoc;
|
||||||
|
mob.setLoc(mob.bindLoc);
|
||||||
LootManager.GenerateStrongholdLoot(mob,false,false);
|
LootManager.GenerateStrongholdLoot(mob,false,false);
|
||||||
}
|
}
|
||||||
for(Mob mob : hellgate.mini_bosses){
|
for(Mob mob : hellgate.mini_bosses){
|
||||||
mob.respawn();
|
mob.respawn();
|
||||||
|
mob.setLoc(mob.bindLoc);
|
||||||
LootManager.GenerateStrongholdLoot(mob,true,false);
|
LootManager.GenerateStrongholdLoot(mob,true,false);
|
||||||
}
|
}
|
||||||
hellgate.boss.respawn();
|
hellgate.boss.respawn();
|
||||||
|
hellgate.boss.setLoc(hellgate.boss.bindLoc);
|
||||||
LootManager.GenerateStrongholdLoot(hellgate.boss,false,true);
|
LootManager.GenerateStrongholdLoot(hellgate.boss,false,true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,13 +162,13 @@ public class HellgateManager {
|
|||||||
|
|
||||||
//handle MobAI controller
|
//handle MobAI controller
|
||||||
for(Hellgate hellgate : HellgateManager.hellgates){
|
for(Hellgate hellgate : HellgateManager.hellgates){
|
||||||
for(Mob mob : hellgate.mobs){
|
//for(Mob mob : hellgate.mobs){
|
||||||
MobAI.DetermineAction(mob);
|
// MobAI.DetermineAction(mob);
|
||||||
}
|
//}
|
||||||
for(Mob mob : hellgate.mini_bosses){
|
//for(Mob mob : hellgate.mini_bosses){
|
||||||
MobAI.DetermineAction(mob);
|
// MobAI.DetermineAction(mob);
|
||||||
}
|
//}
|
||||||
MobAI.DetermineAction(hellgate.boss);
|
//MobAI.DetermineAction(hellgate.boss);
|
||||||
|
|
||||||
//check if boss has been defeated
|
//check if boss has been defeated
|
||||||
if(!hellgate.boss.isAlive() && hellgate.completionTime == 0L){
|
if(!hellgate.boss.isAlive() && hellgate.completionTime == 0L){
|
||||||
@@ -181,7 +185,8 @@ public class HellgateManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//reset hellgate on 15 minute intervals
|
//reset hellgate on 15 minute intervals
|
||||||
if(!hellgate.boss.isAlive() && hellgate.completionTime != 0L && hellgate.completionTime + MBServerStatics.FIFTEEN_MINUTES < System.currentTimeMillis()){
|
//if(!hellgate.boss.isAlive() && hellgate.completionTime != 0L && hellgate.completionTime + MBServerStatics.FIFTEEN_MINUTES < System.currentTimeMillis()){
|
||||||
|
if(!hellgate.boss.isAlive() && hellgate.completionTime != 0L && hellgate.completionTime + 5000 < System.currentTimeMillis()){
|
||||||
Reset(hellgate);
|
Reset(hellgate);
|
||||||
ChatSystemMsg chatMsg = new ChatSystemMsg(null, "Citadel Ruins Hellgate Has Begun!");
|
ChatSystemMsg chatMsg = new ChatSystemMsg(null, "Citadel Ruins Hellgate Has Begun!");
|
||||||
chatMsg.setMessageType(10);
|
chatMsg.setMessageType(10);
|
||||||
|
|||||||
@@ -129,6 +129,7 @@ public class Mob extends AbstractIntelligenceAgent {
|
|||||||
this.parentZone = parent;
|
this.parentZone = parent;
|
||||||
this.parentZoneID = (parent != null) ? parent.getObjectUUID() : 0;
|
this.parentZoneID = (parent != null) ? parent.getObjectUUID() : 0;
|
||||||
this.building = building;
|
this.building = building;
|
||||||
|
this.bonuses = new PlayerBonuses(this);
|
||||||
|
|
||||||
if (building != null)
|
if (building != null)
|
||||||
this.buildingID = building.getObjectUUID();
|
this.buildingID = building.getObjectUUID();
|
||||||
|
|||||||
Reference in New Issue
Block a user