Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module THEO
- module BattleBack
- Floor = {
- # Switch OFF => Switch ON
- "Castle" => "Clouds",
- }
- Back = {
- # Switch OFF => Switch ON
- "Brick" => "Bridge"
- }
- Switch_ID = 1 # Obviously
- end
- end
- class << Cache
- alias theolized_battleback1 battleback1
- alias theolized_battleback2 battleback2
- def battleback1(filename)
- if $game_switches[THEO::BattleBack::Switch_ID]
- hash = THEO::BattleBack::Floor
- filename = hash[filename] if hash.include?(filename)
- end
- theolized_battleback1(filename)
- end
- def battleback2(filename)
- if $game_switches[THEO::BattleBack::Switch_ID]
- hash = THEO::BattleBack::Back
- filename = hash[filename] if hash.include?(filename)
- end
- theolized_battleback2(filename)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment