Skip to content

Commit

Permalink
Added new enum from 2.87.0
Browse files Browse the repository at this point in the history
  • Loading branch information
narumi147 committed Feb 14, 2024
1 parent 2c4d4ee commit aa4a341
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
37 changes: 37 additions & 0 deletions app/schemas/gameenums.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ class SvtFlag(IntEnum):
IGNORE_COMBINE_LIMIT_SPECIAL = 8
SVT_EQUIP_EXP = 16
SVT_EQUIP_CHOCOLATE = 32
SVT_EQUIP_MANA_EXCHANGE = 128
SVT_EQUIP_CAMPAIGN = 256
SVT_EQUIP_EVENT = 512
SVT_EQUIP_EVENT_REWARD = 1024


class NiceSvtFlag(StrEnum):
Expand All @@ -90,6 +94,10 @@ class NiceSvtFlag(StrEnum):
ignoreCombineLimitSpecial = "ignoreCombineLimitSpecial"
svtEquipExp = "svtEquipExp"
svtEquipChocolate = "svtEquipChocolate"
svtEquipManaExchange = "svtEquipManaExchange"
svtEquipCampaign = "svtEquipCampaign"
svtEquipEvent = "svtEquipEvent"
svtEquipEventReward = "svtEquipEventReward"
normal = "normal"
goetia = "goetia"
matDropRateUpCe = "matDropRateUpCe"
Expand All @@ -106,6 +114,10 @@ class NiceSvtFlag(StrEnum):
8: NiceSvtFlag.ignoreCombineLimitSpecial,
16: NiceSvtFlag.svtEquipExp,
32: NiceSvtFlag.svtEquipChocolate,
128: NiceSvtFlag.svtEquipManaExchange,
256: NiceSvtFlag.svtEquipCampaign,
512: NiceSvtFlag.svtEquipEvent,
1024: NiceSvtFlag.svtEquipEventReward,
0: NiceSvtFlag.normal,
63: NiceSvtFlag.goetia,
64: NiceSvtFlag.matDropRateUpCe,
Expand All @@ -123,6 +135,10 @@ class SvtFlagOriginal(IntEnum):
IGNORE_COMBINE_LIMIT_SPECIAL = 8
SVT_EQUIP_EXP = 16
SVT_EQUIP_CHOCOLATE = 32
SVT_EQUIP_MANA_EXCHANGE = 128
SVT_EQUIP_CAMPAIGN = 256
SVT_EQUIP_EVENT = 512
SVT_EQUIP_EVENT_REWARD = 1024


class NiceSvtFlagOriginal(StrEnum):
Expand All @@ -133,6 +149,10 @@ class NiceSvtFlagOriginal(StrEnum):
ignoreCombineLimitSpecial = "ignoreCombineLimitSpecial"
svtEquipExp = "svtEquipExp"
svtEquipChocolate = "svtEquipChocolate"
svtEquipManaExchange = "svtEquipManaExchange"
svtEquipCampaign = "svtEquipCampaign"
svtEquipEvent = "svtEquipEvent"
svtEquipEventReward = "svtEquipEventReward"


SVT_FLAG_ORIGINAL_NAME: dict[int, NiceSvtFlagOriginal] = {
Expand All @@ -141,6 +161,10 @@ class NiceSvtFlagOriginal(StrEnum):
8: NiceSvtFlagOriginal.ignoreCombineLimitSpecial,
16: NiceSvtFlagOriginal.svtEquipExp,
32: NiceSvtFlagOriginal.svtEquipChocolate,
128: NiceSvtFlagOriginal.svtEquipManaExchange,
256: NiceSvtFlagOriginal.svtEquipCampaign,
512: NiceSvtFlagOriginal.svtEquipEvent,
1024: NiceSvtFlagOriginal.svtEquipEventReward,
}


Expand Down Expand Up @@ -1675,6 +1699,7 @@ class DataValsType(IntEnum):
UnSubStateWhenContinue = 144
CheckTargetHaveDefeatPoint = 145
NPFixedDamageValue = 146
IgnoreShiftSafeDamage = 147


class ClassRelationOverwriteType(IntEnum):
Expand Down Expand Up @@ -2312,6 +2337,9 @@ class CondType(IntEnum):
PLAY_QUEST_PHASE = 209
NOT_PLAY_QUEST_PHASE = 210
EVENT_START_TO_END = 211
COMMON_VALUE_ABOVE = 212
COMMON_VALUE_BELOW = 213
COMMON_VALUE_EQUAL = 214


