oEtG Forum

Pack Rebalance

serprex

  • Global Moderator
  • *****
    • Posts: 1543
Code: [Select]
#!/usr/bin/python
from functools import reduce
def f(cost, *x):
bump = .45/sum(x)
if bump == .45:bump = 0
b=[0]
for a in x:
b[-1] += a-a*bump
b.append(a*bump)
print(b, cost, sum(costs[x]*b[x] for x in range(5) if x < len(b)))
return b
#costs = [5/3, 20/3, 100/3, 40, 250]
costs = [1.375, 5, 30, 35, 250]
#f(15, 9)
f(15, 10)
f(25, 3, 3)
f(65, 3, 4, 1)
f(100, 4, 3, 1, 1)
f(250, 0, 0, 0, 0, 1)
Code: [Select]
(format: expected amount of rarities per pack level, cost of pack, expected pack value)
Commented output (Current state of affairs)
[8.55, 0.45] 15 17.25
[2.775, 3.0, 0.22499999999999998] 25 32.125
[2.83125, 3.94375, 1.16875, 0.05625] 65 72.21875
[3.8, 3.0500000000000003, 1.1, 1.0, 0.05] 100 115.83333333333334
[0, 0, 0, 0, 1, 0] 250 250.0
New output (Result of proposal)
[9.55, 0.44999999999999996] 15 15.381250000000001
[2.775, 3.0, 0.22499999999999998] 25 25.565625
[2.83125, 3.94375, 1.16875, 0.05625] 65 60.64296875
[4.775, 3.0900000000000003, 1.0899999999999999, 1.0, 0.045] 100 100.975
[0, 0, 0, 0, 1, 0] 250 250.0
Essentially I'm proposing 3 changes:
Make Bronze give 10 commons
Reduce cost of Gold pack to 60
Modify calcWealth to value cards with these new values [1.375, 5, 30, 35, 250]
(possibly) readjust sell values (this would only lower sell value of Shard atm)

This proposal is live

Useful numbers from http://wims.unice.fr/wims/en_tool~linear~linsolver.en.html
If Gold cost 50, then solution is { x1 = 1.297970749735931, x2 = 5.787509644493023, x3 = 17.9360099377943, x4 = 45.11853403633169, x5 = 250.0 }
As is, true value is { x1 = 1.34296277607093, x2 = 4.832678863383583, x3 = 30.11218536112181, x4 = 34.58209301278322, x5 = 250.0 }
Having Gold cost 65 results in rares being valued higher than shards. Values after raritybump implemented: { x1 = 1.534119028990239, x2 = 4.185071782518781, x3 = 36.38935265331437, x4 = 28.82831543647584, x5 = 250.0 }
« Last Edit: October 14, 2014, 01:21:26 pm by serprex »