|
metadata
at max level , 25%, do the bots have 25% each time they enter the range? if that's the case, it would be beneficial to place the tower in a way that the bots can enter the range multiple times?
|
|
metadata
Yes, that's exactly right.
Also note that when bots leave the area of effect, their shield(s) are restored.
|
|
metadata
I place Squidler at the start of map, because it gives extra essence for kills. I guess there's a difference between 'entering range' and 'being in range', because I haven't seen enemies gain shield when they exit Squidler's range where they spawned. It only detects edges.
It would be much better if it worked while being in range, but chance makes it a bit tricky to code.
boolean chanceTried = false;
boolean chanceNullify = false;
boolean nullifyShields = false;
while(inRange) {
if (chanceTried == true) {
if (chanceNullify == true) {
nullifyShields = true;
}
} else {
//roll chance, adjust chanceNullify value
chanceTried = true;
}
}
nullifyShields = false;
|