# # MPダメージ装備(RGSS2) #  (C)2007 TYPE74RX-T # #-------------------------------------------------------------------------- # ★ システムワードの登録:MPダメージ #-------------------------------------------------------------------------- module RPG class BaseItem alias rx_rgss2bo4_rx_extract_sys_str_from_note rx_extract_sys_str_from_note def rx_extract_sys_str_from_note rx_get_sys = RX_T.get_system_word_in_note(@note, "MPダメージ") @@rx_copy_str += rx_get_sys @note = @note.sub(rx_get_sys, "") @note = @note.sub("\r\n", "") @rx_sys_str = @@rx_copy_str # メソッドを呼び戻す rx_rgss2bo4_rx_extract_sys_str_from_note end end end #============================================================================== # ■ Game_Battler #------------------------------------------------------------------------------ #  バトラーを扱うクラスです。このクラスは Game_Actor クラスと Game_Enemy クラ # スのスーパークラスとして使用されます。 #============================================================================== class Game_Battler #-------------------------------------------------------------------------- # ● 通常攻撃によるダメージ計算 # attacker : 攻撃者 # 結果は @hp_damage に代入する。 #-------------------------------------------------------------------------- alias rx_rgss2bo4_make_attack_damage_value make_attack_damage_value def make_attack_damage_value(attacker) # メソッドを呼び戻す rx_rgss2bo4_make_attack_damage_value(attacker) if RX_T.check_system_word_in_equip(attacker.rx_sys_str, "MPダメージ") @mp_damage = @hp_damage # MP にダメージ end end end