change the way to get right FP gacha subId #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
how it works
Objects with commonReleaseId within the same level of high priority are checked first.
If all conditions of the high priority are present but not met, then the next priority level is checked.
The only condition that is currently being checked is 'clearQuest' and 'clearNum'
example
Right now, we've got three subIds activated: 402, 403, and 1000.
The function first checks the highest priority, which is 403. But there's a commonReleaseId and it's condition is 'Clear LB6'.
If your account doesn't clear LB6, it'll move on to check the lower priorities, which are 402 and 1000.
Now, if there are multiple subIds with the same priority, it'll prioritize the one with the commonReleaseId first, like 1000 in this case. But since its condition is 'Clear LB6', it'll then check the one without a commonReleaseId , which is 402.
notes
剛好最近重構到友抽的部分, 看到這邊你抽了 funtion 感覺可以發個 RP
結果抽 function 後改起來的體驗也沒好到哪裡去
看源碼時如果感到窒息就可以吸一口氧的話
我估計能把方圓 20 里內醫院裡的氧氣鋼瓶全吸光
已經盡量保證正確性的情況下對源碼做最小改動, 畢竟在我的 IDE 開啟專案後
只要一按保存就會瞬間對一堆東西做自動修正...
只開三個檔案就出了 118 個 error+warning....