Closed KiriX closed 12 years ago
Regen doesn't work becouse comment this block in Player.cpp
float Player::OCTRegenHPPerSpirit() { //uint32 level = getLevel(); //uint32 pclass = getClass();
//if (level>GT_MAX_LEVEL) level = GT_MAX_LEVEL;
//GtOCTRegenHPEntry const _baseRatio = sGtOCTRegenHPStore.LookupEntry((pclass-1)_GT_MAX_LEVEL + level-1); //GtRegenHPPerSptEntry const _moreRatio = sGtRegenHPPerSptStore.LookupEntry((pclass-1)_GT_MAX_LEVEL + level-1); //if (baseRatio==NULL || moreRatio==NULL) return 0.0f;
// Formula from PaperDollFrame script //float spirit = GetStat(STAT_SPIRIT); //float baseSpirit = spirit; //if (baseSpirit>50) baseSpirit = 50; //float moreSpirit = spirit - baseSpirit; //float regen = baseSpirit * baseRatio->ratio + moreSpirit * moreRatio->ratio; //return regen; }
So in case addvalue = OCTRegenHPPerSpirit() * HealthIncreaseRate; we always have addvalue=0...
Fix 1 - just remove 0 and not need anymore function: https://gist.github.com/3462472
Fix 2 - by TC way... It's look more correctly... https://gist.github.com/3462653
There is a Fix but it needs to be written correctly. If you like i can share it. Find me on IRC.
Fixed
HP doesn't regen