Skip to content

Commit

Permalink
Added new enums
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Aug 28, 2024
1 parent ce1a7a3 commit 47f28d4
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
44 changes: 44 additions & 0 deletions app/schemas/gameenums.py
Original file line number Diff line number Diff line change
Expand Up @@ -2510,6 +2510,8 @@ class CondType(IntEnum):
HAVE_CHARGE_STONE = 230
BATTLE_FUNCTION_TARGET_ALL_INDIVIDUALITY = 231
BATTLE_FUNCTION_TARGET_ONE_INDIVIDUALITY = 232
BEFORE_QUEST_CLEAR_TIME = 233
AFTER_QUEST_CLEAR_TIME = 234
NOT_BATTLE_FUNCTION_TARGET_ALL_INDIVIDUALITY = 235
NOT_BATTLE_FUNCTION_TARGET_ONE_INDIVIDUALITY = 236

Expand Down Expand Up @@ -2745,6 +2747,8 @@ class NiceCondType(StrEnum):
haveChargeStone = "haveChargeStone"
battleFunctionTargetAllIndividuality = "battleFunctionTargetAllIndividuality"
battleFunctionTargetOneIndividuality = "battleFunctionTargetOneIndividuality"
beforeQuestClearTime = "beforeQuestClearTime"
afterQuestClearTime = "afterQuestClearTime"
notBattleFunctionTargetAllIndividuality = "notBattleFunctionTargetAllIndividuality"
notBattleFunctionTargetOneIndividuality = "notBattleFunctionTargetOneIndividuality"

Expand Down Expand Up @@ -2978,6 +2982,8 @@ class NiceCondType(StrEnum):
230: NiceCondType.haveChargeStone,
231: NiceCondType.battleFunctionTargetAllIndividuality,
232: NiceCondType.battleFunctionTargetOneIndividuality,
233: NiceCondType.beforeQuestClearTime,
234: NiceCondType.afterQuestClearTime,
235: NiceCondType.notBattleFunctionTargetAllIndividuality,
236: NiceCondType.notBattleFunctionTargetOneIndividuality,
}
Expand Down Expand Up @@ -4045,6 +4051,15 @@ class AiCond(IntEnum):
COUNT_MASTER_SKILL_HIGHER_THIS_WAVE = 208
COUNT_MASTER_SKILL_LOWER_THIS_WAVE = 209
COUNT_MASTER_SKILL_EQUAL_THIS_WAVE = 210
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL_HIGHER = 211
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL_LOWER = 212
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL_EQUAL = 213
COUNT_AVAILABLE_PLAYER_SKILL_HIGHER = 214
COUNT_AVAILABLE_PLAYER_SKILL_LOWER = 215
COUNT_AVAILABLE_PLAYER_SKILL_EQUAL = 216
COUNT_AVAILABLE_MASTER_SKILL_HIGHER = 217
COUNT_AVAILABLE_MASTER_SKILL_LOWER = 218
COUNT_AVAILABLE_MASTER_SKILL_EQUAL = 219


class NiceAiCond(StrEnum):
Expand Down Expand Up @@ -4237,6 +4252,17 @@ class NiceAiCond(StrEnum):
countMasterSkillHigherThisWave = "countMasterSkillHigherThisWave"
countMasterSkillLowerThisWave = "countMasterSkillLowerThisWave"
countMasterSkillEqualThisWave = "countMasterSkillEqualThisWave"
countAvailablePlayerAndMasterSkillHigher = (
"countAvailablePlayerAndMasterSkillHigher"
)
countAvailablePlayerAndMasterSkillLower = "countAvailablePlayerAndMasterSkillLower"
countAvailablePlayerAndMasterSkillEqual = "countAvailablePlayerAndMasterSkillEqual"
countAvailablePlayerSkillHigher = "countAvailablePlayerSkillHigher"
countAvailablePlayerSkillLower = "countAvailablePlayerSkillLower"
countAvailablePlayerSkillEqual = "countAvailablePlayerSkillEqual"
countAvailableMasterSkillHigher = "countAvailableMasterSkillHigher"
countAvailableMasterSkillLower = "countAvailableMasterSkillLower"
countAvailableMasterSkillEqual = "countAvailableMasterSkillEqual"


AI_COND_NAME: dict[int, NiceAiCond] = {
Expand Down Expand Up @@ -4411,6 +4437,15 @@ class NiceAiCond(StrEnum):
208: NiceAiCond.countMasterSkillHigherThisWave,
209: NiceAiCond.countMasterSkillLowerThisWave,
210: NiceAiCond.countMasterSkillEqualThisWave,
211: NiceAiCond.countAvailablePlayerAndMasterSkillHigher,
212: NiceAiCond.countAvailablePlayerAndMasterSkillLower,
213: NiceAiCond.countAvailablePlayerAndMasterSkillEqual,
214: NiceAiCond.countAvailablePlayerSkillHigher,
215: NiceAiCond.countAvailablePlayerSkillLower,
216: NiceAiCond.countAvailablePlayerSkillEqual,
217: NiceAiCond.countAvailableMasterSkillHigher,
218: NiceAiCond.countAvailableMasterSkillLower,
219: NiceAiCond.countAvailableMasterSkillEqual,
}


