Sector darkness boundaries

This commit is contained in:
Anuken
2020-02-19 00:29:48 -05:00
parent 48c04bda8c
commit 65800a51c6
8 changed files with 74 additions and 50 deletions

View File

@@ -82,8 +82,8 @@ public class Build{
return false;
}
//campaign circle check
if(world.isCampaign() && !Mathf.within(x, y, world.width()/2, world.height()/2, world.width()/2 - 8)){
//ca check
if(world.getDarkness(x, y) >= 3){
return false;
}