class Window_ShopCommand
alias x001_make_command_list make_command_list
def make_command_list
if $game_switches[PRIZE_SHOP_SID]
add_command("兑换", :buy)
add_command("离开", :cancel)
else
x001_make_command_list
end
end
end
class Window_Gold
alias x01_value value
def value
if $game_switches[PRIZE_SHOP_SID]
$game_variables[PRIZE_SHOP_VID]
else
x01_value
end
end
alias x01_currency_unit currency_unit
def currency_unit
if $game_switches[PRIZE_SHOP_SID]
"钞票"
else
x01_currency_unit
end
end
end
class Scene_Shop
alias x01_do_buy do_buy
def do_buy(number)
if $game_switches[PRIZE_SHOP_SID]
$game_variables[PRIZE_SHOP_VID] -= number * buying_price
$game_party.gain_item(@item, number)
else
x01_do_buy
end
end
end