Skip to content

Commit 7f23287

Browse files
committed
Added new enums
1 parent 771984d commit 7f23287

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

app/schemas/gameenums.py

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2029,6 +2029,15 @@ class DataValsType(IntEnum):
20292029
SyncUsedSameIndivBuffActorOnField = 217
20302030
OnlyMaxFuncGroupId = 218
20312031
UseAttack = 219
2032+
CondParamAddType = 220
2033+
CondParamAddValue = 221
2034+
CondParamAddMaxValue = 222
2035+
CondParamAddTargetId = 223
2036+
CondParamRangeType = 224
2037+
CondParamRangeMaxCount = 225
2038+
CondParamRangeMaxValue = 226
2039+
CondParamRangeTargetId = 227
2040+
ExecOnce = 228
20322041

20332042

20342043
class ClassRelationOverwriteType(IntEnum):
@@ -2093,6 +2102,7 @@ class ItemType(IntEnum):
20932102
EXCHANGE_SVT_COIN = 38
20942103
REDUCE_TRADE_TIME = 39
20952104
EVENT_PASSIVE_SKILL_GIVEN = 40
2105+
SHOP18_ITEM = 41
20962106

20972107

20982108
class NiceItemType(StrEnum):
@@ -2138,6 +2148,7 @@ class NiceItemType(StrEnum):
21382148
exchangeSvtCoin = "exchangeSvtCoin"
21392149
reduceTradeTime = "reduceTradeTime"
21402150
eventPassiveSkillGiven = "eventPassiveSkillGiven"
2151+
shop18Item = "shop18Item"
21412152
netmarbleChargeStone = "netmarbleChargeStone"
21422153

21432154

@@ -2182,6 +2193,7 @@ class NiceItemType(StrEnum):
21822193
38: NiceItemType.exchangeSvtCoin,
21832194
39: NiceItemType.reduceTradeTime,
21842195
40: NiceItemType.eventPassiveSkillGiven,
2196+
41: NiceItemType.shop18Item,
21852197
9999: NiceItemType.netmarbleChargeStone,
21862198
}
21872199

@@ -2204,6 +2216,7 @@ class GiftType(IntEnum):
22042216
EVENT_HEEL_PORTRAIT = 15
22052217
BATTLE_ITEM = 16
22062218
PRIVILEGE = 17
2219+
CLASS_SKILL = 18
22072220

22082221

22092222
class NiceGiftType(StrEnum):
@@ -2226,6 +2239,7 @@ class NiceGiftType(StrEnum):
22262239
eventHeelPortrait = "eventHeelPortrait"
22272240
battleItem = "battleItem"
22282241
privilege = "privilege"
2242+
classSkill = "classSkill"
22292243

22302244

22312245
GIFT_TYPE_NAME: dict[int, NiceGiftType] = {
@@ -2246,6 +2260,7 @@ class NiceGiftType(StrEnum):
22462260
15: NiceGiftType.eventHeelPortrait,
22472261
16: NiceGiftType.battleItem,
22482262
17: NiceGiftType.privilege,
2263+
18: NiceGiftType.classSkill,
22492264
}
22502265

22512266

@@ -2268,6 +2283,7 @@ class ShopType(IntEnum):
22682283
REVIVAL_ITEM = 15
22692284
EVENT_SVT_EQUIP = 16
22702285
EXCHANGE_SVT_COIN = 17
2286+
SHOP18 = 18
22712287

22722288

22732289
class NiceShopType(StrEnum):
@@ -2291,6 +2307,7 @@ class NiceShopType(StrEnum):
22912307
revivalItem = "revivalItem"
22922308
eventSvtEquip = "eventSvtEquip"
22932309
exchangeSvtCoin = "exchangeSvtCoin"
2310+
shop18 = "shop18"
22942311

22952312

22962313
SHOP_TYPE_NAME: dict[int, NiceShopType] = {
@@ -2312,6 +2329,7 @@ class NiceShopType(StrEnum):
23122329
15: NiceShopType.revivalItem,
23132330
16: NiceShopType.eventSvtEquip,
23142331
17: NiceShopType.exchangeSvtCoin,
2332+
18: NiceShopType.shop18,
23152333
}
23162334

23172335

@@ -2392,6 +2410,7 @@ class PurchaseType(IntEnum):
23922410
GIFT = 20
23932411
EVENT_SVT_JOIN = 21
23942412
ASSIST = 22
2413+
SHOP18_ITEM = 23
23952414

23962415

23972416
class NicePurchaseType(StrEnum):
@@ -2419,6 +2438,7 @@ class NicePurchaseType(StrEnum):
24192438
gift = "gift"
24202439
eventSvtJoin = "eventSvtJoin"
24212440
assist = "assist"
2441+
shop18Item = "shop18Item"
24222442
kiaraPunisherReset = "kiaraPunisherReset"
24232443

24242444

