The following warnings occurred:
Warning [2] Use of undefined constant SAPI_NAME - assumed 'SAPI_NAME' (this will throw an Error in a future version of PHP) - Line: 3388 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3388 errorHandler->error
/showthread.php 116 build_archive_link
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/inc/functions.php 3324 build_forum_breadcrumb
/showthread.php 195 build_forum_breadcrumb
Warning [2] Use of undefined constant IN_ARCHIVE - assumed 'IN_ARCHIVE' (this will throw an Error in a future version of PHP) - Line: 3331 - File: inc/functions.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/inc/functions.php 3331 errorHandler->error
/showthread.php 195 build_forum_breadcrumb
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 786 - File: showthread.php PHP 7.4.33-nmm7 (Linux)
File Line Function
/showthread.php 786 errorHandler->error






Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
New Stat Regen Doubt
Author Message
Lightsource
Apprentice
*

Posts: 9
Likes Given: 2
Likes Received: 1 in 1 posts
Joined: Dec 2013
Reputation: 0



Post: #1
Question New Stat Regen Doubt
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):

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
(This post was last modified: 01-27-2017 11:27 PM by Lightsource.)
01-27-2017 10:51 PM
Find all posts by this user Like Post Quote this message in a reply
Post Reply 


Messages In This Thread
New Stat Regen Doubt - Lightsource - 01-27-2017 10:51 PM
RE: New Stat Regen Doubt - Lightsource - 01-28-2017, 04:50 AM
RE: New Stat Regen Doubt - Coruja - 01-28-2017, 04:04 PM
RE: New Stat Regen Doubt - Lightsource - 01-28-2017, 11:28 PM
RE: New Stat Regen Doubt - Anarch Cassius - 01-29-2017, 06:29 AM

Forum Jump:


User(s) browsing this thread: 2 Guest(s)