Advertisement
TroyZ

TroyZ - YEA Critical Popup Fix

Sep 27th, 2014
389
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_Battler
  2.   def make_damage_value(user, item)
  3.     game_battler_make_damage_value_abe(user, item)
  4.     rate = item_element_rate(user, item)
  5.     make_rate_popup(rate) unless $game_temp.evaluating
  6.     if @result.critical
  7.       case item.damage.type
  8.         when 1 || 2 || 5 || 6
  9.           text = YEA::BATTLE::POPUP_SETTINGS[:critical]
  10.           rules = "CRITICAL"
  11.           create_popup(text,rules)
  12.       end
  13.     end
  14.   end
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement