Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Game_Battler
- # Régénération par action (attaque, utilisation de compétences, etc)
- # Modif' active uniquement si $a n'est pas nul
- alias iuebi item_user_effect
- def item_user_effect(*args)
- if $a
- t = $a % 4 + 1
- self.tp += t.to_i
- else
- iuebi(*args)
- end
- end
- # Régénération par tour
- # Modif' active uniquement si $a n'est pas nul
- alias rtbi regenerate_tp
- def regenerate_tp
- if $a
- t = $a % 4 + 1
- self.tp += t.to_i
- else
- rtbi
- end
- end
- # Régénération par action subite (dommage)
- # Modif' active uniquement si $a n'est pas nul
- alias ctbdbi charge_tp_by_damage
- def charge_tp_by_damage(*args)
- if $a
- t = $a % 4 + 1
- self.tp += t.to_i
- else
- ctbdbi(*args)
- end
- end
- end
- # Indique ici ce que vaut $a parmis les choix suivants :
- #~ @hp_damage
- #~ @mp_damage
- #~ @mp_damage
- #~ @hp_drain
- #~ @mp_drain
- #~ @hp_drain
- class Game_ActionResult
- alias mdbi make_damage
- def make_damage(*args)
- mdbi(*args)
- $a = @hp_damage
- end
- end
- # On remet $a à zéro pour éviter la répétition
- class Scene_Battle
- alias tebi turn_end
- def turn_end
- tebi
- $a = nil
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement