Skip to content

Commit

Permalink
Temp fix for missing qp field in mstQuestPhase
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile committed Dec 11, 2024
1 parent c92f750 commit 29a1571
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/core/nice/quest.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ async def get_nice_quest_phase_no_rayshift(
if raw_quest.mstQuestPhaseIndividuality
else None
),
"qp": raw_quest.mstQuestPhase.qp,
"qp": raw_quest.mstQuestPhase.qp if raw_quest.mstQuestPhase.qp else 0,
"exp": raw_quest.mstQuestPhase.playerExp,
"bond": raw_quest.mstQuestPhase.friendshipExp,
"isNpcOnly": raw_quest.mstQuestPhase.isNpcOnly,
Expand Down
2 changes: 1 addition & 1 deletion app/schemas/raw.py
Original file line number Diff line number Diff line change
Expand Up @@ -1981,7 +1981,7 @@ class MstQuestPhase(BaseModelORJson):
isNpcOnly: bool # true,
battleBgId: int # 13400,
battleBgType: int # 0,
qp: int # 1900,
qp: int | None # 1900,
playerExp: int # 550,
friendshipExp: int # 165
giftId: int = 0
Expand Down

0 comments on commit 29a1571

Please sign in to comment.