From 5a40d2dee1ecb45812836a826f9702d073975d70 Mon Sep 17 00:00:00 2001 From: Dastgir Pojee Date: Mon, 3 Oct 2016 20:04:01 +0530 Subject: Added max_summoner_parameter: Default max parameter for summoner is 120. --- src/map/battle.c | 1 + src/map/battle.h | 2 ++ src/map/pc.h | 1 + 3 files changed, 4 insertions(+) (limited to 'src') diff --git a/src/map/battle.c b/src/map/battle.c index f7ac60031..8c1a3f364 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -7318,6 +7318,7 @@ static const struct battle_data { { "save_body_style", &battle_config.save_body_style, 0, 0, 1, }, { "player_warp_keep_direction", &battle_config.player_warp_keep_direction, 0, 0, 1, }, { "atcommand_levelup_events", &battle_config.atcommand_levelup_events, 0, 0, 1, }, + { "max_summoner_parameter", &battle_config.max_summoner_parameter, 120, 10, 10000, }, }; #ifndef STATS_OPT_OUT /** diff --git a/src/map/battle.h b/src/map/battle.h index ebfa0e305..7e7048a38 100644 --- a/src/map/battle.h +++ b/src/map/battle.h @@ -544,6 +544,8 @@ struct Battle_Config { int player_warp_keep_direction; int atcommand_levelup_events; // Enable atcommands trigger level up events for NPCs + + int max_summoner_parameter; // Summoner Max Stats }; /* criteria for battle_config.idletime_critera */ diff --git a/src/map/pc.h b/src/map/pc.h index 2d6ca48a0..5d1404b2a 100644 --- a/src/map/pc.h +++ b/src/map/pc.h @@ -635,6 +635,7 @@ END_ZEROED_BLOCK; #define pc_is50overweight(sd) ( (sd)->weight*100 >= (sd)->max_weight*battle->bc->natural_heal_weight_rate ) #define pc_is90overweight(sd) ( (sd)->weight*10 >= (sd)->max_weight*9 ) #define pc_maxparameter(sd) ( \ + ((sd)->class_&MAPID_BASEMASK) == MAPID_SUMMONER ? battle->bc->max_summoner_parameter : \ ( ((sd)->class_&MAPID_UPPERMASK) == MAPID_KAGEROUOBORO \ || ((sd)->class_&MAPID_UPPERMASK) == MAPID_REBELLION \ || ((sd)->class_&MAPID_THIRDMASK) == MAPID_SUPER_NOVICE_E \ -- cgit v1.2.3-70-g09d2