| 573 | |
| 574 | |
| 575 | bool CharacterDynamicStat::RemoveTalent(TalentType talent, bool remove) |
| 576 | { |
| 577 | uint32_t idx = (uint32_t)talent; |
| 578 | if (idx <= 0 || idx > (uint32_t)TALENT_Max) { |
| 579 | return false; |
| 580 | } |
| 581 | |
| 582 | if (remove) { |
| 583 | RemovedTalents[(uint32_t)idx >> 5] |= (1 << (idx & 0x1f)); |
| 584 | } else { |
| 585 | RemovedTalents[(uint32_t)idx >> 5] &= ~(1 << (idx & 0x1f)); |
| 586 | } |
| 587 | |
| 588 | return true; |
| 589 | } |
| 590 | |
| 591 | bool CharacterDynamicStat::IsTalentRemoved(TalentType talent) |
| 592 | { |
no outgoing calls
no test coverage detected