Refactor and combat changes

This commit is contained in:
wincent
2024-06-02 09:53:56 +02:00
parent 0bf5ee02e4
commit d5b2278dc5
43 changed files with 27298 additions and 386 deletions

View File

@@ -212,6 +212,8 @@ void Inventory::AddManagedItem(Item* item) {
items.insert_or_assign(id, item);
free--;
component->OnItemLoaded(component, item);
}
void Inventory::RemoveManagedItem(Item* item) {
@@ -226,6 +228,8 @@ void Inventory::RemoveManagedItem(Item* item) {
items.erase(id);
free++;
component->OnItemDestroyed(component, item);
}
eInventoryType Inventory::FindInventoryTypeForLot(const LOT lot) {