CalcRecommendedLevelBonus
This function is used to calculate the stats of an item when the recomended level is greater then the character level.
Code:
int Client::CalcRecommendedLevelBonus(int8 level, uint8 reclevel, int basestat) Code:
float statmod = (level / reclevel) * basestat; will always return 0. Code:
float statmod = (((float)level) / reclevel) * basestat; There is a secondary issue (I beleive) that the server computes the stats on an item by item basis, while the client creates amalgamated items of the item and all its augs and then calculates the stats. Chris |
You're indeed right, that should result in that always being 0. Had noticed rec. levels not working quite right a while back but never looked at it. Might even be able to do it without the casts.
|
Think you are right casts are not needed.
There is a second change that is needed which popergates the recomended level. I have written the code, just need to test it compiles before I post it |
All times are GMT -4. The time now is 01:19 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.