Skip to content

Commit

Permalink
Added enums from 2.105.0
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Jan 15, 2025
1 parent 0173bdb commit 11374ad
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
18 changes: 15 additions & 3 deletions app/schemas/gameenums.py
Original file line number Diff line number Diff line change
Expand Up @@ -1934,6 +1934,7 @@ class DataValsType(IntEnum):
ContinueDisplayMessage = 204
StartIntervalTurn = 205
StartIntervalCount = 206
CommonReleaseId = 207


class ClassRelationOverwriteType(IntEnum):
Expand Down Expand Up @@ -2355,7 +2356,6 @@ class CardType(IntEnum):
BLANK = 5
WEAK = 10
STRENGTH = 11
ADDATTACK2 = 104


class NiceCardType(StrEnum):
Expand All @@ -2369,7 +2369,6 @@ class NiceCardType(StrEnum):
blank = "blank"
weak = "weak"
strength = "strength"
addattack2 = "addattack2"


CARD_TYPE_NAME: dict[int, NiceCardType] = {
Expand All @@ -2381,7 +2380,6 @@ class NiceCardType(StrEnum):
5: NiceCardType.blank,
10: NiceCardType.weak,
11: NiceCardType.strength,
104: NiceCardType.addattack2,
}


Expand Down Expand Up @@ -2620,6 +2618,7 @@ class CondType(IntEnum):
NOT_BATTLE_FUNCTION_TARGET_ONE_INDIVIDUALITY = 236
EVENT_SCRIPT_NOT_PLAY = 237
EVENT_SCRIPT_FLAG = 238
IMAGE_PARTS_GROUP = 241


class NiceCondType(StrEnum):
Expand Down Expand Up @@ -2859,6 +2858,7 @@ class NiceCondType(StrEnum):
notBattleFunctionTargetOneIndividuality = "notBattleFunctionTargetOneIndividuality"
eventScriptNotPlay = "eventScriptNotPlay"
eventScriptFlag = "eventScriptFlag"
imagePartsGroup = "imagePartsGroup"


COND_TYPE_NAME: dict[int, NiceCondType] = {
Expand Down Expand Up @@ -3096,6 +3096,7 @@ class NiceCondType(StrEnum):
236: NiceCondType.notBattleFunctionTargetOneIndividuality,
237: NiceCondType.eventScriptNotPlay,
238: NiceCondType.eventScriptFlag,
241: NiceCondType.imagePartsGroup,
}


Expand Down Expand Up @@ -4181,6 +4182,7 @@ class AiCond(IntEnum):
COUNT_AVAILABLE_MASTER_SKILL_HIGHER = 217
COUNT_AVAILABLE_MASTER_SKILL_LOWER = 218
COUNT_AVAILABLE_MASTER_SKILL_EQUAL = 219
COMMON_RELEASE_ID = 220


class NiceAiCond(StrEnum):
Expand Down Expand Up @@ -4384,6 +4386,7 @@ class NiceAiCond(StrEnum):
countAvailableMasterSkillHigher = "countAvailableMasterSkillHigher"
countAvailableMasterSkillLower = "countAvailableMasterSkillLower"
countAvailableMasterSkillEqual = "countAvailableMasterSkillEqual"
commonReleaseId = "commonReleaseId"


AI_COND_NAME: dict[int, NiceAiCond] = {
Expand Down Expand Up @@ -4567,6 +4570,7 @@ class NiceAiCond(StrEnum):
217: NiceAiCond.countAvailableMasterSkillHigher,
218: NiceAiCond.countAvailableMasterSkillLower,
219: NiceAiCond.countAvailableMasterSkillEqual,
220: NiceAiCond.commonReleaseId,
}


Expand Down Expand Up @@ -4595,6 +4599,7 @@ class AiActType(IntEnum):
BATTLE_END = 90
LOSE_END = 91
BATTLE_END_NOT_RELATED_SURVIVAL_STATUS = 92
BATTLE_END_NOT_RELATED_SURVIVAL_STATUS_INSTANTLY = 93
CHANGE_THINKING = 99


Expand Down Expand Up @@ -4625,6 +4630,9 @@ class NiceAiActType(StrEnum):
battleEnd = "battleEnd"
loseEnd = "loseEnd"
battleEndNotRelatedSurvivalStatus = "battleEndNotRelatedSurvivalStatus"
battleEndNotRelatedSurvivalStatusInstantly = (
"battleEndNotRelatedSurvivalStatusInstantly"
)
changeThinking = "changeThinking"


