Tweaked Monolith Aggro Rate #162
@@ -22,7 +22,8 @@ import StevenDimDoors.mod_pocketDim.world.PocketProvider;
|
|||||||
public class MobMonolith extends EntityFlying implements IMob
|
public class MobMonolith extends EntityFlying implements IMob
|
||||||
{
|
{
|
||||||
private static final short MAX_AGGRO = 200;
|
private static final short MAX_AGGRO = 200;
|
||||||
private static final short MAX_AGGRO_CAP = 100;
|
private static final short MAX_AGGRO_CAP = 80;
|
||||||
|
private static final short MIN_AGGRO_CAP = 20;
|
||||||
private static final int MAX_TEXTURE_STATE = 18;
|
private static final int MAX_TEXTURE_STATE = 18;
|
||||||
private static final int MAX_SOUND_COOLDOWN = 200;
|
private static final int MAX_SOUND_COOLDOWN = 200;
|
||||||
private static final int MAX_AGGRO_RANGE = 35;
|
private static final int MAX_AGGRO_RANGE = 35;
|
||||||
@@ -44,7 +45,7 @@ public class MobMonolith extends EntityFlying implements IMob
|
|||||||
super(world);
|
super(world);
|
||||||
this.setSize(WIDTH, HEIGHT);
|
this.setSize(WIDTH, HEIGHT);
|
||||||
this.noClip = true;
|
this.noClip = true;
|
||||||
this.aggroCap = (short) (this.rand.nextInt(MAX_AGGRO_CAP + 1)+20);
|
this.aggroCap = (short) MathHelper.getRandomIntegerInRange(this.rand, MIN_AGGRO_CAP, MAX_AGGRO_CAP);
|
||||||
if (properties == null)
|
if (properties == null)
|
||||||
properties = DDProperties.instance();
|
properties = DDProperties.instance();
|
||||||
}
|
}
|
||||||
@@ -188,7 +189,7 @@ public class MobMonolith extends EntityFlying implements IMob
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// Aggro increases faster outside of Limbo
|
// Aggro increases faster outside of Limbo
|
||||||
aggro += 4;
|
aggro += 3;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user