From 6368f4a814dfee1120ce9eb4dfba0c02a6a72754 Mon Sep 17 00:00:00 2001 From: ishkong <19740260+ishkong@users.noreply.github.com> Date: Tue, 18 Feb 2025 14:55:40 +0800 Subject: [PATCH] Fix when json promotion is None but userdata is 0 --- starrail_damage_cal/excel/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/starrail_damage_cal/excel/model.py b/starrail_damage_cal/excel/model.py index 26ca1e4..83d90d9 100644 --- a/starrail_damage_cal/excel/model.py +++ b/starrail_damage_cal/excel/model.py @@ -46,7 +46,7 @@ class SingleEquipmentPromotion(Struct): BaseAttackAdd: PromotionAttr BaseDefence: PromotionAttr BaseDefenceAdd: PromotionAttr - Promotion: Union[int, None] = None + Promotion: int = 0 PlayerLevelRequire: Union[int, None] = None