Basically for some reason i can't subtract from the 'enemies_list' by calling take_enemy(), as if when take_enemy() is called the list goes back to empty even if i added an enemy to it before. I don't understand why it is doing that at all.
Code:
wave
var
number_of_enemies
enemies_list[] = list()
proc
add_enemy(mob/m)
enemies_list += m
world << "[m] was added to [enemies_list]"
world << "Enemies_len:[enemies_list.len]"
take_enemy(mob/m)
world << "Enemies_len:[enemies_list.len]"
// enemies_list -= enemies_list[m]
enemies_list -= m
del m
world << "Enemies_len:[enemies_list.len]"
Problem description:
Showing the problem here.
Even thought that was really dumb, I still have the same problem.
I edited the first post, showing another gif.