#============================================================================== # ■ RGSS3 行動速度補正矯正アイテム・スキル拡張 # XPスタイルバトル対応化 Ver1.00 by 星潟 #------------------------------------------------------------------------------ # 当方の行動速度補正矯正アイテム・スキルとXPスタイルバトルを使用した際 # ポップアップを表示する機能を追加します。 #============================================================================== module REMAKE_ACTION #行動速度上方補正時のポップアップを設定します。 TEXT1XPS = "加速" #行動速度下方矯正時のポップアップを設定します。 TEXT2XPS = "減速" end class Window_BattleLog < Window_Selectable #-------------------------------------------------------------------------- # ● 影響を受けたステータスの表示 #-------------------------------------------------------------------------- alias display_affected_status_remake_action_orders2 display_affected_status def display_affected_status(target, item) #キャンセルメッセージを表示しない場合は飛ばす display_affected_status_remake_action_orders2(target, item) return if !REMAKE_ACTION::TEXT_FLAG #速度矯正値が0の場合は飛ばす return if item == nil return if item.add_actions_speed == 0 #矯正対象に含まれていない場合は飛ばす return if !$game_troop.battle_order_change.include?(target) popup_data.popup_remake_action_orders(target, item) end end class Popup_Data #-------------------------------------------------------------------------- # ● 行動順序の矯正ポップアップ #-------------------------------------------------------------------------- def popup_remake_action_orders(target, item) type = item.add_actions_speed > 0 ? 0 : 1 @popup = type == 0 ? REMAKE_ACTION::TEXT1XPS : REMAKE_ACTION::TEXT2XPS @battler = target @type = type == 0 ? LNX11::POPUP_TYPE[:add_state] : LNX11::POPUP_TYPE[:add_badstate] @color = type == 0 ? :add_state : :add_badstate makeup end end