@@ -2445,6 +2465,7 @@ class NicePurchaseType(StrEnum):
24452465
20: NicePurchaseType.gift,
24462466
21: NicePurchaseType.eventSvtJoin,
24472467
22: NicePurchaseType.assist,
2468+
23: NicePurchaseType.shop18Item,
24482469
13: NicePurchaseType.kiaraPunisherReset,
24492470
}
24502471

@@ -2748,6 +2769,9 @@ class CondType(IntEnum):
27482769
ELAPSED_TIME_AFTER_SVT_GET = 254
27492770
NOT_ELAPSED_TIME_AFTER_QUEST_CLEAR = 255
27502771
NOT_ELAPSED_TIME_AFTER_SVT_GET = 256
2772+
GRAND_SVT_SET = 258
2773+
PLAYED_MOVIE = 259
2774+
NOT_PLAYED_MOVIE = 260
27512775

27522776

27532777
class NiceCondType(StrEnum):
@@ -3003,6 +3027,9 @@ class NiceCondType(StrEnum):
30033027
elapsedTimeAfterSvtGet = "elapsedTimeAfterSvtGet"
30043028
notElapsedTimeAfterQuestClear = "notElapsedTimeAfterQuestClear"
30053029
notElapsedTimeAfterSvtGet = "notElapsedTimeAfterSvtGet"
3030+
grandSvtSet = "grandSvtSet"
3031+
playedMovie = "playedMovie"
3032+
notPlayedMovie = "notPlayedMovie"
30063033

30073034

30083035
COND_TYPE_NAME: dict[int, NiceCondType] = {
@@ -3256,6 +3283,9 @@ class NiceCondType(StrEnum):
32563283
254: NiceCondType.elapsedTimeAfterSvtGet,
32573284
255: NiceCondType.notElapsedTimeAfterQuestClear,
32583285
256: NiceCondType.notElapsedTimeAfterSvtGet,
3286+
258: NiceCondType.grandSvtSet,
3287+
259: NiceCondType.playedMovie,
3288+
260: NiceCondType.notPlayedMovie,
32593289
}
32603290

32613291

@@ -5718,6 +5748,9 @@ class RestrictionType(IntEnum):
57185748
UNIQUE_INDIVIDUALITY = 15
57195749
MY_SVT_OR_SUPPORT = 16
57205750
DATA_LOST_BATTLE_UNIQUE_SVT = 17
5751+
MY_GRAND_SVT = 21
5752+
FIXED_MY_GRAND_SVT = 22
5753+
MY_GRAND_SVT_POSITION_MAIN = 23
57215754
FIXED_COSTUME = 101
57225755

57235756

@@ -5741,6 +5774,9 @@ class NiceRestrictionType(StrEnum):
57415774
uniqueIndividuality = "uniqueIndividuality"
57425775
mySvtOrSupport = "mySvtOrSupport"
57435776
dataLostBattleUniqueSvt = "dataLostBattleUniqueSvt"
5777+
myGrandSvt = "myGrandSvt"
5778+
fixedMyGrandSvt = "fixedMyGrandSvt"
5779+
myGrandSvtPositionMain = "myGrandSvtPositionMain"
57445780
fixedCostume = "fixedCostume"
57455781

57465782

@@ -5762,6 +5798,9 @@ class NiceRestrictionType(StrEnum):
57625798
15: NiceRestrictionType.uniqueIndividuality,
57635799
16: NiceRestrictionType.mySvtOrSupport,
57645800
17: NiceRestrictionType.dataLostBattleUniqueSvt,
5801+
21: NiceRestrictionType.myGrandSvt,
5802+
22: NiceRestrictionType.fixedMyGrandSvt,
5803+
23: NiceRestrictionType.myGrandSvtPositionMain,
57655804
101: NiceRestrictionType.fixedCostume,
57665805
}
57675806

@@ -6226,6 +6265,7 @@ class SvtMultiPortraitSceneOverwriteType(IntEnum):
62266265
NONE = 0
62276266
COMBINE = 1
62286267
LIMIT_UP = 2
6268+
GRAND_SELECT = 3
62296269

62306270

62316271
class NiceSvtMultiPortraitType(StrEnum):
@@ -6234,12 +6274,14 @@ class NiceSvtMultiPortraitType(StrEnum):
62346274
none = "none"
62356275
combine = "combine"
62366276
limitUp = "limitUp"
6277+
grandSelect = "grandSelect"
62376278

62386279

62396280
SVT_MULTI_PORTRAIT_SCENE_TYPE_NAME: dict[int, NiceSvtMultiPortraitType] = {
62406281
0: NiceSvtMultiPortraitType.none,
62416282
1: NiceSvtMultiPortraitType.combine,
62426283
2: NiceSvtMultiPortraitType.limitUp,
6284+
3: NiceSvtMultiPortraitType.grandSelect,
62436285
}
62446286

62456287

