Fixed #4729
This commit is contained in:
@@ -380,7 +380,7 @@ public class Damage{
|
||||
//this needs to be compensated
|
||||
if(in != null && in.team != team && in.block.size > 1 && in.health > damage){
|
||||
//deal the damage of an entire side + 1, to be equivalent with maximum 'standard' damage
|
||||
in.damage(damage * Math.min((in.block.size + 1), baseRadius * 0.44f));
|
||||
in.damage(damage * Math.min((in.block.size), baseRadius * 0.45f));
|
||||
//no need to continue with the explosion
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -140,7 +140,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
case controlled -> controller instanceof LogicAI || controller instanceof Player ? 1 : 0;
|
||||
case commanded -> controller instanceof FormationAI ? 1 : 0;
|
||||
case payloadCount -> self() instanceof Payloadc pay ? pay.payloads().size : 0;
|
||||
default -> 0;
|
||||
default -> Float.NaN;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -162,7 +162,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
@Override
|
||||
public double sense(Content content){
|
||||
if(content == stack().item) return stack().amount;
|
||||
return 0;
|
||||
return Float.NaN;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user