Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Game_Battler < Game_BattlerBase
- #--------------------------------------------------------------------------
- # * Add State
- #--------------------------------------------------------------------------
- def add_state(state_id)
- if state_addable?(state_id)
- add_new_state(state_id) unless state?(state_id)
- reset_state_counts(state_id)
- @result.added_states.push(state_id).uniq!
- end
- if state_resist?(state_id)
- text = YEA::BATTLE::POPUP_SETTINGS[:immune]
- rules = "IMMUNE"
- create_popup(text,rules)
- end
- end
- end
- class Game_BattlerBase
- #--------------------------------------------------------------------------
- # new method: make_miss_popups
- #--------------------------------------------------------------------------
- def make_miss_popups(user, item)
- return if dead?
- if @result.missed
- text = YEA::BATTLE::POPUP_SETTINGS[:missed]
- rules = "DEFAULT"
- create_popup(text, rules)
- end
- if @result.evaded
- text = YEA::BATTLE::POPUP_SETTINGS[:evaded]
- rules = "DEFAULT"
- create_popup(text, rules)
- end
- if @result.hit? && !@result.success
- text = YEA::BATTLE::POPUP_SETTINGS[:failed]
- rules = "DEFAULT"
- create_popup(text, rules)
- end
- if @result.hit? && item.damage.to_hp?
- if @result.hp_damage == 0 && @result.hp_damage == 0
- text = YEA::BATTLE::POPUP_SETTINGS[:nulled]
- rules = "DEFAULT"
- create_popup(text, rules)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement