ID:1885504
 
(See the best response by Kaiochao.)
So after finally getting it to work i realized I have no clue how to remove it from the list so how do I remove or delete it from the list?

Code:
mob/var/list/JutsuPassives = list()

mob
proc
LearnJutsuPassive(Passive)
if(locate(Passive) in usr.JutsuPassives) return
JutsuPassives += new Passive()

RemovePassive(Passive)
if(locate(Passive) in usr.JutsuPassives)
JutsuPassives -= new Passive()

mob/verb/Learnpassives()
LearnJutsuPassive(/obj/Passives/Taijutsu/Eight_Gates_Mastery)

mob
verb
RemovePassivex()
RemovePassive(/obj/Passives/Taijutsu/Eight_Gates_Mastery)


I tried using del() i tried using -= i Tried using usr.JutsuPassives.Remove(Passive) and so far nothing worked so Im quite lost

not sure but try JutsuPassives -= Passive
nope didnt work
Best response
Try JutsuPassives -= locate(Passive) in JutsuPassives. (The if is unnecessary, too.)
yay it worked but any way i can get rid of the empty grid it leaves?