diff --git a/convert/__main__.py b/convert/__main__.py index 7b5da54..89dd91f 100644 --- a/convert/__main__.py +++ b/convert/__main__.py @@ -187,48 +187,48 @@ def convert_dogma_attributes(path): pb2.entries[id].stackable = entry["stackable"] # Entries that don't exist in the SDE, but are calculated by the library. - def add_esf_attribute(id, name): + def add_esf_attribute(id, name, high_is_good): pb2.entries[id].name = name pb2.entries[id].published = True pb2.entries[id].defaultValue = 0 - pb2.entries[id].highIsGood = False + pb2.entries[id].highIsGood = high_is_good pb2.entries[id].stackable = False - add_esf_attribute(-1, "alignTime") - add_esf_attribute(-2, "scanStrength") - add_esf_attribute(-3, "cpuUsed") - add_esf_attribute(-4, "powerUsed") - add_esf_attribute(-5, "cpuUnused") - add_esf_attribute(-6, "powerUnused") - add_esf_attribute(-7, "velocityBoost") - add_esf_attribute(-8, "shieldEhpMultiplier") - add_esf_attribute(-9, "armorEhpMultiplier") - add_esf_attribute(-10, "hullEhpMultiplier") - add_esf_attribute(-11, "shieldEhp") - add_esf_attribute(-12, "armorEhp") - add_esf_attribute(-13, "hullEhp") - add_esf_attribute(-14, "ehp") - add_esf_attribute(-15, "passiveShieldRecharge") - add_esf_attribute(-16, "shieldBoostRate") - add_esf_attribute(-17, "armorRepairRate") - add_esf_attribute(-18, "hullRepairRate") - add_esf_attribute(-19, "passiveShieldRechargeEhp") - add_esf_attribute(-20, "shieldBoostRateEhp") - add_esf_attribute(-21, "armorRepairRateEhp") - add_esf_attribute(-22, "hullRepairRateEhp") - add_esf_attribute(-23, "capacitorPeakRecharge") - add_esf_attribute(-24, "capacitorPeakUsage") - add_esf_attribute(-25, "capacitorPeakDelta") - add_esf_attribute(-26, "capacitorPeakDeltaPercentage") - add_esf_attribute(-27, "capacitorDepletesIn") - add_esf_attribute(-28, "damageWithoutReloadDps") - add_esf_attribute(-29, "damageWithReloadDps") - add_esf_attribute(-30, "damageAlphaHp") - add_esf_attribute(-31, "droneActive") - add_esf_attribute(-32, "droneBandwidthUsedTotal") - add_esf_attribute(-33, "droneDamageAlphaHp") - add_esf_attribute(-34, "droneDamageDps") - add_esf_attribute(-35, "droneCapacityUsed") + add_esf_attribute(-1, "alignTime", False) + add_esf_attribute(-2, "scanStrength", True) + add_esf_attribute(-3, "cpuUsed", False) + add_esf_attribute(-4, "powerUsed", False) + add_esf_attribute(-5, "cpuUnused", True) + add_esf_attribute(-6, "powerUnused", True) + add_esf_attribute(-7, "velocityBoost", True) + add_esf_attribute(-8, "shieldEhpMultiplier", True) + add_esf_attribute(-9, "armorEhpMultiplier", True) + add_esf_attribute(-10, "hullEhpMultiplier", True) + add_esf_attribute(-11, "shieldEhp", True) + add_esf_attribute(-12, "armorEhp", True) + add_esf_attribute(-13, "hullEhp", True) + add_esf_attribute(-14, "ehp", True) + add_esf_attribute(-15, "passiveShieldRecharge", True) + add_esf_attribute(-16, "shieldBoostRate", True) + add_esf_attribute(-17, "armorRepairRate", True) + add_esf_attribute(-18, "hullRepairRate", True) + add_esf_attribute(-19, "passiveShieldRechargeEhp", True) + add_esf_attribute(-20, "shieldBoostRateEhp", True) + add_esf_attribute(-21, "armorRepairRateEhp", True) + add_esf_attribute(-22, "hullRepairRateEhp", True) + add_esf_attribute(-23, "capacitorPeakRecharge", True) + add_esf_attribute(-24, "capacitorPeakUsage", False) + add_esf_attribute(-25, "capacitorPeakDelta", True) + add_esf_attribute(-26, "capacitorPeakDeltaPercentage", True) + add_esf_attribute(-27, "capacitorDepletesIn", False) + add_esf_attribute(-28, "damageWithoutReloadDps", True) + add_esf_attribute(-29, "damageWithReloadDps", True) + add_esf_attribute(-30, "damageAlphaHp", True) + add_esf_attribute(-31, "droneActive", True) + add_esf_attribute(-32, "droneBandwidthUsedTotal", False) + add_esf_attribute(-33, "droneDamageAlphaHp", True) + add_esf_attribute(-34, "droneDamageDps", True) + add_esf_attribute(-35, "droneCapacityUsed", False) with open("dist/sde/dogmaAttributes.pb2", "wb") as fp: fp.write(pb2.SerializeToString())