mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2025-08-09 20:24:16 +00:00
Refactor and combat changes
This commit is contained in:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user