Implemented GameData::Metadata and GameData::MapMetadata

This commit is contained in:
Maruno17
2020-11-15 18:59:07 +00:00
parent d8476d1fa4
commit 52ffae9e8a
45 changed files with 803 additions and 540 deletions

View File

@@ -555,7 +555,7 @@ end
Events.onMapCreate += proc { |_sender, e|
mapID=e[0]
map=e[1]
if pbGetMetadata(mapID,MapMetadata::DUNGEON)
if GameData::MapMetadata.get(mapID).random_dungeon
# this map is a randomly generated dungeon
dungeon=Dungeon.new(map.width,map.height)
dungeon.generate