Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarPlayer.hpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-08-19 12:15:22 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-08-19 12:15:22 +1000
commitd53379f6c20e1bdba5cbc3fd9b0445a099891276 (patch)
tree2bfda2d4495a833cb0ce6eec74843a7e2bf57030 /source/game/StarPlayer.hpp
parent156c243360d8a747c5951fe6a49abec9dafb11e0 (diff)
blah
Diffstat (limited to 'source/game/StarPlayer.hpp')
-rw-r--r--source/game/StarPlayer.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/game/StarPlayer.hpp b/source/game/StarPlayer.hpp
index 1773d23..21fe2d6 100644
--- a/source/game/StarPlayer.hpp
+++ b/source/game/StarPlayer.hpp
@@ -198,7 +198,7 @@ public:
PlayerInventoryPtr inventory() const;
// Returns the number of items from this stack that could be
// picked up from the world, using inventory tab filtering
- size_t itemsCanHold(ItemPtr const& items) const;
+ uint64_t itemsCanHold(ItemPtr const& items) const;
// Adds items to the inventory, returning the overflow.
// The items parameter is invalid after use.
ItemPtr pickupItems(ItemPtr const& items);
@@ -209,7 +209,7 @@ public:
void triggerPickupEvents(ItemPtr const& item);
bool hasItem(ItemDescriptor const& descriptor, bool exactMatch = false) const;
- size_t hasCountOfItem(ItemDescriptor const& descriptor, bool exactMatch = false) const;
+ uint64_t hasCountOfItem(ItemDescriptor const& descriptor, bool exactMatch = false) const;
// altough multiple entries may match, they might have different
// serializations
ItemDescriptor takeItem(ItemDescriptor const& descriptor, bool consumePartial = false, bool exactMatch = false);