diff options
author | shadow <shadow@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-14 04:47:29 +0000 |
---|---|---|
committer | shadow <shadow@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-14 04:47:29 +0000 |
commit | 1e0fdfa946da8bad031495ed3e72a7492bd8d17f (patch) | |
tree | 691843a8155cefd6460146aa167bcf061d0125e5 | |
parent | c93e3efdd7c0809fc1d0e58074d45a3a7af29299 (diff) | |
download | hercules-1e0fdfa946da8bad031495ed3e72a7492bd8d17f.tar.gz hercules-1e0fdfa946da8bad031495ed3e72a7492bd8d17f.tar.bz2 hercules-1e0fdfa946da8bad031495ed3e72a7492bd8d17f.tar.xz hercules-1e0fdfa946da8bad031495ed3e72a7492bd8d17f.zip |
Made homunculi have doubled regen rates (they regen twice as fast) defined on battle configs.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@12953 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r-- | Changelog-Trunk.txt | 3 | ||||
-rw-r--r-- | src/map/status.c | 6 |
2 files changed, 9 insertions, 0 deletions
diff --git a/Changelog-Trunk.txt b/Changelog-Trunk.txt index 434265ad1..1f4ddbed9 100644 --- a/Changelog-Trunk.txt +++ b/Changelog-Trunk.txt @@ -3,6 +3,9 @@ Date Added AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK. +2008/07/14 + * Made homunculi have doubled regen rates (they regen twice as fast) defined on battle configs. [Brainstorm] + 2008/07/13 * Modified storage data loading (bugreport:1425) [ultramage] - storage is now loaded/saved along with character status diff --git a/src/map/status.c b/src/map/status.c index 5b93b2a42..e7030fe3b 100644 --- a/src/map/status.c +++ b/src/map/status.c @@ -7266,6 +7266,9 @@ static int status_natural_heal(struct block_list* bl, va_list args) if (ud && ud->walktimer != -1) rate/=2; regen->tick.hp += rate; + + // Homun HP regen fix (they should regen as if they were sitting (twice as fast) + if(bl->type==BL_HOM) regen->tick.hp *=2; if(regen->tick.hp >= (unsigned int)battle_config.natural_healhp_interval) { @@ -7283,6 +7286,9 @@ static int status_natural_heal(struct block_list* bl, va_list args) if(flag&RGN_SP) { regen->tick.sp += natural_heal_diff_tick*(regen->rate.sp+bonus); + + // Homun HP regen fix (they should regen as if they were sitting (twice as fast) + if(bl->type==BL_HOM) regen->tick.p *=2; if(regen->tick.sp >= (unsigned int)battle_config.natural_healsp_interval) { |