summaryrefslogtreecommitdiff
path: root/src/map
diff options
context:
space:
mode:
authorDastgir Pojee <dastgirp@gmail.com>2016-10-03 20:04:01 +0530
committerhemagx <ibrahem.h.basyone@gmail.com>2016-10-22 02:22:18 +0200
commit5a40d2dee1ecb45812836a826f9702d073975d70 (patch)
tree5b2bb0269a2431410ed2904ca10034be3721435c /src/map
parentf7babff8a31981508f1c5fff1aefcc6091c85f00 (diff)
downloadhercules-5a40d2dee1ecb45812836a826f9702d073975d70.tar.gz
hercules-5a40d2dee1ecb45812836a826f9702d073975d70.tar.bz2
hercules-5a40d2dee1ecb45812836a826f9702d073975d70.tar.xz
hercules-5a40d2dee1ecb45812836a826f9702d073975d70.zip
Added max_summoner_parameter:
Default max parameter for summoner is 120.
Diffstat (limited to 'src/map')
-rw-r--r--src/map/battle.c1
-rw-r--r--src/map/battle.h2
-rw-r--r--src/map/pc.h1
3 files changed, 4 insertions, 0 deletions
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 \