Skip to content

Commit

Permalink
Removed detail from NiceEventMissionCondition. Use details instead
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Apr 26, 2024
1 parent b8ac2b7 commit a293abc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- `SHORTEN_SKILL` and `EXTEND_SKILL` function uses `Rate`/`Value`/`Value2` dataval instead of `Rate`/`Value`/`Target`
- Removed `commonConsume` from `NiceEventTreasureBox` and `NiceEventDiggingBlock`. Use `consumes` instead.
- Removed `commonRelease` from `NiceEventCooltimeReward`. Use `releaseConditions` instead.
- Removed `detail` from `NiceEventMissionCondition`. Use `details` instead.

## 5.78.0 - 2022-04-23
### Added
Expand Down
4 changes: 0 additions & 4 deletions app/core/nice/event/mission.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,6 @@ def get_nice_mission_cond(
)

if cond.condType == CondType.MISSION_CONDITION_DETAIL and cond.targetIds:
if cond.targetIds[0] in details:
nice_mission_cond.detail = get_nice_mission_cond_detail(
details[cond.targetIds[0]]
)
nice_mission_cond.details = [
get_nice_mission_cond_detail(details[detail_id])
for detail_id in cond.targetIds
Expand Down
1 change: 0 additions & 1 deletion app/schemas/nice.py
Original file line number Diff line number Diff line change
Expand Up @@ -1775,7 +1775,6 @@ class NiceEventMissionCondition(BaseModelORJson):
conditionMessage: str
closedMessage: str
flag: int
detail: Optional[NiceEventMissionConditionDetail] = None
details: list[NiceEventMissionConditionDetail] | None = None


Expand Down

0 comments on commit a293abc

Please sign in to comment.