#============================================================================== # □ 敵レベル毎パラメータ設定 (for VX Ace) #------------------------------------------------------------------------------ # Version : 1_20111222 # by サリサ・タイクーン # http://www.tycoon812.com/rgss/ #------------------------------------------------------------------------------ # ※ 敵レベル実装 が別途必要です。 #============================================================================== #============================================================================== # □ 素材スイッチ #============================================================================== $rgsslab = {} if $rgsslab == nil $rgsslab["敵レベル毎パラメータ設定"] = true if $rgsslab["敵レベル毎パラメータ設定"] # カスタマイズポイントは、ありません。 module RGSSLAB end #============================================================================== # □ RGSSLAB::Enemy_Level_Parameter_Setting [module] #============================================================================== module RGSSLAB::Enemy_Level_Parameter_Setting #-------------------------------------------------------------------------- # ○ 素材設定用の定数定義 #-------------------------------------------------------------------------- MATERIAL_NAME = "敵レベル毎パラメータ設定" VERSION = 1 RELEASE = 20111222 end #============================================================================== # ■ Game_Enemy [class] #============================================================================== class Game_Enemy < Game_Battler #-------------------------------------------------------------------------- # ● 通常能力値の基本値取得 [再定義] # param_id : パラメータ ID #-------------------------------------------------------------------------- def param_base(param_id) n = 0 use_level = $rgsslab["敵レベル実装"] ? @level : 1 if $rgsslab["パラメータの追加"] && param_id > 7 n = param_base_parameter_append(param_id, use_level) else if use_level < 2 n = enemy.params[param_id] elsif $rgsslab["敵レベル毎パラメータ設定:詳細"] n = parameter_details(param_id) elsif $rgsslab["敵レベル毎パラメータ設定:安易"] n = parameter_easiness(param_id) else n = 0 end end return n end #-------------------------------------------------------------------------- # ○ パラメータの取得:詳細 # param_id : パラメータの種類 #-------------------------------------------------------------------------- def parameter_details(param_id) if RGSSLAB_106_01::LIST[@enemy_id] if RGSSLAB_106_01::LIST[@enemy_id][param_id] if RGSSLAB_106_01::LIST[@enemy_id][param_id][@level] return RGSSLAB_106_01::LIST[@enemy_id][param_id][@level] else pa = RGSSLAB_106_01::LIST[@enemy_id][param_id].size if $rgsslab["敵レベル毎パラメータ設定:安易"] if RGSSLAB_106_02::LIST[@enemy_id] if RGSSLAB_106_02::LIST[@enemy_id][param_id] temp1 = RGSSLAB_106_02::LIST[@enemy_id][param_id] temp2 = RGSSLAB_106_01::LIST[@enemy_id][param_id][pa - 1] return temp2 + (temp1 * ((@level - 1) - (pa - 1))) end end end return RGSSLAB_106_01::LIST[@enemy_id][param_id][pa - 1] end end end return parameter_easiness(param_id) if $rgsslab["敵レベル毎パラメータ設定:安易"] return enemy.params[param_id] end #-------------------------------------------------------------------------- # ○ パラメータの取得:安易 # param_id : パラメータの種類 #-------------------------------------------------------------------------- def parameter_easiness(param_id) if RGSSLAB_106_02::LIST[@enemy_id] if RGSSLAB_106_02::LIST[@enemy_id][param_id] temp = RGSSLAB_106_02::LIST[@enemy_id][param_id] return enemy.params[param_id] + (temp * (@level - 1)) end end return enemy.params[param_id] end #-------------------------------------------------------------------------- # ● 経験値の取得 [再定義] #-------------------------------------------------------------------------- def exp return Integer(get_enemy_exp) if $rgsslab["敵レベル実装"] return enemy.exp end #-------------------------------------------------------------------------- # ○ 経験値の取得 #-------------------------------------------------------------------------- def get_enemy_exp return enemy.exp if @level < 2 return exp_details if $rgsslab["敵レベル毎パラメータ設定:詳細"] return exp_easiness if $rgsslab["敵レベル毎パラメータ設定:安易"] return enemy.exp end #-------------------------------------------------------------------------- # ○ 経験値の取得:詳細 #-------------------------------------------------------------------------- def exp_details if RGSSLAB_106_01::EXP_LIST[@enemy_id] if RGSSLAB_106_01::EXP_LIST[@enemy_id][@level - 2] return RGSSLAB_106_01::EXP_LIST[@enemy_id][@level - 2] else pa = RGSSLAB_106_01::EXP_LIST[@enemy_id].size if $rgsslab["敵レベル毎パラメータ設定:安易"] if RGSSLAB_106_02::EXP_LIST[@enemy_id] temp1 = RGSSLAB_106_02::EXP_LIST[@enemy_id] temp2 = RGSSLAB_106_01::EXP_LIST[@enemy_id][pa - 1] return temp2 + (temp1 * ((@level - 2) - (pa - 1))) end end return RGSSLAB_106_01::EXP_LIST[@enemy_id][pa - 1] end end return exp_easiness if $rgsslab["敵レベル毎パラメータ設定:安易"] return enemy.exp end #-------------------------------------------------------------------------- # ○ 経験値の取得:安易 #-------------------------------------------------------------------------- def exp_easiness if RGSSLAB_106_02::EXP_LIST[@enemy_id] temp = RGSSLAB_106_02::EXP_LIST[@enemy_id] return enemy.exp + (temp * (@level - 1)) end return enemy.exp end #-------------------------------------------------------------------------- # ● お金の取得 [再定義] #-------------------------------------------------------------------------- def gold return Integer(get_enemy_gold) if $rgsslab["敵レベル実装"] return enemy.gold end #-------------------------------------------------------------------------- # ○ お金の取得 #-------------------------------------------------------------------------- def get_enemy_gold return enemy.gold if @level < 2 return gold_details if $rgsslab["敵レベル毎パラメータ設定:詳細"] return gold_easiness if $rgsslab["敵レベル毎パラメータ設定:安易"] return enemy.gold end #-------------------------------------------------------------------------- # ○ お金の取得:詳細 #-------------------------------------------------------------------------- def gold_details if RGSSLAB_106_01::GOLD_LIST[@enemy_id] if RGSSLAB_106_01::GOLD_LIST[@enemy_id][@level - 2] return RGSSLAB_106_01::GOLD_LIST[@enemy_id][@level - 2] else pa = RGSSLAB_106_01::GOLD_LIST[@enemy_id].size if $rgsslab["敵レベル毎パラメータ設定:安易"] if RGSSLAB_106_02::GOLD_LIST[@enemy_id] temp1 = RGSSLAB_106_02::GOLD_LIST[@enemy_id] temp2 = RGSSLAB_106_01::GOLD_LIST[@enemy_id][pa - 1] return temp2 + (temp1 * ((@level - 2) - (pa - 1))) end end return RGSSLAB_106_01::GOLD_LIST[@enemy_id][pa - 1] end end return gold_easiness if $rgsslab["敵レベル毎パラメータ設定:安易"] return enemy.gold end #-------------------------------------------------------------------------- # ○ お金の取得:安易 #-------------------------------------------------------------------------- def gold_easiness if RGSSLAB_106_02::GOLD_LIST[@enemy_id] temp = RGSSLAB_106_02::GOLD_LIST[@enemy_id] return enemy.gold + (temp * (@level - 1)) end return enemy.gold end end end