Hello, I want to set up a state that increases the specific element (in this example element id 1) damage by 25%.
I’m pretty bad at coding, so I asked ChatGPT to help me out and this is the code it came up with, but it doesn’t work 😀
<Custom React Effect>
if (this.item().damage.elementId === 1) {
value *= 1.25;
}
</Custom React Effect>
Any help is appreciated, thank you 🙂
I’m pretty bad at coding, so I asked ChatGPT to help me out and this is the code it came up with, but it doesn’t work 😀
<Custom React Effect>
if (this.item().damage.elementId === 1) {
value *= 1.25;
}
</Custom React Effect>
Any help is appreciated, thank you 🙂