Skip to content

Commit 587718e

Browse files
committed
Added BuffList.ConditionTargetType
1 parent 1fb56b8 commit 587718e

File tree

3 files changed

+58
-0
lines changed

3 files changed

+58
-0
lines changed

app/schemas/gameenums.py

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6959,3 +6959,42 @@ class NiceBuffConditionType(StrEnum):
69596959
3: NiceBuffConditionType.individualitieOr,
69606960
4: NiceBuffConditionType.individualitieAnd,
69616961
}
6962+
6963+
6964+
class BuffConditionTargetType(IntEnum):
6965+
NONE = 0
6966+
PT_ALL = 1
6967+
ENEMY_ALL = 2
6968+
FIELD_ALL = 3
6969+
PT_FULL = 4
6970+
ENEMY_FULL = 5
6971+
PT_OTHER_ALL = 6
6972+
PT_OTHER_FULL = 7
6973+
FIELD_OTHER_ALL = 8
6974+
6975+
6976+
class NiceBuffConditionTargetType(StrEnum):
6977+
"""Buff Condition Target Type"""
6978+
6979+
none = "none"
6980+
ptAll = "ptAll"
6981+
enemyAll = "enemyAll"
6982+
fieldAll = "fieldAll"
6983+
ptFull = "ptFull"
6984+
enemyFull = "enemyFull"
6985+
ptOtherAll = "ptOtherAll"
6986+
ptOtherFull = "ptOtherFull"
6987+
fieldOtherAll = "fieldOtherAll"
6988+
6989+
6990+
BUFF_CONDITION_TARGET_TYPE: dict[int, NiceBuffConditionTargetType] = {
6991+
0: NiceBuffConditionTargetType.none,
6992+
1: NiceBuffConditionTargetType.ptAll,
6993+
2: NiceBuffConditionTargetType.enemyAll,
6994+
3: NiceBuffConditionTargetType.fieldAll,
6995+
4: NiceBuffConditionTargetType.ptFull,
6996+
5: NiceBuffConditionTargetType.enemyFull,
6997+
6: NiceBuffConditionTargetType.ptOtherAll,
6998+
7: NiceBuffConditionTargetType.ptOtherFull,
6999+
8: NiceBuffConditionTargetType.fieldOtherAll,
7000+
}

scripts/enum.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2394,3 +2394,15 @@ export enum NiceBuffConditionType {
23942394
INDIVIDUALITIE_OR = "individualitieOr",
23952395
INDIVIDUALITIE_AND = "individualitieAnd",
23962396
}
2397+
2398+
export enum NiceBuffConditionTargetType {
2399+
NONE = "none",
2400+
PT_ALL = "ptAll",
2401+
ENEMY_ALL = "enemyAll",
2402+
FIELD_ALL = "fieldAll",
2403+
PT_FULL = "ptFull",
2404+
ENEMY_FULL = "enemyFull",
2405+
PT_OTHER_ALL = "ptOtherAll",
2406+
PT_OTHER_FULL = "ptOtherFull",
2407+
FIELD_OTHER_ALL = "fieldOtherAll",
2408+
}

scripts/extract_enums.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -788,6 +788,13 @@ def cs_enum_to_ts(cs_enums: list[str], raw_class: str, nice_class: str) -> list[
788788
"Condition Type for Conditional Battle Buff",
789789
"BUFF_CONDITION_TYPE",
790790
),
791+
(
792+
"BuffList.ConditionTargetType",
793+
"BuffConditionTargetType",
794+
"NiceBuffConditionTargetType",
795+
"Buff Condition Target Type",
796+
"BUFF_CONDITION_TARGET_TYPE",
797+
),
791798
]
792799

793800

0 commit comments

Comments
 (0)