Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
new KMST gear has percentage based ACC and AVOID
#31
I created a program which answers the following question:

"Given two hundred choices, at each choice is it better to add to DEX or better to add to ACC for a warrior?"

The table came out like this:

 Spoiler

Here's my source code if you want to scrutinize it:

Code:
[noparse]
DEXMULT = 80
ACCMULT = 1
Dex = 0
Acc = 0

#Use this formula so there are no floating point errors
def CalculateAcc(Dex, Acc):
    return (Dex * DEXMULT) * (100 + Acc * ACCMULT)

print("[table=head;autonum=1]ACC|DEX")
for eachDex in range(200):
    if CalculateAcc(Dex + 1, Acc) > CalculateAcc(Dex, Acc + 1):
        Dex += 1
    else:
        Acc += 1
    print("%d|%d" % (Acc, Dex))
print("[/table]")
[/noparse]
Reply


Messages In This Thread
new KMST gear has percentage based ACC and AVOID - by Fiel - 2010-03-29, 04:01 PM

Forum Jump:


Users browsing this thread: