some more stuffs

This commit is contained in:
70000hp 2024-04-05 18:13:28 -04:00
parent 319ab19e01
commit ebeb276e94
2 changed files with 8 additions and 4 deletions

View File

@ -44,7 +44,7 @@ public class EntityGlyphidBrawler extends EntityGlyphid {
}
}
/** Mainly composed of crusty old power fist code, with some touch ups **/
/** Mainly composed of repurposed bombardier code**/
public void leap() {
if (!worldObj.isRemote && entityToAttack instanceof EntityLivingBase && this.getDistanceToEntity(entityToAttack) < 20) {
Entity e = this.getEntityToAttack();
@ -128,8 +128,9 @@ public class EntityGlyphidBrawler extends EntityGlyphid {
data.setFloat("scale", 2.5F);
data.setString("text", "" + (int) amount);
PacketDispatcher.wrapper.sendToAllAround(new AuxParticlePacketNT(data, posX, posY + 2, posZ), new TargetPoint(dimension, posX, posY + 2, posZ, 50));*/
if(source != DamageSource.fall) super.attackEntityFrom(source, amount);
return false;
//allows brawlers to get no damage on short leaps, but still affected by fall damage on big drops
if(source == DamageSource.fall && amount <= 10) return false;
return super.attackEntityFrom(source, amount);
}
@Override
public boolean isArmorBroken(float amount) {

View File

@ -73,7 +73,10 @@ public class EntityGlyphidScout extends EntityGlyphid {
@Override
public void onUpdate() {
super.onUpdate();
//Updates to check whether the player still exists, important to make sure it wont stop doing work
if(entityToAttack != null && ticksExisted % 60 == 0){
entityToAttack = findPlayerToAttack();
}
if((getCurrentTask() != TASK_BUILD_HIVE || getCurrentTask() != TASK_TERRAFORM) && taskWaypoint == null) {
if(MobConfig.rampantGlyphidGuidance && PollutionHandler.targetCoords != null){