Made homunculi have doubled regen rates (they regen twice as fast) defined on battle configs.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12953 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
shadow 2008-07-14 04:47:29 +00:00
parent af4359b20f
commit f17b22e948
2 changed files with 9 additions and 0 deletions

View File

@ -3,6 +3,9 @@ Date Added
AS OF SVN REV. 5091, WE ARE NOW USING TRUNK. ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK. 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. 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 2008/07/13
* Modified storage data loading (bugreport:1425) [ultramage] * Modified storage data loading (bugreport:1425) [ultramage]
- storage is now loaded/saved along with character status - storage is now loaded/saved along with character status

View File

@ -7267,6 +7267,9 @@ static int status_natural_heal(struct block_list* bl, va_list args)
rate/=2; rate/=2;
regen->tick.hp += rate; 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) if(regen->tick.hp >= (unsigned int)battle_config.natural_healhp_interval)
{ {
val = 0; val = 0;
@ -7284,6 +7287,9 @@ static int status_natural_heal(struct block_list* bl, va_list args)
{ {
regen->tick.sp += natural_heal_diff_tick*(regen->rate.sp+bonus); 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) if(regen->tick.sp >= (unsigned int)battle_config.natural_healsp_interval)
{ {
val = 0; val = 0;