Light and decorations adjusted. Added all resource and light spawn points
This commit is contained in:
+3
-1
@@ -141,10 +141,12 @@ public partial class World : Node3D
|
||||
|
||||
int posX, posY;
|
||||
|
||||
while(currentLight < layerSize * layerSize / 4)
|
||||
while(currentLight < layerSize * 3)
|
||||
{
|
||||
posX = rand.Next(layerSize);
|
||||
posY = rand.Next(layerSize);
|
||||
//Skip already placed lights and skip junction and gate as they do not contain lights
|
||||
if(layer.tiles[posX, posY].collapsedMesh == "junction" || layer.tiles[posX, posY].collapsedMesh == "gate") continue;
|
||||
if(layer.tiles[posX, posY].containsLight) continue;
|
||||
layer.tiles[posX, posY].containsLight = true;
|
||||
currentLight++;
|
||||
|
||||
Reference in New Issue
Block a user