mirror of
https://github.com/zeldaret/ph
synced 2026-05-26 07:38:52 -04:00
Decomp ItemManager::GiveAmmo
This commit is contained in:
@@ -267,3 +267,9 @@ u16 ItemManager::GetAmmo(ItemFlag equipId) const {
|
||||
return (*this->mAmmo)[equipId];
|
||||
}
|
||||
#pragma interworking off
|
||||
|
||||
void ItemManager::GiveAmmo(ItemFlag equipId, u16 amount) {
|
||||
(*this->mAmmo)[equipId] += amount;
|
||||
if ((*this->mAmmo)[equipId] <= this->GetMaxAmmo(equipId)) return;
|
||||
(*this->mAmmo)[equipId] = this->GetMaxAmmo(equipId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user