From d14b40359e763cb0582d5666a4914cdf43e38329 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Sun, 7 Jan 2024 15:35:01 +0100 Subject: [PATCH] feat: custom attributes for Capacitor Peak Recharge / Usage / Delta (#29) --- README.md | 4 ++++ convert.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/README.md b/README.md index 0441f75..503a6e5 100644 --- a/README.md +++ b/README.md @@ -75,3 +75,7 @@ The EVE SDE has some quirks, that are easiest fixed in the conversion. - `-20`: `shieldBoostRateEhp` - shield boost rate (in eHP/s). - `-21`: `armorRepairRateEhp` - armor repair rate (in eHP/s). - `-22`: `hullRepairRateEhp` - hull repair rate (in eHP/s). + - `-23`: `capacitorPeakRecharge` - peak recharge of capacitor (in GJ/s). + - `-24`: `capacitorPeakUsage` - peak usage of capacitor (in GJ/s), when all modules would activate at the same time. + - `-25`: `capacitorPeakDelta` - delta between peak recharge and usage (in GJ/s). + - `-26`: `capacitorPeakDeltaPercentage` - delta between peak recharge and usage in percentage against peak recharge. diff --git a/convert.py b/convert.py index 909763e..f3a655c 100644 --- a/convert.py +++ b/convert.py @@ -165,6 +165,10 @@ def convert_dogma_attributes(path): 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") with open("dist/sde/dogmaAttributes.pb2", "wb") as fp: fp.write(pb2.SerializeToString())