Expand Down Expand Up @@ -4928,6 +4963,9 @@ class AiCondParameter(IntEnum):
CHECK_PLAYER_MASTER_SKILL_INDEX_THIS_TURN = 43
COUNT_PLAYER_MASTER_SKILL_THIS_TURN = 44
COUNT_PLAYER_MASTER_SKILL_THIS_WAVE = 45
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL = 46
COUNT_AVAILABLE_PLAYER_SKILL = 47
COUNT_AVAILABLE_MASTER_SKILL = 48


class NiceAiCondParameter(StrEnum):
Expand Down Expand Up @@ -4979,6 +5017,9 @@ class NiceAiCondParameter(StrEnum):
checkPlayerMasterSkillIndexThisTurn = "checkPlayerMasterSkillIndexThisTurn"
countPlayerMasterSkillThisTurn = "countPlayerMasterSkillThisTurn"
countPlayerMasterSkillThisWave = "countPlayerMasterSkillThisWave"
countAvailablePlayerAndMasterSkill = "countAvailablePlayerAndMasterSkill"
countAvailablePlayerSkill = "countAvailablePlayerSkill"
countAvailableMasterSkill = "countAvailableMasterSkill"


AI_COND_PARAMETER_NAME: dict[int, NiceAiCondParameter] = {
Expand Down Expand Up @@ -5028,6 +5069,9 @@ class NiceAiCondParameter(StrEnum):
43: NiceAiCondParameter.checkPlayerMasterSkillIndexThisTurn,
44: NiceAiCondParameter.countPlayerMasterSkillThisTurn,
45: NiceAiCondParameter.countPlayerMasterSkillThisWave,
46: NiceAiCondParameter.countAvailablePlayerAndMasterSkill,
47: NiceAiCondParameter.countAvailablePlayerSkill,
48: NiceAiCondParameter.countAvailableMasterSkill,
}


Expand Down
14 changes: 14 additions & 0 deletions scripts/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1096,6 +1096,8 @@ export enum NiceCondType {
HAVE_CHARGE_STONE = "haveChargeStone",
BATTLE_FUNCTION_TARGET_ALL_INDIVIDUALITY = "battleFunctionTargetAllIndividuality",
BATTLE_FUNCTION_TARGET_ONE_INDIVIDUALITY = "battleFunctionTargetOneIndividuality",
BEFORE_QUEST_CLEAR_TIME = "beforeQuestClearTime",
AFTER_QUEST_CLEAR_TIME = "afterQuestClearTime",
NOT_BATTLE_FUNCTION_TARGET_ALL_INDIVIDUALITY = "notBattleFunctionTargetAllIndividuality",
NOT_BATTLE_FUNCTION_TARGET_ONE_INDIVIDUALITY = "notBattleFunctionTargetOneIndividuality",
}
Expand Down Expand Up @@ -1560,6 +1562,15 @@ export enum NiceAiCond {
COUNT_MASTER_SKILL_HIGHER_THIS_WAVE = "countMasterSkillHigherThisWave",
COUNT_MASTER_SKILL_LOWER_THIS_WAVE = "countMasterSkillLowerThisWave",
COUNT_MASTER_SKILL_EQUAL_THIS_WAVE = "countMasterSkillEqualThisWave",
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL_HIGHER = "countAvailablePlayerAndMasterSkillHigher",
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL_LOWER = "countAvailablePlayerAndMasterSkillLower",
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL_EQUAL = "countAvailablePlayerAndMasterSkillEqual",
COUNT_AVAILABLE_PLAYER_SKILL_HIGHER = "countAvailablePlayerSkillHigher",
COUNT_AVAILABLE_PLAYER_SKILL_LOWER = "countAvailablePlayerSkillLower",
COUNT_AVAILABLE_PLAYER_SKILL_EQUAL = "countAvailablePlayerSkillEqual",
COUNT_AVAILABLE_MASTER_SKILL_HIGHER = "countAvailableMasterSkillHigher",
COUNT_AVAILABLE_MASTER_SKILL_LOWER = "countAvailableMasterSkillLower",
COUNT_AVAILABLE_MASTER_SKILL_EQUAL = "countAvailableMasterSkillEqual",
}

export enum NiceAiActType {
Expand Down Expand Up @@ -1753,6 +1764,9 @@ export enum NiceAiCondParameter {
CHECK_PLAYER_MASTER_SKILL_INDEX_THIS_TURN = "checkPlayerMasterSkillIndexThisTurn",
COUNT_PLAYER_MASTER_SKILL_THIS_TURN = "countPlayerMasterSkillThisTurn",
COUNT_PLAYER_MASTER_SKILL_THIS_WAVE = "countPlayerMasterSkillThisWave",
COUNT_AVAILABLE_PLAYER_AND_MASTER_SKILL = "countAvailablePlayerAndMasterSkill",
COUNT_AVAILABLE_PLAYER_SKILL = "countAvailablePlayerSkill",
COUNT_AVAILABLE_MASTER_SKILL = "countAvailableMasterSkill",
}

export enum NiceAiCondRefine {
Expand Down

0 comments on commit 47f28d4

Please # to comment.