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

Function PlrHitObj

Source/player.cpp:2631–2647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2629}
2630
2631BOOL PlrHitObj(int pnum, int mx, int my)
2632{
2633 int oi;
2634
2635 if (dObject[mx][my] > 0) {
2636 oi = dObject[mx][my] - 1;
2637 } else {
2638 oi = -dObject[mx][my] - 1;
2639 }
2640
2641 if (object[oi]._oBreak == 1) {
2642 BreakObject(pnum, oi);
2643 return TRUE;
2644 }
2645
2646 return FALSE;
2647}
2648
2649BOOL PM_DoAttack(int pnum)
2650{

Callers 1

PM_DoAttackFunction · 0.85

Calls 1

BreakObjectFunction · 0.85

Tested by

no test coverage detected