Skip to content

Commit 67431f2

Browse files
committed
Add more fields to CondBuffValue
1 parent a694097 commit 67431f2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

app/core/basic.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,16 +205,20 @@ def get_nice_buff_script(
205205
}
206206

207207
if "condBuffValue" in mstBuff.script:
208+
condBuffValues: list[dict[str, Any]] = mstBuff.script["condBuffValue"]
208209
script["condBuffValue"] = [
209210
{
210211
"buffType": BUFF_TYPE_NAME[cond["buffType"]],
211212
"condValue": cond["condValue"],
213+
"buffCheckIndvType": cond.get("buffCheckIndvType"),
212214
"buffIndividualities": get_traits_list(cond["buffIndividualitie"]),
213215
"valueCondTargetType": BUFF_CONDITION_TARGET_TYPE[
214216
cond["valueCondTargetType"]
215217
],
218+
"filterActivePassive": cond.get("filterActivePassive"),
219+
"filterSubStateEnable": cond.get("filterSubStateEnable"),
216220
}
217-
for cond in mstBuff.script["condBuffValue"]
221+
for cond in condBuffValues
218222
]
219223

220224
return script

app/schemas/common.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,11 @@ class CondBuffValue(BaseModel):
133133

134134
buffType: NiceBuffType
135135
condValue: str
136+
buffCheckIndvType: int | None = None
136137
buffIndividualities: list[NiceTrait]
137138
valueCondTargetType: NiceBuffConditionTargetType
139+
filterActivePassive: int | None = None
140+
filterSubStateEnable: int | None = None
138141

139142

140143
class BuffScript(BaseModel):

0 commit comments

Comments
 (0)