Delete projected modules from citadels

This commit is contained in:
blitzman
2016-08-28 20:22:30 -04:00
parent c5b78c20e5
commit ed24ef2615
4 changed files with 6599 additions and 0 deletions

13
implants.py Normal file
View File

@@ -0,0 +1,13 @@
baseBonii = [0.01, 0.02, 0.03, 0.04, 0.05] # 0.01 = 1%
setMulti = [1.15, 1.15, 1.15, 1.15, 1.15, 1.5] # 1.15x = 15% bonus, these should be per attribute (?)
# First, calculate total set multiplier by multiplying all set multipliers
setTotal = reduce(lambda x, y: x*y, setMulti) # gets something to multply base bonus
print "bonus multipler from set: ", setTotal
# Then, apply that multiplier to each base bonus to get the effective bonus
effectiveBonii = map(lambda x: (x*setTotal)+1, baseBonii) # +1 to make these modifiers
print "effective bonii: ", effectiveBonii
# Lastly, reduce all the effective bonii to a single total bonus by multiplying them all together (per attribute)
total = reduce(lambda x, y: x*y, effectiveBonii)
print total