Advertisement
Double_X

(DoubleX)ECATB Base Formula

Jun 13th, 2015
1,474
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.57 KB | None | 0 0
  1. #------------------------------------------------------------------------------|
  2. #  * Lets you set an atb rate modifier applied to all battlers                 |
  3. #------------------------------------------------------------------------------|
  4. class Game_BattlerBase # Edit
  5.  
  6.   #----------------------------------------------------------------------------|
  7.   #  Uses your own base atb rate formula modifier as well                      |
  8.   #----------------------------------------------------------------------------|
  9.   # base: The base atb gain rate
  10.   def set_ecatb_gain_rate(base) # Rewrite; Potential Hotspot
  11.     base[:val] = ecatb_base_formula(base) # Added
  12.     ecatb = DoubleX_RMVXA::ECATB
  13.     ecatb_rate_ord.each { |data|
  14.       next unless send(@ecatb_item[data][0])
  15.       send(@ecatb_item[data][1]).each { |item|
  16.         (0..(item.ecatb_notes[:rate].size - 1)).each { |index|
  17.           next unless note = item.ecatb_notes[:rate][index]
  18.           base[:val] = ecatb.send(note, self, base)
  19.         }
  20.       }
  21.     }
  22.     base[:val]
  23.   end # set_ecatb_gain_rate
  24.  
  25.   #----------------------------------------------------------------------------|
  26.   #  Lets you set your own base atb rate formula modifier                      |
  27.   #----------------------------------------------------------------------------|
  28.   # base: The base atb rate determinators
  29.   def ecatb_base_formula(base) # New; Potential Hotspot
  30.     # Writes your own base atb rate formula modifier here
  31.     base[:val] * agi * base[:size] / base[:sum][:agi]
  32.     #
  33.   end # ecatb_base_formula
  34.  
  35. end # Game_BattlerBase
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement