adding types to a list in Developer Help
|
|
add() var/D = input("What deck would you like?","Deck") in list("Super Burger","Computer Connection","Nero's Deck") if(D == "Super Burger") for(var/i in typesof(/obj/cards/food)) var/O = new i usr.deck.Add(O) if(D == "Computer Connection") for(var/i in typesof(/obj/cards/comp)) var/O = new i usr.deck.Add(O) if(D == "Nero's Deck") if(usr.key != "Zero's Baby") usr << "<b>You can not get this deck.</b>" return add() else for(var/i in typesof(/obj/cards/nero)) var/O = new i usr.deck.Add(O)
|
alright, what i have here is my test verb for picking a deck of cards to use. it works fine, but it not only adds everything under the type /obj/cards/nero or /obj/cards/comp and so on, it adds the parent type (/nero,/comp, and so on). can anyone tell me how to prevent this? thanks in advance
|
Subtract it from it if you don't want it in there.
-Ryan