summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-21 19:53:03 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-08-21 19:53:03 +0000
commitbdfb9e2e0ecd034ef1d1ceab426bdafea028f3b3 (patch)
treeedbcdc5aa20485fd0621228c6de62d31c4bcec3f
parent02f26bfab461a31f5890b4ab2f58b77f5404abf5 (diff)
downloadhercules-bdfb9e2e0ecd034ef1d1ceab426bdafea028f3b3.tar.gz
hercules-bdfb9e2e0ecd034ef1d1ceab426bdafea028f3b3.tar.bz2
hercules-bdfb9e2e0ecd034ef1d1ceab426bdafea028f3b3.tar.xz
hercules-bdfb9e2e0ecd034ef1d1ceab426bdafea028f3b3.zip
- Homun saving won't cap hp/sp to max hp/sp since a homun can have higher hp/sp than the one stated in the db (due to skill bonuses or status changes)
- Increased splash range of HVAN_EXPLOSION to 4. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8411 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--Changelog-Trunk.txt3
-rw-r--r--db/Changelog.txt1
-rw-r--r--db/skill_db.txt2
-rw-r--r--src/map/mercenary.c9
4 files changed, 10 insertions, 5 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt
index 871560f86..45aa85c46 100644
--- a/Changelog-Trunk.txt
+++ b/Changelog-Trunk.txt
@@ -4,6 +4,9 @@ AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO
IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
2006/08/21
+ * Homun saving won't cap hp/sp to max hp/sp since a homun can have higher
+ hp/sp than the one stated in the db (due to skill bonuses or status
+ changes) [Skotlex]
* Cleaned up some more the regen_data structure, so that
skill/sitting-skill related data is optional (since only players have it).
[Skotlex]
diff --git a/db/Changelog.txt b/db/Changelog.txt
index 844492379..aed4dfd16 100644
--- a/db/Changelog.txt
+++ b/db/Changelog.txt
@@ -20,6 +20,7 @@
=========================
08/21
+ * Increased splash range of HVAN_EXPLOSION to 4. [Skotlex]
* Added delay to HLIF_AVOID [Toms]
08/20
* Fixed Fling not reducing DEF for 30 seconds [Playtester]
diff --git a/db/skill_db.txt b/db/skill_db.txt
index 0580e1b8c..39d9ce965 100644
--- a/db/skill_db.txt
+++ b/db/skill_db.txt
@@ -606,7 +606,7 @@
8013,9,6,1,0,0,0,5,1:2:3:4:5,no,0,0,0,magic,0 //HVAN_CAPRICE
8014,0,6,4,0,1,0,5,0,no,0,0,0,none,0 //HVAN_CHAOTIC
8015,0,0,0,0,1,0,5,0,no,0,0,0,none,0 //HVAN_INSTRUCT
-8016,0,6,4,-1,2,2,3,1,no,0,0,0,misc,0 //HVAN_EXPLOSION
+8016,0,6,4,-1,2,4,3,1,no,0,0,0,misc,0 //HVAN_EXPLOSION
//id,range,hit,inf,pl,nk,splash,max,list_num,castcancel,cast_defence_rate,inf2,maxcount,skill_type,blow_count
10000,0,0,0,0,0,0,1,0,no,0,16,0,none,0 //GD_APPROVAL#Approval#
diff --git a/src/map/mercenary.c b/src/map/mercenary.c
index 53bc562b7..46108fbb6 100644
--- a/src/map/mercenary.c
+++ b/src/map/mercenary.c
@@ -424,10 +424,11 @@ void merc_save(struct homun_data *hd)
{
// copy data that must be saved in homunculus struct ( hp / sp )
TBL_PC * sd = hd->master;
- if((sd->homunculus.hp = hd->battle_status.hp) > sd->homunculus.max_hp )
- sd->homunculus.hp = sd->homunculus.max_hp;
- if((sd->homunculus.sp = hd->battle_status.sp) > sd->homunculus.max_sp )
- sd->homunculus.sp = sd->homunculus.max_sp;
+ //Do not check for max_hp/max_sp caps as current could be higher to max due
+ //to status changes/skills (they will be capped as needed upon stat
+ //calculation on login)
+ sd->homunculus.hp = hd->battle_status.hp;
+ sd->homunculus.sp = hd->battle_status.sp;
intif_homunculus_requestsave(sd->status.account_id, &sd->homunculus) ;
}