cleanup
This commit is contained in:
@@ -51,8 +51,8 @@ abstract class HealthComp implements Entityc, Posc{
|
|||||||
|
|
||||||
/** Damage and pierce armor. */
|
/** Damage and pierce armor. */
|
||||||
void damagePierce(float amount, boolean withEffect){
|
void damagePierce(float amount, boolean withEffect){
|
||||||
if(this instanceof Shieldc){
|
if(this instanceof Shieldc c){
|
||||||
damage(amount + ((Shieldc)this).armor(), withEffect);
|
damage(amount + c.armor(), withEffect);
|
||||||
}else{
|
}else{
|
||||||
damage(amount, withEffect);
|
damage(amount, withEffect);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user