01-27-2017, 10:51 PM
Hello!
I'm coming from using a build of Sphere 56b from 2012 to Sphere 56d Nightly and I'm having issues with this new Stats Regen thing.
Before when the player had HITS = 120 and MAXHITS = 100, it would go down one hitpoint per tick, I'm guessing from here at CCharact (56b):
But now when the player goes Hits > Maxhits, at the next regen his HITS will go HITS = MAXHITS at once.
The thing is that in @RegenStat it says this:
the word Until suggests that it will go down in a linear regression, not all at once. Am I mistaken?
If so, how can I make it go down slowly and not that fast?
The reason I'm asking this is because we have a potion called Life Boost that gives you a Boost in your HPs. I don't want to softcode the entire system cuz this item is widely used here and it would cost my server a lot of processing...
Thanks in advance
edit: I'm guessing this is the place where this happens that didn't existed before: CCharSkill
I'm coming from using a build of Sphere 56b from 2012 to Sphere 56d Nightly and I'm having issues with this new Stats Regen thing.
Before when the player had HITS = 120 and MAXHITS = 100, it would go down one hitpoint per tick, I'm guessing from here at CCharact (56b):
Code:
{
EXC_SET(g_Stat_Name[i]);
m_Stat[i].m_regen += iTimeDiff; (...)But now when the player goes Hits > Maxhits, at the next regen his HITS will go HITS = MAXHITS at once.
The thing is that in @RegenStat it says this:
Quote:Local.StatLimit: Stats over this value will go down in each tick until they reach their limit.
the word Until suggests that it will go down in a linear regression, not all at once. Am I mistaken?
If so, how can I make it go down slowly and not that fast?
The reason I'm asking this is because we have a potion called Life Boost that gives you a Boost in your HPs. I don't want to softcode the entire system cuz this item is widely used here and it would cost my server a lot of processing...
Thanks in advance
edit: I'm guessing this is the place where this happens that didn't existed before: CCharSkill
