Merge pull request #162 from SenseiKiwi/master
Tweaked Monolith Aggro Rate
This commit is contained in:
commit
8562456203
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
|
||||
{
|
||||
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_SOUND_COOLDOWN = 200;
|
||||
private static final int MAX_AGGRO_RANGE = 35;
|
||||
|
@ -44,7 +45,7 @@ public class MobMonolith extends EntityFlying implements IMob
|
|||
super(world);
|
||||
this.setSize(WIDTH, HEIGHT);
|
||||
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)
|
||||
properties = DDProperties.instance();
|
||||
}
|
||||
|
@ -188,7 +189,7 @@ public class MobMonolith extends EntityFlying implements IMob
|
|||
else
|
||||
{
|
||||
// Aggro increases faster outside of Limbo
|
||||
aggro += 4;
|
||||
aggro += 3;
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue