Bug fixes - #329
Conversation
WalkthroughThe changes introduce a new enumeration value and refine several control flow aspects throughout the codebase. Parameter names in session condition updates have been adjusted, and conditional checks in player spawning and fish collection have been simplified or enhanced. Additionally, the regeneration logic now safely iterates over its collection using a temporary list, and the UI packet distribution now processes individual box IDs with nested loops. These adjustments enhance code stability and clarity without affecting existing functionality. Changes
Sequence Diagram(s)sequenceDiagram
participant TC as TriggerContext
participant Box as Box Iteration
participant P as Player
TC->>TC: Retrieve boxIdInts
loop For each boxId in boxIdInts
TC->>TC: Get players in box (PlayersInBox(boxId))
loop For each player in current box
TC->>P: Send UI script packet
end
end
sequenceDiagram
participant FM as FishingManager
participant F as Fish
participant Collection as Fish Collection
FM->>F: Evaluate mastery check
alt If IgnoreSpotMastery is true
FM->>Collection: Add fish (bypass mastery check)
else
FM->>F: Check if fish mastery within bounds
alt Mastery is valid
FM->>Collection: Add fish to collection
else
FM->>FM: Skip adding fish
end
end
sequenceDiagram
participant FP as FieldPlayer
participant Regen as RegenStats Dictionary
participant RemoveList as statsToRemove List
FP->>Regen: Iterate over regeneration stats
alt Stat value has reached total
FP->>RemoveList: Mark stat for removal
else
FP->>FP: Continue iteration
end
FP->>Regen: Remove stats using RemoveList after iteration
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (2)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
New Features
Bug Fixes