D4rkwills
D4rkwills
CC#
Created by CarlJohnson on 9/6/2024 in #help
Need help with a bug
You're welcome 🤗🤗
16 replies
CC#
Created by CarlJohnson on 9/6/2024 in #help
Need help with a bug
That's right
16 replies
CC#
Created by CarlJohnson on 9/6/2024 in #help
Need help with a bug
It's a good practice also using const flags to limit values, like:
int LIMIT = 100;
var x = 10;

x += 200;

if (x > LIMIT)
x = LIMIT
int LIMIT = 100;
var x = 10;

x += 200;

if (x > LIMIT)
x = LIMIT
x will never transpass 100
16 replies
CC#
Created by CarlJohnson on 9/6/2024 in #help
Need help with a bug
You have to set attackCalc = attack before calculate it, because it would grow undefinetely.
16 replies
CC#
Created by CarlJohnson on 9/6/2024 in #help
Need help with a bug
See, you are doing attackCalc *= 2, updating it to 100, and then again updating to 200 (in the loop operations)
16 replies
CC#
Created by CarlJohnson on 9/6/2024 in #help
Need help with a bug
You are not setting attackCalc to default value after crit damage
16 replies