fix: AnnouncingScpTerminationEventArgs not denying the event when IsA…#806
fix: AnnouncingScpTerminationEventArgs not denying the event when IsA…#806Mrhootyhoot1 wants to merge 4 commits intoExMod-Team:masterfrom
Conversation
…llowed is set to false. Describe the changes Return from CassieScpTerminationAnnouncement:ONStartedPlaying if IsAllowed is set to false. What is the current behavior? It does not stop the SCP termination announcement. What is the new behavior? It stops the SCP termination announcement. Does this PR introduce a breaking change? No
VALERA771
left a comment
There was a problem hiding this comment.
IsAllowed logic should be changed. We don't need to remove the whole announcement if one of the events (ie one of the SCPs which's death shouldn't be announced) got cancelled
Could you clarify what you mean by this? This event only handles the announcement of SCPs, not other announcements. |
|
Okay so, lemme elaborate a bit. In event and game code we have a loop that adds all SCPs whose death should be announced. It's a loop and we call an event for each iteration. If we use return label, it'll not work as Example for better understanding: TL;DR you need to replace |
Someone-193
left a comment
There was a problem hiding this comment.
I think @VALERA771 was thinking of something like this:
Description
Describe the changes
Return from CassieScpTerminationAnnouncement:OnStartedPlaying if IsAllowed is set to false.
What is the current behavior? (You can also link to an open issue here)
It does not stop the SCP termination announcement.
What is the new behavior? (if this is a feature change)
It stops the SCP termination announcement.
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No
Other information:
None
Types of changes
Submission checklist
Patches (if there are any changes related to Harmony patches)
Other