Its meant to equip any weapon, and unequip any weapon that is equipped, but it doesnt seem to do that.
Arms parent_type = /obj/ verb/Get() set src in oview(1) if(usr.weight == usr.maxweight) usr << "You cannot pickup [src], because you are carrying too much, put something down." return else src.Move(usr) Helm var defense,equipped = 0 verb/EquipUnequip() for(var/Arms/Helm/H in usr.contents) if(H.equipped == 0 && src.equipped == 1) H.equipped = 0 usr.defense-=H.defense usr << "You equip [src] and unequip [H]" usr.defense+=src.defense src.equipped = 1 return if(!H) usr << "You equip [src]" usr.defense+=src.defense src.equipped = 1 return if(H == src && src.equipped==1) usr << "You unequip [src]" usr.defense-=src.defense src.equipped = 0 return else usr << "You equip [src]" usr.defense+=src.defense src.equipped = 1 return verb/Drop() if(src.equipped == 1) usr << "You unequip [src] and drop it" src.equipped = 0 usr.defense-=src.defense src.Move(usr.loc)
Well, for starters, you've done equipment backwards. Way too many people do it this way, so you're not alone in the error. This is the wrong way to do it:
Lummox JR