DasKyu

Untitled

Jul 3rd, 2021
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.65 KB | None | 0 0
  1. class PokeBattle_Battler
  2.   attr_accessor :lives
  3.  
  4.   alias life_initialize initialize
  5.   def initialize(btl,index)
  6.     life_initialize(btl, index)
  7.     pbInitLives
  8.   end
  9.  
  10.   def pbInitLives
  11.     if $game_switches[100] && @index == 1
  12.       @lives = $game_variables[76]
  13.     else
  14.       @lives = 1
  15.     end
  16.   end
  17. end
  18.  
  19. class PokeBattle_Battle
  20.   def pbLivesChanged(pkmn)
  21.   end
  22. end
  23.  
  24. class PokeBattle_Scene
  25.   def pbBreakBar(pkmn)
  26.     @sprites["battlebox#{pkmn.index}"].refresh
  27.     @viewport.flash(Color.new(255, 255, 255), 20)
  28.     20.times do
  29.       pbGraphicsUpdate
  30.       pbInputUpdate
  31.       pbFrameUpdate
  32.       @viewport.update
  33.     end
  34.   end
  35. end
  36.  
Advertisement
Add Comment
Please, Sign In to add comment