Delete projected modules from citadels
This commit is contained in:
21
eos/db/migrations/upgrade15.py
Normal file
21
eos/db/migrations/upgrade15.py
Normal file
@@ -0,0 +1,21 @@
|
||||
"""
|
||||
Migration 15
|
||||
|
||||
- Delete projected modules on citadels
|
||||
"""
|
||||
|
||||
import sqlalchemy
|
||||
|
||||
def upgrade(saveddata_engine):
|
||||
|
||||
sql = """
|
||||
DELETE FROM modules WHERE ID IN
|
||||
(
|
||||
SELECT m.ID FROM modules AS m
|
||||
JOIN fits AS f ON m.fitID = f.ID
|
||||
WHERE f.shipID IN ("35832", "35833", "35834", "40340")
|
||||
AND m.projected = 1
|
||||
)
|
||||
"""
|
||||
|
||||
saveddata_engine.execute(sql)
|
||||
6564
iconIDs.yaml
Normal file
6564
iconIDs.yaml
Normal file
File diff suppressed because it is too large
Load Diff
13
implants.py
Normal file
13
implants.py
Normal 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
|
||||
1
scripts/icons.json
Normal file
1
scripts/icons.json
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user