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