MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / StoreAutoPlace

Function StoreAutoPlace

Source/stores.cpp:337–350  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

335}
336
337bool StoreAutoPlace(Item &item, bool persistItem)
338{
339 Player &player = *MyPlayer;
340
341 if (AutoEquipEnabled(player, item) && AutoEquip(player, item, persistItem)) {
342 return true;
343 }
344
345 if (AutoPlaceItemInBelt(player, item, persistItem)) {
346 return true;
347 }
348
349 return AutoPlaceItemInInventory(player, item, persistItem);
350}
351
352void StartSmith()
353{

Callers 10

SmithBuyItemFunction · 0.85
SmithBuyEnterFunction · 0.85
SmithBuyPItemFunction · 0.85
SmithPremiumBuyEnterFunction · 0.85
WitchBuyItemFunction · 0.85
WitchBuyEnterFunction · 0.85
BoyBuyItemFunction · 0.85
HealerBuyItemFunction · 0.85
BoyBuyEnterFunction · 0.85
HealerBuyEnterFunction · 0.85

Calls 4

AutoEquipEnabledFunction · 0.85
AutoEquipFunction · 0.85
AutoPlaceItemInBeltFunction · 0.85
AutoPlaceItemInInventoryFunction · 0.85

Tested by

no test coverage detected