Skip to content

Commit

Permalink
Updated enums from 2.95.1
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Aug 5, 2024
1 parent 76fdea1 commit 9f68ad6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 10 deletions.
21 changes: 15 additions & 6 deletions app/schemas/gameenums.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,7 @@ class BuffType(IntEnum):
SKILL_TARGETED_BEFORE_FUNCTION = 202
FIELD_INDIVIDUALITY_CHANGED_FUNCTION = 203
TREASURE_DEVICE_BEFORE_FUNCTION = 204
START_TACTICAL_BEFORE_FUNCTION = 205
STEP_IN_AFTER_FUNCTION = 205
SHORTEN_SKILL_AFTER_USE_SKILL = 206
TO_FIELD_CHANGE_FIELD = 10001
TO_FIELD_AVOID_BUFF = 10002
Expand Down Expand Up @@ -987,7 +987,7 @@ class NiceBuffType(StrEnum):
skillTargetedBeforeFunction = "skillTargetedBeforeFunction"
fieldIndividualityChangedFunction = "fieldIndividualityChangedFunction"
treasureDeviceBeforeFunction = "treasureDeviceBeforeFunction"
startTacticalBeforeFunction = "startTacticalBeforeFunction"
stepInAfterFunction = "stepInAfterFunction"
shortenSkillAfterUseSkill = "shortenSkillAfterUseSkill"
toFieldChangeField = "toFieldChangeField"
toFieldAvoidBuff = "toFieldAvoidBuff"
Expand Down Expand Up @@ -1184,7 +1184,7 @@ class NiceBuffType(StrEnum):
202: NiceBuffType.skillTargetedBeforeFunction,
203: NiceBuffType.fieldIndividualityChangedFunction,
204: NiceBuffType.treasureDeviceBeforeFunction,
205: NiceBuffType.startTacticalBeforeFunction,
205: NiceBuffType.stepInAfterFunction,
206: NiceBuffType.shortenSkillAfterUseSkill,
10001: NiceBuffType.toFieldChangeField,
10002: NiceBuffType.toFieldAvoidBuff,
Expand Down Expand Up @@ -1335,7 +1335,7 @@ class BuffAction(IntEnum):
FUNCTION_SKILL_TARGETED_BEFORE = 139
FUNCTION_FIELD_INDIVIDUALITY_CHANGED = 140
FUNCTION_TREASURE_DEVICE_BEFORE = 141
FUNCTION_START_TACTICAL_BEFORE = 142
FUNCTION_STEP_IN_AFTER = 142
SHORTEN_SKILL_AFTER_USE_SKILL = 143


Expand Down Expand Up @@ -1484,7 +1484,7 @@ class NiceBuffAction(StrEnum):
functionSkillTargetedBefore = "functionSkillTargetedBefore"
functionFieldIndividualityChanged = "functionFieldIndividualityChanged"
functionTreasureDeviceBefore = "functionTreasureDeviceBefore"
functionStartTacticalBefore = "functionStartTacticalBefore"
functionStepInAfter = "functionStepInAfter"
shortenSkillAfterUseSkill = "shortenSkillAfterUseSkill"


Expand Down Expand Up @@ -1631,7 +1631,7 @@ class NiceBuffAction(StrEnum):
139: NiceBuffAction.functionSkillTargetedBefore,
140: NiceBuffAction.functionFieldIndividualityChanged,
141: NiceBuffAction.functionTreasureDeviceBefore,
142: NiceBuffAction.functionStartTacticalBefore,
142: NiceBuffAction.functionStepInAfter,
143: NiceBuffAction.shortenSkillAfterUseSkill,
}

Expand Down Expand Up @@ -5974,6 +5974,8 @@ class ItemTransitionType(IntEnum):
PURE_PRI = 14
RARE_PRI = 15
SUMMON = 16
REVIVAL_ITEM = 17
BLANK_EARTH_SCENARIO = 18


class NiceItemTransitionType(StrEnum):
Expand All @@ -5996,6 +5998,8 @@ class NiceItemTransitionType(StrEnum):
purePri = "purePri"
rarePri = "rarePri"
summon = "summon"
revivalItem = "revivalItem"
blankEarthScenario = "blankEarthScenario"


ITEM_TRANSITION_TYPE_NAME: dict[int, NiceItemTransitionType] = {
Expand All @@ -6016,6 +6020,8 @@ class NiceItemTransitionType(StrEnum):
14: NiceItemTransitionType.purePri,
15: NiceItemTransitionType.rarePri,
16: NiceItemTransitionType.summon,
17: NiceItemTransitionType.revivalItem,
18: NiceItemTransitionType.blankEarthScenario,
}