class NiceCondType(StrEnum):
Expand Down Expand Up @@ -2526,6 +2554,9 @@ class NiceCondType(StrEnum):
playQuestPhase = "playQuestPhase"
notPlayQuestPhase = "notPlayQuestPhase"
eventStartToEnd = "eventStartToEnd"
commonValueAbove = "commonValueAbove"
commonValueBelow = "commonValueBelow"
commonValueEqual = "commonValueEqual"


COND_TYPE_NAME: dict[int, NiceCondType] = {
Expand Down Expand Up @@ -2738,6 +2769,9 @@ class NiceCondType(StrEnum):
209: NiceCondType.playQuestPhase,
210: NiceCondType.notPlayQuestPhase,
211: NiceCondType.eventStartToEnd,
212: NiceCondType.commonValueAbove,
213: NiceCondType.commonValueBelow,
214: NiceCondType.commonValueEqual,
}


Expand Down Expand Up @@ -3466,6 +3500,7 @@ class WarEntityFlag(IntEnum):
IS_WAR_ICON_FREE = 2097152
IS_WAR_ICON_CENTER = 4194304
NOTICE_BOARD = 8388608
CHANGE_DISP_CLOSED_MESSAGE = 16777216


class NiceWarFlag(StrEnum):
Expand Down Expand Up @@ -3494,6 +3529,7 @@ class NiceWarFlag(StrEnum):
isWarIconFree = "isWarIconFree"
isWarIconCenter = "isWarIconCenter"
noticeBoard = "noticeBoard"
changeDispClosedMessage = "changeDispClosedMessage"


WAR_FLAG_NAME: dict[int, NiceWarFlag] = {
Expand All @@ -3520,6 +3556,7 @@ class NiceWarFlag(StrEnum):
2097152: NiceWarFlag.isWarIconFree,
4194304: NiceWarFlag.isWarIconCenter,
8388608: NiceWarFlag.noticeBoard,
16777216: NiceWarFlag.changeDispClosedMessage,
}


Expand Down
13 changes: 13 additions & 0 deletions scripts/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ export enum NiceSvtFlag {
IGNORE_COMBINE_LIMIT_SPECIAL = "ignoreCombineLimitSpecial",
SVT_EQUIP_EXP = "svtEquipExp",
SVT_EQUIP_CHOCOLATE = "svtEquipChocolate",
SVT_EQUIP_MANA_EXCHANGE = "svtEquipManaExchange",
SVT_EQUIP_CAMPAIGN = "svtEquipCampaign",
SVT_EQUIP_EVENT = "svtEquipEvent",
SVT_EQUIP_EVENT_REWARD = "svtEquipEventReward",
NORMAL = "normal",
GOETIA = "goetia",
MAT_DROP_RATE_UP_CE = "matDropRateUpCe",
Expand All @@ -41,6 +45,10 @@ export enum NiceSvtFlagOriginal {
IGNORE_COMBINE_LIMIT_SPECIAL = "ignoreCombineLimitSpecial",
SVT_EQUIP_EXP = "svtEquipExp",
SVT_EQUIP_CHOCOLATE = "svtEquipChocolate",
SVT_EQUIP_MANA_EXCHANGE = "svtEquipManaExchange",
SVT_EQUIP_CAMPAIGN = "svtEquipCampaign",
SVT_EQUIP_EVENT = "svtEquipEvent",
SVT_EQUIP_EVENT_REWARD = "svtEquipEventReward",
}

export enum NiceFuncType {
Expand Down Expand Up @@ -647,6 +655,7 @@ export enum NiceDataValsType {
UnSubStateWhenContinue = "unsubstatewhencontinue",
CheckTargetHaveDefeatPoint = "checktargethavedefeatpoint",
NPFixedDamageValue = "npfixeddamagevalue",
IgnoreShiftSafeDamage = "ignoreshiftsafedamage",
}

export enum NiceClassRelationOverwriteType {
Expand Down Expand Up @@ -994,6 +1003,9 @@ export enum NiceCondType {
PLAY_QUEST_PHASE = "playQuestPhase",
NOT_PLAY_QUEST_PHASE = "notPlayQuestPhase",
EVENT_START_TO_END = "eventStartToEnd",
COMMON_VALUE_ABOVE = "commonValueAbove",
COMMON_VALUE_BELOW = "commonValueBelow",
COMMON_VALUE_EQUAL = "commonValueEqual",
}

export enum NiceVoiceCondType {
Expand Down Expand Up @@ -1248,6 +1260,7 @@ export enum NiceWarFlag {
IS_WAR_ICON_FREE = "isWarIconFree",
IS_WAR_ICON_CENTER = "isWarIconCenter",
NOTICE_BOARD = "noticeBoard",
CHANGE_DISP_CLOSED_MESSAGE = "changeDispClosedMessage",
}

export enum NiceWarStartType {
Expand Down

0 comments on commit aa4a341

Please sign in to comment.