#178 - Adjusted all of the health on the mobs.

This commit is contained in:
KingPhygieBoo 2017-11-19 22:38:16 -06:00
parent d6d7922da9
commit 53c6fe652a
3 changed files with 18 additions and 4 deletions

View file

@ -55,9 +55,9 @@ public class EntityCockatrice extends EntityMob
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(0.25D);
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(10D);
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(20D);
this.getEntityAttribute(SharedMonsterAttributes.FOLLOW_RANGE).setBaseValue(35.0D);
this.setHealth(10);
this.setHealth(20);
}
@Override

View file

@ -1,6 +1,7 @@
package com.legacy.aether.common.entities.hostile;
import net.minecraft.entity.EntityFlying;
import net.minecraft.entity.SharedMonsterAttributes;
import net.minecraft.entity.ai.EntityAILookIdle;
import net.minecraft.entity.ai.EntityAIWatchClosest;
import net.minecraft.entity.monster.IMob;
@ -40,6 +41,15 @@ public class EntityZephyr extends EntityFlying implements IMob
this.tasks.addTask(6, new EntityAIWatchClosest(this, EntityPlayer.class, 8.0F));
this.tasks.addTask(6, new EntityAILookIdle(this));
}
@Override
protected void applyEntityAttributes()
{
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(5D);
this.setHealth(5);
}
@Override
public boolean getCanSpawnHere()

View file

@ -113,7 +113,7 @@ public class EntityMoa extends EntitySaddleMount
{
super.applyEntityAttributes();
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(10.0D);
this.getEntityAttribute(SharedMonsterAttributes.MAX_HEALTH).setBaseValue(35.0D);
this.getEntityAttribute(SharedMonsterAttributes.MOVEMENT_SPEED).setBaseValue(1.0D);
}
@ -362,6 +362,10 @@ public class EntityMoa extends EntitySaddleMount
stack.damageItem(2, player);
this.setSitting(this.isSitting() ? false : true);
if (!this.worldObj.isRemote)
{
this.spawnExplosionParticle();
}
return true;
}
@ -461,7 +465,7 @@ public class EntityMoa extends EntitySaddleMount
@Override
public double getMountedYOffset()
{
return 1.25D;
return this.isSitting() ? 0.25D: 1.25D;
}
@Override