Hi, I'm using this plugin and trying to give the weapons a 20% chance per loop (should loop 3 times) to have a "Jewel" slot.
This is as far as I have gotten and it only adds 1 slot still
What am I missing here?
Would be grateful for some help!
This is as far as I have gotten and it only adds 1 slot still
What am I missing here?
<On Creation Eval>
for (let i = 0; i < 3; i++) {
if (Math.random() * 5 >= 4) {
item.augmentSlots.push("Jewel")
item.augmentSlotEnable.push(true)
}
}
</On Creation Eval>
Would be grateful for some help!