#pragma once #include namespace mods::potionstack { // Potions of one type in the stack held by item `id` (1 for any other item). unsigned StackCount(uint32_t id); // Sets the stack size of item `id` (1 or less: no stack). Used when loading. void SetStackCount(uint32_t id, unsigned count); // cInventoryEntry::ReplaceItemId: the stack follows its item to the new id. void OnItemIdReplaced(uint32_t oldId, uint32_t newId); // Forgets all stacks (a save game is about to be loaded). void ResetStacks(); } // namespace mods::potionstack