MCPcopy Create free account
hub / github.com/diasurgical/devilution / TryDropItem

Function TryDropItem

SourceX/controls/plrctrls.cpp:1032–1044  ·  view source on GitHub ↗

* @brief Try dropping item in all 9 possible places */

Source from the content-addressed store, hash-verified

1030 * @brief Try dropping item in all 9 possible places
1031 */
1032bool TryDropItem()
1033{
1034 cursmx = plr[myplr].WorldX + 1;
1035 cursmy = plr[myplr].WorldY;
1036 if (!DropItemBeforeTrig()) {
1037 // Try to drop on the other side
1038 cursmx = plr[myplr].WorldX;
1039 cursmy = plr[myplr].WorldY + 1;
1040 DropItemBeforeTrig();
1041 }
1042
1043 return pcurs == CURSOR_HAND;
1044}
1045
1046void PerformSpellAction()
1047{

Callers 3

PerformSpellActionFunction · 0.85
PerformSecondaryActionFunction · 0.85
BlurInventoryFunction · 0.85

Calls 1

DropItemBeforeTrigFunction · 0.85

Tested by

no test coverage detected