feat: Forcefield loses 1% durability each time it repulses an enemy or a projectile

This commit is contained in:
WinDanesz
2022-07-08 19:16:54 +02:00
parent 3d30b0b96f
commit d23c4cba18
@@ -167,7 +167,10 @@ public class EntityForcefield extends EntityMagicConstruct implements ICustomHit
if(target instanceof EntityPlayerMP){
((EntityPlayerMP)target).connection.sendPacket(new SPacketEntityVelocity(target));
}
this.lifetime = (int) (lifetime * 0.92);
if (this.ticksExisted % 5 == 0) {
this.lifetime = (int) (lifetime * 0.99);
}
}else{