MCPcopy Create free account
hub / github.com/Norbyte/ositools / RemoveTalent

Method RemoveTalent

OsiInterface/DivInterface.cpp:575–589  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

CharacterDisableTalentFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected