mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
some more stuffs
This commit is contained in:
parent
319ab19e01
commit
ebeb276e94
@ -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) {
|
||||
|
||||
@ -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){
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user