Expand All @@ -6029,6 +6035,7 @@ class ItemTransitionTargetValue(IntEnum):
MANA_PRI_TARGET_ITEM_ID = 6
PURE_PRI_TARGET_ITEM_ID = 7
RARE_PRI_TARGET_ITEM_ID = 8
LEAF_EXCHANGE_TARGET_ITEM_ID = 9


class NiceItemTransitionTargetValue(StrEnum):
Expand All @@ -6043,6 +6050,7 @@ class NiceItemTransitionTargetValue(StrEnum):
manaPriTargetItemId = "manaPriTargetItemId"
purePriTargetItemId = "purePriTargetItemId"
rarePriTargetItemId = "rarePriTargetItemId"
leafExchangeTargetItemId = "leafExchangeTargetItemId"


ITEM_TRANSITION_TARGET_VALUE: dict[int, NiceItemTransitionTargetValue] = {
Expand All @@ -6055,4 +6063,5 @@ class NiceItemTransitionTargetValue(StrEnum):
6: NiceItemTransitionTargetValue.manaPriTargetItemId,
7: NiceItemTransitionTargetValue.purePriTargetItemId,
8: NiceItemTransitionTargetValue.rarePriTargetItemId,
9: NiceItemTransitionTargetValue.leafExchangeTargetItemId,
}
4 changes: 2 additions & 2 deletions export/BuffList.ActionList.json
Original file line number Diff line number Diff line change
Expand Up @@ -1638,7 +1638,7 @@
"isRec": true,
"plusAction": 0
},
"FUNCTION_START_TACTICAL_BEFORE": {
"FUNCTION_STEP_IN_AFTER": {
"limit": 0,
"plusTypes": [
205
Expand All @@ -1660,4 +1660,4 @@
"isRec": true,
"plusAction": 0
}
}
}
7 changes: 5 additions & 2 deletions scripts/enum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -381,7 +381,7 @@ export enum NiceBuffType {
SKILL_TARGETED_BEFORE_FUNCTION = "skillTargetedBeforeFunction",
FIELD_INDIVIDUALITY_CHANGED_FUNCTION = "fieldIndividualityChangedFunction",
TREASURE_DEVICE_BEFORE_FUNCTION = "treasureDeviceBeforeFunction",
START_TACTICAL_BEFORE_FUNCTION = "startTacticalBeforeFunction",
STEP_IN_AFTER_FUNCTION = "stepInAfterFunction",
SHORTEN_SKILL_AFTER_USE_SKILL = "shortenSkillAfterUseSkill",
TO_FIELD_CHANGE_FIELD = "toFieldChangeField",
TO_FIELD_AVOID_BUFF = "toFieldAvoidBuff",
Expand Down Expand Up @@ -531,7 +531,7 @@ export enum NiceBuffAction {
FUNCTION_SKILL_TARGETED_BEFORE = "functionSkillTargetedBefore",
FUNCTION_FIELD_INDIVIDUALITY_CHANGED = "functionFieldIndividualityChanged",
FUNCTION_TREASURE_DEVICE_BEFORE = "functionTreasureDeviceBefore",
FUNCTION_START_TACTICAL_BEFORE = "functionStartTacticalBefore",
FUNCTION_STEP_IN_AFTER = "functionStepInAfter",
SHORTEN_SKILL_AFTER_USE_SKILL = "shortenSkillAfterUseSkill",
}

Expand Down Expand Up @@ -2050,6 +2050,8 @@ export enum NiceItemTransitionType {
PURE_PRI = "purePri",
RARE_PRI = "rarePri",
SUMMON = "summon",
REVIVAL_ITEM = "revivalItem",
BLANK_EARTH_SCENARIO = "blankEarthScenario",
}

export enum NiceItemTransitionTargetValue {
Expand All @@ -2062,4 +2064,5 @@ export enum NiceItemTransitionTargetValue {
MANA_PRI_TARGET_ITEM_ID = "manaPriTargetItemId",
PURE_PRI_TARGET_ITEM_ID = "purePriTargetItemId",
RARE_PRI_TARGET_ITEM_ID = "rarePriTargetItemId",
LEAF_EXCHANGE_TARGET_ITEM_ID = "leafExchangeTargetItemId",
}

0 comments on commit 9f68ad6

Please sign in to comment.