summaryrefslogtreecommitdiff
path: root/src/map/status.c
diff options
context:
space:
mode:
authorshenhuyong <shenhuyong@hotmail.com>2013-09-27 10:35:52 +0800
committershenhuyong <shenhuyong@hotmail.com>2013-09-27 10:35:52 +0800
commit7d8f83d8ff360df4c2b960933c015117eb9d776b (patch)
tree318c95d3365526fcc60799d1fd554e56c6ab5f5d /src/map/status.c
parent3e5bca5a3df07320ff5c41edbb282df041c36f66 (diff)
downloadhercules-7d8f83d8ff360df4c2b960933c015117eb9d776b.tar.gz
hercules-7d8f83d8ff360df4c2b960933c015117eb9d776b.tar.bz2
hercules-7d8f83d8ff360df4c2b960933c015117eb9d776b.tar.xz
hercules-7d8f83d8ff360df4c2b960933c015117eb9d776b.zip
Added full support for the Rebellion.
Credits to 3ceam2 for the base,Thanks to Rytech. -The skill still needs to be completed, as well as support for higher base stats. -Bonus stats are set to temporarily values until the official ones are known. -Updated the item_db.txt file with information on the Rebellion's job equip mask. -Added packets and packet keys for 2013-08-07Ragexe with the info provided by Shakto,Thanks to Shakto. -A 2013-08-07Ragexe client or higher is required for this job to be properly playable.
Diffstat (limited to 'src/map/status.c')
-rw-r--r--src/map/status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/status.c b/src/map/status.c
index 46f732e81..bac302dec 100644
--- a/src/map/status.c
+++ b/src/map/status.c
@@ -2278,7 +2278,7 @@ static unsigned int status_base_pc_maxhp(struct map_session_data *sd, struct sta
uint64 val = pc->class2idx(sd->status.class_);
val = 35 + sd->status.base_level*(int64)hp_coefficient2[val]/100 + hp_sigma_val[val][sd->status.base_level];
- if((sd->class_&MAPID_UPPERMASK) == MAPID_NINJA || (sd->class_&MAPID_UPPERMASK) == MAPID_GUNSLINGER)
+ if((sd->class_&MAPID_UPPERMASK) == MAPID_NINJA || (sd->class_&MAPID_UPPERMASK) == MAPID_GUNSLINGER || (sd->class_&MAPID_UPPERMASK) == MAPID_REBELLION)
val += 100; //Since their HP can't be approximated well enough without this.
if((sd->class_&MAPID_UPPERMASK) == MAPID_TAEKWON && sd->status.base_level >= 90 && pc->famerank(sd->status.char_id, MAPID_TAEKWON))
val *= 3; //Triple max HP for top ranking Taekwons over level 90.