I am a newer coder, trying to get the hang of things. I am looking to add some special effects to my items, but I can't figure out how to get it working correctly.
How do I find out what lets say 2% of their experience gain is, and then add that ontop of their experience gain?
So if I turn on a 2% experience bonus, they will gain an additional 2% experience per kill.
Or just exp *= 1.02. If the gain is too small it may not be noticeable with only 2% and just truncate. IE: 10 exp *= 1.02 is 10.2 – so it'll just cut off to 10.
I am a newer coder, trying to get the hang of things. I am looking to add some special effects to my items, but I can't figure out how to get it working correctly.
How do I find out what lets say 2% of their experience gain is, and then add that ontop of their experience gain?
So if I turn on a 2% experience bonus, they will gain an additional 2% experience per kill.
Thanks!