| 356 | }; |
| 357 | |
| 358 | bool IsPrefixValidForItemType(int i, AffixItemType flgs, bool hellfireItem) |
| 359 | { |
| 360 | AffixItemType itemTypes = ItemPrefixes[i].PLIType; |
| 361 | |
| 362 | if (!hellfireItem) { |
| 363 | if (i > 82) |
| 364 | return false; |
| 365 | |
| 366 | if (i >= 12 && i <= 20) |
| 367 | itemTypes &= ~AffixItemType::Staff; |
| 368 | } |
| 369 | |
| 370 | return HasAnyOf(flgs, itemTypes); |
| 371 | } |
| 372 | |
| 373 | bool IsSuffixValidForItemType(int i, AffixItemType flgs, bool hellfireItem) |
| 374 | { |
no test coverage detected