Sets collectibleFlag whether cvar is on or not to prevent duping.

This commit is contained in:
Christopher Leggett 2022-05-20 21:48:55 -04:00
commit 8f30423a55
No known key found for this signature in database
GPG key ID: 7093AE5FF7037D79

View file

@ -624,12 +624,10 @@ void EnTk_Dig(EnTk* this, GlobalContext* globalCtx) {
EnItem00* reward = Item_DropCollectible(globalCtx, &rewardPos, rewardParams[this->currentReward]);
if (this->currentReward == 4) {
if (CVar_GetS32("gGravediggingTourFix", 0) != 0) {
reward->collectibleFlag = 0x19;
}
}
}
}
if (this->skelAnime.curFrame >= 32.0f && this->rewardTimer == 10) {
/* Play a reward sound shortly after digging */