Quote (AbDuCt @ Dec 9 2012 09:06am)
% increase isnt that hard. depending if you want to append it to the average of stats or sum of them you simply would do
Code
global.averageofstats += (global.averageofstats * global.portscanpercent) / 100;
if average is 63 and portscan level 1 gives 15% better stats that would be
63 * 15 = 945
945 / 100 = 9.45
63 + 9.45 = 72.45
if you do small % increases say level 1 is 3% level 2 is 8% level 3 is 12%
you can scale it how you want but if you keep it low it will be noticeable depending how you implement your rolling system.
true true, not sure i would make it a % on the average of stats, but rather just hacking || programming, and whole numbers are your friend i use ceil all the time XD
This post was edited by WhyteLinux on Dec 8 2012 03:30pm