Math problems
Ok.....so this was working fine up until i raised my LEVEL_INCREMENT
@ an increment of 32 it works wonderfully, but when i bring it up to a 37 it goes haywire. I'm trying to have a level system that you can specify the points (i call frags) of the first 5 levels. then after that it gets calculated. I'm not sure what is broken but can someone take a look at it? It seems my basic math is kind of rusty..... Here is the code that i have. Defined lvl 0-5, LEVEL_INCREMENT, and then the offset. Should be self explanatory. PHP Code:
I know that floatround_ceil is the wrong way to go for most calculations, but it seemed to be going low even when i calculate @ LEVEL_INCREMENT 36 (what a lvl 5 would normally be) Its just blowing my life... Thanks in advance. |
Re: Math problems
When LEVEL_INCREMENT is 32 then LevelOffset is positive. When LEVEL_INCREMENT is 37 then LevelOffset is negative. However, LevelOffset doesn't make any sense to me (my brain started to hurt when trying to figure it out lol).
This is how I would expect something like this to work based on this comment: PHP Code:
PHP Code:
|
Re: Math problems
The LevelOffset was supposed to pretty much be an easy way for the - LEVEL5 and + 6 in the calculations. But i guess it was just me being stupid.....
Yeah....that makes more sense, guess i was stuck on that one idea. Will test and report back. (not that i expect issues) Thanks. |
| All times are GMT -4. The time now is 05:48. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.