Implements C Interface for SpeciesVariant.GetRandomTalent
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4fe0c70635
commit
75810b9d0c
|
@ -44,3 +44,6 @@ export uint8_t CreatureLib_SpeciesVariant_GetTalent(SpeciesVariant* p, bool secr
|
||||||
export const LearnableAttacks* CreatureLib_SpeciesVariant_GetLearnableAttacks(SpeciesVariant* p) {
|
export const LearnableAttacks* CreatureLib_SpeciesVariant_GetLearnableAttacks(SpeciesVariant* p) {
|
||||||
return p->GetLearnableAttacks().GetRaw();
|
return p->GetLearnableAttacks().GetRaw();
|
||||||
}
|
}
|
||||||
|
export uint8_t CreatureLib_SpeciesVariant_GetRandomTalent(SpeciesVariant* p, ArbUt::Random* rand) {
|
||||||
|
return p->GetRandomTalent(*rand).GetIndex();
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue