Decomp ItemManager::SetShipPartCount

This commit is contained in:
Aetias
2024-02-18 11:40:14 +01:00
parent 90c42ba870
commit 2c46503ca1
6 changed files with 15 additions and 28 deletions
+5
View File
@@ -283,3 +283,8 @@ THUMB void ItemManager::EquipShipPart(ShipPart part, ShipType type) {
THUMB s8 ItemManager::GetShipPartCount(ShipPart part, ShipType type) const {
return this->mShipParts[part][type];
}
THUMB void ItemManager::SetShipPartCount(ShipPart part, ShipType type, s8 count) {
if (count > 99) count = 99;
this->mShipParts[part][type] = count;
}