actor :: getSkillInfo

deepClone() the skill structure from roll data and fill in the extra bits like name and whatever.
10 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mana
ManaOP2y ago
It will hit it if people typo their skill ID
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mana
ManaOP2y ago
And it should throw an error in that case, I think.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mana
ManaOP2y ago
Rather, do: if (!dataSkill) throw
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mana
ManaOP2y ago
Missed this, but deepClone() is pretty much always preferable.
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Mana
ManaOP2y ago
Nothing, probably? deepClone() is just better. I guess if you want JSON specifically? But there's better ways for that, too.
Want results from more Discord servers?
Add your server