All pastes #31771 Raw Edit

Anonymous

public text v1 · immutable
#31771 ·published 2005-11-30 04:23 UTC
rendered paste body
module 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