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

Expose extra optional arg in UpdatePlayerStat function #742

Merged
merged 16 commits into from
Oct 12, 2023

Conversation

Zanieon
Copy link
Contributor

@Zanieon Zanieon commented Oct 11, 2023

Exposes the previously hidden string argument in the UpdatePlayerStat function, that is needed to track some things more easily when hooking stats from places that needs to be manually made since it's not doable via callbacks.

Currently some of the FD stats requires a Titan Ref to be specified in order to register, and that third string argument is where it goes.

Weapon assists also have challenges which does not track because they also need that extra arg for the Weapon Ref, since that needs to be hooked from another script.

@Zanieon Zanieon added the needs code review Changes from PR still need to be reviewed in code label Oct 11, 2023
@GeckoEidechse GeckoEidechse changed the title Expose extra arg in UpdatePlayerStat function Expose extra optional arg in UpdatePlayerStat function Oct 12, 2023
Copy link
Member

@GeckoEidechse GeckoEidechse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trivial change as it just adds an optional function arg. Shouldn't need any testing.

Gonna let @ASpoonPlaysGames sign this off nevertheless as it touches progression related logic ^^

@GeckoEidechse GeckoEidechse added the almost ready to merge Apart from any small remaining other issues addressed by other labels, this would be ready to merge label Oct 12, 2023
Copy link
Contributor

@ASpoonPlaysGames ASpoonPlaysGames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some nitpicks, but yeah looks good in general

Northstar.CustomServers/mod/scripts/vscripts/mp/_stats.nut Outdated Show resolved Hide resolved
Zanieon and others added 2 commits October 12, 2023 14:27
Co-authored-by: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com>
Copy link
Contributor

@ASpoonPlaysGames ASpoonPlaysGames left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questions from reviews have been answered.

@ASpoonPlaysGames ASpoonPlaysGames added READY TO MERGE This mergeable right now and removed needs code review Changes from PR still need to be reviewed in code almost ready to merge Apart from any small remaining other issues addressed by other labels, this would be ready to merge labels Oct 12, 2023
@GeckoEidechse
Copy link
Member

Merging based on reviews.

@GeckoEidechse GeckoEidechse merged commit 2bb9216 into R2Northstar:main Oct 12, 2023
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
READY TO MERGE This mergeable right now
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants