Ruin0x11 / OpenNefia

(Archived) Moddable engine reimplementation of the Japanese roguelike Elona.
MIT License
116 stars 18 forks source link

Support multiple homes and world maps #174

Open Ruin0x11 opened 3 years ago

Ruin0x11 commented 3 years ago

We have to be careful about home upgrading across multiple world maps. If the old home is removed, the entrances pointing to it in all other maps should be removed too. We could do a sanity check on map load to remove invalid entrances to missing areas in general, without needing to load and unload every map all at once.

Ruin0x11 commented 3 years ago

Should also stop doing map._archetype == "elona.your_home" and wrap it in some Building.is_home(map) function.