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

Function ClampToHit

Source/inv.cpp:1743–1749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1741}
1742
1743int16_t ClampToHit(const Item &item, int16_t toHit)
1744{
1745 if (toHit < item._iPLToHit || toHit > 51)
1746 return item._iPLToHit;
1747
1748 return toHit;
1749}
1750
1751uint8_t ClampMaxDam(const Item &item, uint8_t maxDam)
1752{

Callers 3

RecreateItemFunction · 0.85
LoadMatchingItemsFunction · 0.85
SyncDropItemFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected