Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CrowdControl 2.0: Fix several effects by no longer relying on received parameter to be 0 #2870

Merged

Conversation

aMannus
Copy link
Contributor

@aMannus aMannus commented May 10, 2023

I was relying on the parameter I receive from the CC client to be 0 by having a function assign the received parameter if I didn't set the parameter by myself. The 2.0 SDK indeed returns the parameter as 0 when not specifically set by effect quantities etc, but the live app was returning a parameter of 1.

This PR removes this reliance and builds on the parameter to be 0 when intializing it (this was already happening) instead, and assigning the received parameter manually whenever neccesary (essentially any effect that requires a positive quantity).

Build Artifacts

@leggettc18 leggettc18 merged commit 23d8912 into HarbourMasters:develop-spock May 10, 2023
7 checks passed
@aMannus aMannus deleted the cc-bypass-received-params branch May 12, 2023 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants