Some tweaks to the monolith- make it look great.
This commit is contained in:
@@ -131,7 +131,7 @@ public class MobMonolith extends EntityFlying implements IMob
|
|||||||
public void onEntityUpdate()
|
public void onEntityUpdate()
|
||||||
{
|
{
|
||||||
// Remove this Monolith if it's not in Limbo or in a pocket dimension
|
// Remove this Monolith if it's not in Limbo or in a pocket dimension
|
||||||
if (!(this.worldObj.provider instanceof LimboProvider || this.worldObj.provider instanceof PocketProvider))
|
if (!(this.worldObj.provider.dimensionId == properties.LimboDimensionID|| this.worldObj.provider instanceof PocketProvider))
|
||||||
{
|
{
|
||||||
this.setDead();
|
this.setDead();
|
||||||
super.onEntityUpdate();
|
super.onEntityUpdate();
|
||||||
@@ -191,12 +191,12 @@ public class MobMonolith extends EntityFlying implements IMob
|
|||||||
// Rapidly increase the aggro level if this Monolith can see the player
|
// Rapidly increase the aggro level if this Monolith can see the player
|
||||||
if (visibility)
|
if (visibility)
|
||||||
{
|
{
|
||||||
if (this.worldObj.provider instanceof LimboProvider)
|
if (this.worldObj.provider.dimensionId == properties.LimboDimensionID)
|
||||||
{
|
{
|
||||||
if (isDangerous())
|
if (isDangerous())
|
||||||
aggro++;
|
aggro++;
|
||||||
else
|
else
|
||||||
aggro += 18;
|
aggro += 36;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -206,16 +206,16 @@ public class MobMonolith extends EntityFlying implements IMob
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (aggro > aggroCap)
|
if (isDangerous()) {
|
||||||
{
|
if (aggro > aggroCap) {
|
||||||
// Decrease aggro over time
|
// Decrease aggro over time
|
||||||
aggro--;
|
aggro--;
|
||||||
}
|
} else if (player != null && (aggro < aggroCap)) {
|
||||||
else if (player != null && (aggro < aggroCap))
|
|
||||||
{
|
|
||||||
// Increase aggro if a player is within range and aggro < aggroCap
|
// Increase aggro if a player is within range and aggro < aggroCap
|
||||||
aggro++;
|
aggro++;
|
||||||
}
|
}
|
||||||
|
} else
|
||||||
|
aggro -= 3;
|
||||||
}
|
}
|
||||||
// Clamp the aggro level
|
// Clamp the aggro level
|
||||||
int maxAggro = isDangerous()?MAX_AGGRO:180;
|
int maxAggro = isDangerous()?MAX_AGGRO:180;
|
||||||
|
|||||||
Reference in New Issue
Block a user