make stronghold mobs aggro
This commit is contained in:
@@ -654,7 +654,7 @@ public enum LootManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void DropPresent(Mob mob){
|
public static void DropPresent(Mob mob){
|
||||||
int random = ThreadLocalRandom.current().nextInt(ItemBase.AnniverseryGifts.size());
|
int random = ThreadLocalRandom.current().nextInt(ItemBase.AnniverseryGifts.size() - 1);
|
||||||
int presentID = ItemBase.AnniverseryGifts.get(random);
|
int presentID = ItemBase.AnniverseryGifts.get(random);
|
||||||
ItemBase presentBase = ItemBase.getItemBase(presentID);
|
ItemBase presentBase = ItemBase.getItemBase(presentID);
|
||||||
if(presentBase != null){
|
if(presentBase != null){
|
||||||
|
|||||||
@@ -688,7 +688,7 @@ public class Mine extends AbstractGameObject {
|
|||||||
guard.healthMax *= 2;
|
guard.healthMax *= 2;
|
||||||
guard.setHealth(guard.healthMax);
|
guard.setHealth(guard.healthMax);
|
||||||
guard.spawnTime = 1000000000;
|
guard.spawnTime = 1000000000;
|
||||||
guard.runAfterLoad();
|
guard.BehaviourType = Enum.MobBehaviourType.Aggro;
|
||||||
InterestManager.setObjectDirty(guard);
|
InterestManager.setObjectDirty(guard);
|
||||||
this.strongholdMobs.add(guard);
|
this.strongholdMobs.add(guard);
|
||||||
LootManager.GenerateStrongholdLoot(guard,false);
|
LootManager.GenerateStrongholdLoot(guard,false);
|
||||||
@@ -701,7 +701,7 @@ public class Mine extends AbstractGameObject {
|
|||||||
commander.healthMax *= 2;
|
commander.healthMax *= 2;
|
||||||
commander.setHealth(commander.healthMax);
|
commander.setHealth(commander.healthMax);
|
||||||
commander.spawnTime = 1000000000;
|
commander.spawnTime = 1000000000;
|
||||||
commander.runAfterLoad();
|
commander.BehaviourType = Enum.MobBehaviourType.Aggro;
|
||||||
InterestManager.setObjectDirty(commander);
|
InterestManager.setObjectDirty(commander);
|
||||||
this.strongholdMobs.add(commander);
|
this.strongholdMobs.add(commander);
|
||||||
LootManager.GenerateStrongholdLoot(commander,true);
|
LootManager.GenerateStrongholdLoot(commander,true);
|
||||||
|
|||||||
Reference in New Issue
Block a user