Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upFix player lifetime stats #21607
Conversation
Night-Pryanik
changed the title
Fix player lifetim stats
Fix player lifetime stats
Aug 11, 2017
This comment has been minimized.
This comment has been minimized.
|
Will it change something in the lua |
BevapDin
added some commits
Aug 11, 2017
BevapDin
force-pushed the
BevapDin:ps
branch
to
79a7a2c
Aug 11, 2017
This comment has been minimized.
This comment has been minimized.
|
I added it to be exported to Lua. |
kevingranade
merged commit 79a7a2c
into
CleverRaven:master
Aug 13, 2017
BevapDin
deleted the
BevapDin:ps
branch
Aug 13, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
BevapDin commentedAug 11, 2017
Store as member of
playerinstead of global object.Access directly (will be written by various code all over the place, a setter/modifier function seems unnecessary).
Name it
lifetime_statsto distinguish it more clearly from the other stats like hunger, pain.Remove
stats::resetas it's not needed, instead set initial values of members ofstats.