Illarion-eV / Illarion-Content

Illarion game content, including NPCs, quests, fighting system, etc.
GNU Affero General Public License v3.0
30 stars 40 forks source link

Add scenario where tiles created by stairs are deleted when deleting stairs #372

Closed brightrim closed 1 year ago

brightrim commented 1 year ago

While tiles can not be given data to let us know they were created by the stair creation process, a scenario where deleting a staircase leaves two floating tiles and nothing attached is not particularly desired. So a check to see if all tiles surrounding those two are empty and if so deleting those two as well when deleting stairs could be handy. If there are other tiles on the other hand, it should be safe to assume that the stair is being deleted to be replaced by another stair or that another stair leading up to that floor already exists... or perhaps it was just a temporary staircase to customize the roof.