#============================================================================== # ■ XP-RGSS-27 修行 [Ver.1.0.0] by Claimh #------------------------------------------------------------------------------ # 戦闘中のパラメータを制限することで、より多くの経験地が獲得できます。 #============================================================================== module Training #============================================================================== # □ カスタマイズSTART #============================================================================== # 『修行中』のステートID TR_STATE = 17 # EXP上昇率(%) TR_PAR = 50 #============================================================================== # □ カスタマイズEND #============================================================================== end class Scene_Battle #-------------------------------------------------------------------------- # ● アフターバトルフェーズ開始 #-------------------------------------------------------------------------- alias start_phase5_trainig start_phase5 def start_phase5 # EXPを初期化 exp = 0 # ループ for enemy in $game_troop.enemies # エネミーが隠れ状態でない場合 unless enemy.hidden # 獲得 EXP、ゴールドを追加 exp += enemy.exp end end # EXP 獲得 for i in 0...$game_party.actors.size actor = $game_party.actors[i] if actor.cant_get_exp? == false and actor.states.include?(Training::TR_STATE) last_level = actor.level actor.exp += (exp * Training::TR_PAR / 100).truncate if actor.level > last_level @status_window.level_up(i) end end end start_phase5_trainig end end