app/schemas/nice.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,15 @@ class BaseVals(BaseModel):
632632
SyncUsedSameIndivBuffActorOnField: int | None = None
633633
OnlyMaxFuncGroupId: int | None = None
634634
UseAttack: int | None = None
635+
CondParamAddType: int | None = None
636+
CondParamAddValue: int | None = None
637+
CondParamAddMaxValue: int | None = None
638+
CondParamAddTargetId: int | None = None
639+
CondParamRangeType: int | None = None
640+
CondParamRangeMaxCount: int | None = None
641+
CondParamRangeMaxValue: int | None = None
642+
CondParamRangeTargetId: int | None = None
643+
ExecOnce: int | None = None
635644
# Extra dataval from SkillLvEntty.DIC_KEY_APPLY_SUPPORT_SVT
636645
ApplySupportSvt: Optional[int] = None
637646
# These are not DataVals but guesses from SkillLvEntity and EventDropUpValInfo

scripts/enum.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,15 @@ export enum NiceDataValsType {
816816
SyncUsedSameIndivBuffActorOnField = "syncusedsameindivbuffactoronfield",
817817
OnlyMaxFuncGroupId = "onlymaxfuncgroupid",
818818
UseAttack = "useattack",
819+
CondParamAddType = "condparamaddtype",
820+
CondParamAddValue = "condparamaddvalue",
821+
CondParamAddMaxValue = "condparamaddmaxvalue",
822+
CondParamAddTargetId = "condparamaddtargetid",
823+
CondParamRangeType = "condparamrangetype",
824+
CondParamRangeMaxCount = "condparamrangemaxcount",
825+
CondParamRangeMaxValue = "condparamrangemaxvalue",
826+
CondParamRangeTargetId = "condparamrangetargetid",
827+
ExecOnce = "execonce",
819828
}
820829

821830
export enum NiceClassRelationOverwriteType {
@@ -865,6 +874,7 @@ export enum NiceItemType {
865874
EXCHANGE_SVT_COIN = "exchangeSvtCoin",
866875
REDUCE_TRADE_TIME = "reduceTradeTime",
867876
EVENT_PASSIVE_SKILL_GIVEN = "eventPassiveSkillGiven",
877+
SHOP18_ITEM = "shop18Item",
868878
NETMARBLE_CHARGE_STONE = "netmarbleChargeStone",
869879
}
870880

@@ -886,6 +896,7 @@ export enum NiceGiftType {
886896
EVENT_HEEL_PORTRAIT = "eventHeelPortrait",
887897
BATTLE_ITEM = "battleItem",
888898
PRIVILEGE = "privilege",
899+
CLASS_SKILL = "classSkill",
889900
}
890901

891902
export enum NiceShopType {
@@ -907,6 +918,7 @@ export enum NiceShopType {
907918
REVIVAL_ITEM = "revivalItem",
908919
EVENT_SVT_EQUIP = "eventSvtEquip",
909920
EXCHANGE_SVT_COIN = "exchangeSvtCoin",
921+
SHOP18 = "shop18",
910922
}
911923

912924
export enum NicePayType {
@@ -949,6 +961,7 @@ export enum NicePurchaseType {
949961
GIFT = "gift",
950962
EVENT_SVT_JOIN = "eventSvtJoin",
951963
ASSIST = "assist",
964+
SHOP18_ITEM = "shop18Item",
952965
KIARA_PUNISHER_RESET = "kiaraPunisherReset",
953966
}
954967

@@ -1218,6 +1231,9 @@ export enum NiceCondType {
12181231
ELAPSED_TIME_AFTER_SVT_GET = "elapsedTimeAfterSvtGet",
12191232
NOT_ELAPSED_TIME_AFTER_QUEST_CLEAR = "notElapsedTimeAfterQuestClear",
12201233
NOT_ELAPSED_TIME_AFTER_SVT_GET = "notElapsedTimeAfterSvtGet",
1234+
GRAND_SVT_SET = "grandSvtSet",
1235+
PLAYED_MOVIE = "playedMovie",
1236+
NOT_PLAYED_MOVIE = "notPlayedMovie",
12211237
}
12221238

12231239
export enum NiceVoiceCondType {
@@ -2015,6 +2031,9 @@ export enum NiceRestrictionType {
20152031
UNIQUE_INDIVIDUALITY = "uniqueIndividuality",
20162032
MY_SVT_OR_SUPPORT = "mySvtOrSupport",
20172033
DATA_LOST_BATTLE_UNIQUE_SVT = "dataLostBattleUniqueSvt",
2034+
MY_GRAND_SVT = "myGrandSvt",
2035+
FIXED_MY_GRAND_SVT = "fixedMyGrandSvt",
2036+
MY_GRAND_SVT_POSITION_MAIN = "myGrandSvtPositionMain",
20182037
FIXED_COSTUME = "fixedCostume",
20192038
}
20202039

@@ -2157,6 +2176,7 @@ export enum NiceSvtMultiPortraitType {
21572176
NONE = "none",
21582177
COMBINE = "combine",
21592178
LIMIT_UP = "limitUp",
2179+
GRAND_SELECT = "grandSelect",
21602180
}
21612181

21622182
export enum NiceNpcFollowerEntityFlag {

0 commit comments

Comments
 (0)