Add layer2->layer1 check (isSupported), add logic for isActive

isActive: indicates if the tile is animated (eg: bonfire has fire or is extinguished)
isSupported: layer2 tile checks beneath it (layer1) to see if there's something to hold it up on that layer (sanity check)

Dunno how to handle the isActive set-on-save. I saw there was an isActive flag in my plaza, assumedly left there from a radio or something. NHSE does not change flag state at this time.
This commit is contained in:
Kurt
2020-05-03 16:29:28 -07:00
parent 8edf0a6ec4
commit 4a49caf6da
5 changed files with 85 additions and 23 deletions

View File

@@ -10,7 +10,7 @@ public class MapManager : MapTerrainStructure
public MapManager(MainSave sav) : base(sav)
{
Items = new FieldItemManager(sav.GetFieldItems());
Items = new FieldItemManager(sav);
}
public FieldItemLayer CurrentLayer => MapLayer == 0 ? Items.Layer1 : Items.Layer2;