Talk:Energy/Recovery table

From Old School RuneScape Wiki
Jump to: navigation, search
This talk page is for discussing the Energy/Recovery table page.

Formula[edit source]

Not really sure if these calculations are correct...

Take levels 0-5 regeneration for example, it would be

1/(1/7.5 * 1.3) = 5.769 seconds per 1% energy if full Graceful's 30% boost is taken into account.  —The preceding unsigned comment was added by 2601:184:4780:a130:91b8:268c:7f02:16e0 (talk) on 04:23, 18 June 2020 (UTC).

The difference is due to the game working purely in integers, so every multiplication/division step is floored afterwards. 1% energy is 100 units of energy (100% is 10,000), and you regen 8 + floor(level/6) per tick. When you multiply this by 1.3, that result is also floored, so instead of gaining 8 * 1.3 = 10.4 per tick, you instead get floor(8 * 1.3) = 10. This will take 10 ticks, or 6 seconds for 1% energy with graceful at levels 1 through 5. -Towelcat (talk) 01:08, 19 June 2020 (UTC)