Remove single-precition workaround and update data to 1646988

This commit is contained in:
DarkPhoenix
2020-01-16 15:19:39 +03:00
parent 465ea61b06
commit 85593367f7
8 changed files with 79730 additions and 78252 deletions

View File

@@ -22,7 +22,6 @@
import functools
import itertools
import json
import math
import os
import sqlite3
import sys
@@ -115,12 +114,6 @@ def update_db():
setattr(instance, fieldMap.get(k, k), v)
eos.db.gamedata_session.add(instance)
def _roundToPrec(val, prec):
if int(val) == val:
return val
roundFactor = int(prec - math.floor(math.log10(abs(val))) - 1)
return round(val, roundFactor)
def processEveTypes():
print('processing evetypes')
data = _readData('fsd_lite', 'evetypes', keyIdName='typeID')
@@ -183,9 +176,6 @@ def update_db():
continue
for row in typeData.get('dogmaAttributes', ()):
row['typeID'] = typeData['typeID']
# As of dec 2019, CCP uses single-precision floats in their loader which results
# in 'ugly' numbers. Temporarily work around it by rounding here
row['value'] = _roundToPrec(row['value'], 7)
newData.append(row)
_addRows(newData, eos.gamedata.Attribute)
return newData

View File

@@ -32198,5 +32198,34 @@
"name": "mjdShipJumpCap",
"published": 1,
"stackable": 1
},
"3015": {
"attributeID": 3015,
"categoryID": 2,
"dataType": 4,
"defaultValue": 1.0,
"description": "Shield HP Bonus used for nirvana implants",
"displayName": "Shield Hitpoint Bonus",
"displayNameID": 555494,
"highIsGood": 1,
"iconID": 1384,
"name": "shieldHpBonus",
"published": 1,
"stackable": 1,
"unitID": 105
},
"3017": {
"attributeID": 3017,
"categoryID": 7,
"dataType": 5,
"defaultValue": 1.0,
"description": "Implant Set Nirvana",
"displayName": "Nirvana Set Bonus",
"displayNameID": 555503,
"highIsGood": 1,
"name": "ImplantSetNirvana",
"published": 1,
"stackable": 1,
"unitID": 104
}
}

View File

@@ -77951,5 +77951,50 @@
"propulsionChance": 0,
"published": 1,
"rangeChance": 0
},
"8011": {
"disallowAutoRepeat": 0,
"effectCategory": 0,
"effectID": 8011,
"effectName": "shieldHpBonusPostPercentHpLocationShip",
"electronicChance": 0,
"isAssistance": 0,
"isOffensive": 0,
"isWarpSafe": 0,
"modifierInfo": [
{
"domain": "shipID",
"func": "ItemModifier",
"modifiedAttributeID": 263,
"modifyingAttributeID": 3015,
"operation": 6
}
],
"propulsionChance": 0,
"published": 0,
"rangeChance": 0
},
"8013": {
"disallowAutoRepeat": 0,
"effectCategory": 0,
"effectID": 8013,
"effectName": "setBonusNirvana",
"electronicChance": 0,
"isAssistance": 0,
"isOffensive": 0,
"isWarpSafe": 0,
"modifierInfo": [
{
"domain": "charID",
"func": "LocationRequiredSkillModifier",
"modifiedAttributeID": 3015,
"modifyingAttributeID": 3017,
"operation": 0,
"skillTypeID": 3411
}
],
"propulsionChance": 0,
"published": 0,
"rangeChance": 0
}
}

View File

@@ -16040,5 +16040,23 @@
"name": "Special Edition Corvettes",
"nameID": 554135,
"parentGroupID": 1612
},
"2703": {
"description": "Precursor Dreadnoughts",
"descriptionID": 555352,
"hasTypes": 0,
"iconID": 21420,
"name": "Precursor Dreadnoughts",
"nameID": 555351,
"parentGroupID": 1971
},
"2704": {
"description": "Triglavian Dreadnoughts",
"descriptionID": 555354,
"hasTypes": 1,
"iconID": 21420,
"name": "Triglavian",
"nameID": 555353,
"parentGroupID": 2703
}
}

View File

@@ -87866,5 +87866,125 @@
"3402": [
1
]
},
"53704": {
"3411": [
2
]
},
"53705": {
"3411": [
2
]
},
"53706": {
"3411": [
3
]
},
"53707": {
"3411": [
4
]
},
"53708": {
"3411": [
3
]
},
"53709": {
"3411": [
5
]
},
"53710": {
"3411": [
2
]
},
"53711": {
"3411": [
2
]
},
"53712": {
"3411": [
3
]
},
"53713": {
"3411": [
4
]
},
"53714": {
"3411": [
5
]
},
"53715": {
"3411": [
3
]
},
"53722": {
"3380": [
4
]
},
"53723": {
"3380": [
4
]
},
"53724": {
"3380": [
4
]
},
"53725": {
"3380": [
4
]
},
"53726": {
"3380": [
4
]
},
"53727": {
"3380": [
4
]
},
"53728": {
"3380": [
4
]
},
"53729": {
"3380": [
4
]
},
"53730": {
"3380": [
4
]
},
"53731": {
"3380": [
4
]
},
"53732": {
"3380": [
4
]
},
"53733": {
"3380": [
4
]
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,10 +1,10 @@
[
{
"field_name": "client_build",
"field_value": 1635499
"field_value": 1646988
},
{
"field_name": "dump_time",
"field_value": 1576677195
"field_value": 1579174763
}
]