Expand Down Expand Up @@ -4653,6 +4661,7 @@ class NiceAiActType(StrEnum):
90: NiceAiActType.battleEnd,
91: NiceAiActType.loseEnd,
92: NiceAiActType.battleEndNotRelatedSurvivalStatus,
93: NiceAiActType.battleEndNotRelatedSurvivalStatusInstantly,
99: NiceAiActType.changeThinking,
}

Expand Down Expand Up @@ -5093,6 +5102,7 @@ class AiCondParameter(IntEnum):
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL = 46
COUNT_AVAILABLE_PLAYER_SKILL = 47
COUNT_AVAILABLE_MASTER_SKILL = 48
COMMON_RELEASE_ID = 49


class NiceAiCondParameter(StrEnum):
Expand Down Expand Up @@ -5147,6 +5157,7 @@ class NiceAiCondParameter(StrEnum):
countAvailablePlayerAndMasterSkill = "countAvailablePlayerAndMasterSkill"
countAvailablePlayerSkill = "countAvailablePlayerSkill"
countAvailableMasterSkill = "countAvailableMasterSkill"
commonReleaseId = "commonReleaseId"


AI_COND_PARAMETER_NAME: dict[int, NiceAiCondParameter] = {
Expand Down Expand Up @@ -5199,6 +5210,7 @@ class NiceAiCondParameter(StrEnum):
46: NiceAiCondParameter.countAvailablePlayerAndMasterSkill,
47: NiceAiCondParameter.countAvailablePlayerSkill,
48: NiceAiCondParameter.countAvailableMasterSkill,
49: NiceAiCondParameter.commonReleaseId,
}


Expand Down
1 change: 1 addition & 0 deletions app/schemas/nice.py
Original file line number Diff line number Diff line change
Expand Up @@ -617,6 +617,7 @@ class BaseVals(BaseModel):
ContinueDisplayMessage: int | None = None
StartIntervalTurn: int | None = None
StartIntervalCount: int | None = None
CommonReleaseId: int | None = None
# Extra dataval from SkillLvEntty.DIC_KEY_APPLY_SUPPORT_SVT
ApplySupportSvt: Optional[int] = None
# These are not DataVals but guesses from SkillLvEntity and EventDropUpValInfo
Expand Down
5 changes: 5 additions & 0 deletions scripts/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -772,6 +772,7 @@ export enum NiceDataValsType {
ContinueDisplayMessage = "continuedisplaymessage",
StartIntervalTurn = "startintervalturn",
StartIntervalCount = "startintervalcount",
CommonReleaseId = "commonreleaseid",
}

export enum NiceClassRelationOverwriteType {
Expand Down Expand Up @@ -1151,6 +1152,7 @@ export enum NiceCondType {
NOT_BATTLE_FUNCTION_TARGET_ONE_INDIVIDUALITY = "notBattleFunctionTargetOneIndividuality",
EVENT_SCRIPT_NOT_PLAY = "eventScriptNotPlay",
EVENT_SCRIPT_FLAG = "eventScriptFlag",
IMAGE_PARTS_GROUP = "imagePartsGroup",
}

export enum NiceVoiceCondType {
Expand Down Expand Up @@ -1626,6 +1628,7 @@ export enum NiceAiCond {
COUNT_AVAILABLE_MASTER_SKILL_HIGHER = "countAvailableMasterSkillHigher",
COUNT_AVAILABLE_MASTER_SKILL_LOWER = "countAvailableMasterSkillLower",
COUNT_AVAILABLE_MASTER_SKILL_EQUAL = "countAvailableMasterSkillEqual",
COMMON_RELEASE_ID = "commonReleaseId",
}

export enum NiceAiActType {
Expand Down Expand Up @@ -1653,6 +1656,7 @@ export enum NiceAiActType {
BATTLE_END = "battleEnd",
LOSE_END = "loseEnd",
BATTLE_END_NOT_RELATED_SURVIVAL_STATUS = "battleEndNotRelatedSurvivalStatus",
BATTLE_END_NOT_RELATED_SURVIVAL_STATUS_INSTANTLY = "battleEndNotRelatedSurvivalStatusInstantly",
CHANGE_THINKING = "changeThinking",
}

Expand Down Expand Up @@ -1824,6 +1828,7 @@ export enum NiceAiCondParameter {
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL = "countAvailablePlayerAndMasterSkill",
COUNT_AVAILABLE_PLAYER_SKILL = "countAvailablePlayerSkill",
COUNT_AVAILABLE_MASTER_SKILL = "countAvailableMasterSkill",
COMMON_RELEASE_ID = "commonReleaseId",
}

export enum NiceAiCondRefine {
Expand Down

0 comments on commit 11374ad

Please sign in to comment.