Re-added remote effect methods

This commit is contained in:
Anuken
2020-08-04 13:38:40 -04:00
parent 3038862af5
commit 0d4e75fc42
23 changed files with 137 additions and 129 deletions

View File

@@ -44,7 +44,7 @@ public class SectorDamage{
//just remove all the buildings in the way - as long as they're not cores!
if(other.build != null && other.team() == state.rules.defaultTeam && !(other.block() instanceof CoreBlock)){
if(rubble && !other.floor().solid && !other.floor().isLiquid && Mathf.chance(0.4)){
Effects.rubble(other.build.x, other.build.y, other.block().size);
Effect.rubble(other.build.x, other.build.y, other.block().size);
}
other.remove();
@@ -86,7 +86,7 @@ public class SectorDamage{
if(other.build.health < 0){
//rubble
if(rubble && !other.floor().solid && !other.floor().isLiquid && Mathf.chance(0.4)){
Effects.rubble(other.build.x, other.build.y, other.block().size);
Effect.rubble(other.build.x, other.build.y, other.block().size);
}
other.remove();