| 92 | } |
| 93 | |
| 94 | CDivinityStats_Equipment_Attributes * GetItemDynamicStat(esv::Item * item, uint32_t index) |
| 95 | { |
| 96 | if (item->StatsDynamic == nullptr) { |
| 97 | OsiError("Item has no dynamic stats!"); |
| 98 | return nullptr; |
| 99 | } |
| 100 | |
| 101 | auto numStats = item->StatsDynamic->DynamicAttributes_End - item->StatsDynamic->DynamicAttributes_Start; |
| 102 | if (numStats <= 1) { |
| 103 | OsiError("Tried to get dynamic stat " << index << ", item only has " << numStats); |
| 104 | return nullptr; |
| 105 | } |
| 106 | |
| 107 | return item->StatsDynamic->DynamicAttributes_Start[index]; |
| 108 | } |
| 109 | |
| 110 | template <OsiPropertyMapType Type> |
| 111 | bool ItemGetPermanentBoost(OsiArgumentDesc & args) |
no outgoing calls
no test coverage detected