Anonymous
public text v1 · immutablemodule RPG
class MapInfo
attr_accessor :test
def set_test
@test = false
case self.name
when "^*DNS Outside"
@test = true
when "Test Map 3"
@test = true
end
end
end
end
class Game_Map
alias prexus_test_g_map_setup_load setup_load
def setup_load
prexus_test_g_map_setup_load
map_infos = load_data("Data/MapInfos.rxdata")
@map_info = map_infos[@map_id]
@map_info.set_test
end
def check_test
return @map_info.test.to_s
end
end