Tweaked Monolith Aggro Rate
* Decreased aggro rate to 3 to compensate for Monoliths pre-aggroing up to aggroCap * Clarified aggroCap selection
This commit is contained in:
parent
03ab75b80c
commit
3a2c87cce9
1 changed files with 4 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue