def create_background
@sprite = Sprite.new
name = "GameOver"
num = $game_variables[GAMEOVER_VAR_ID]
name = sprintf("%s%02d",name,num) if num > 0
@sprite.bitmap = Cache.system(name)
end
end
class Game_Battler < Game_BattlerBase
def randsid(type)
a = []
case type
when 0
a = [54,74,393,387,389,390]
when 1
a = []
when 2
a = []
when 3
a = []
when 4
a = []
end
a.empty? ? 0 : a[rand(a.size)]
end
end
class Sprite_Character < Sprite_Base
alias hogeeee_start_balloon start_balloon
def start_balloon
hogeeee_start_balloon
@balloon_sprite.ox += $game_variables[1]
@balloon_sprite.oy += $game_variables[2]
end
end
class Game_Troop < Game_Unit
#獲得金額を0にするスイッチ番号
def poverty_switch_number
1
end
alias _gold_total gold_total
def gold_total
$game_switches[poverty_switch_number] ? 0 : _gold_total
end
end