mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-13 01:57:18 -07:00
Merge branch 'develop-khan' into khan-to-dev
This commit is contained in:
commit
2a0a31ae7e
13 changed files with 105 additions and 41 deletions
|
@ -3023,7 +3023,11 @@ s32 Health_ChangeBy(PlayState* play, s16 healthChange) {
|
|||
}
|
||||
|
||||
void Rupees_ChangeBy(s16 rupeeChange) {
|
||||
gSaveContext.rupeeAccumulator += rupeeChange;
|
||||
if (gPlayState == NULL) {
|
||||
gSaveContext.rupees += rupeeChange;
|
||||
} else {
|
||||
gSaveContext.rupeeAccumulator += rupeeChange;
|
||||
}
|
||||
|
||||
if (rupeeChange > 0) {
|
||||
gSaveContext.sohStats.count[COUNT_RUPEES_COLLECTED] += rupeeChange;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue