Auto-destruction of enemies after attack sector capture
This commit is contained in:
@@ -602,6 +602,14 @@ public class Tile implements Position, QuadTreeObject, Displayable{
|
||||
tile.setBlock(block, team, rotation);
|
||||
}
|
||||
|
||||
@Remote(called = Loc.server)
|
||||
public static void setTeam(Building build, Team team){
|
||||
if(build != null){
|
||||
build.team = team;
|
||||
indexer.updateIndices(build.tile);
|
||||
}
|
||||
}
|
||||
|
||||
@Remote(called = Loc.server, unreliable = true)
|
||||
public static void tileDamage(Building build, float health){
|
||||
if(build == null) return;
|
||||
|
||||
Reference in New Issue
Block a user