TheoAllen

DoN - Inventory Switch

Jun 29th, 2014
517
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.44 KB | None | 0 0
  1. class Game_Party
  2.  
  3.   alias don_init_items init_all_items
  4.   def init_all_items
  5.     don_init_items
  6.     @first_items = @items
  7.     @second_items = {}
  8.   end
  9.  
  10.   def update_invent
  11.     if $game_player.switched
  12.       @items = @second_items
  13.     else
  14.       @items = @first_items
  15.     end
  16.   end
  17.  
  18. end
  19.  
  20. class Scene_Map
  21.  
  22.   alias don_invent_update update
  23.   def update
  24.     don_invent_update
  25.     $game_party.update_invent
  26.   end
  27.  
  28. end
Advertisement
Add Comment
Please, Sign In to add comment