mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-01-22 14:26:01 +00:00
Implemented GameData::Metadata and GameData::MapMetadata
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user