ID:263146
 
Code:
            Drop() // verb, O is an object that is in the Player's contents
if(usr.Equipment[Equipment_Class]==src)
usr.Attack -= Attack
usr.Defense -= Defense
usr.Speed -= Speed
usr.overlays-=icon(icon,icon_state)
suffix=null
usr.Equipment[Equipment_Class]=null
usr.Weight-=Weight
loc = usr.loc
usr << "<i>You drop the <b>[src]."
Equip()
if(usr.Equipment[Equipment_Class])
var/obj/Equipment/E=usr.Equipment[Equipment_Class]
usr.Attack-=E.Attack
usr.Defense-=E.Defense
usr.Speed-=E.Speed
usr.Equipment[Equipment_Class]=null
usr.overlays-=icon(E.icon,E.icon_state)
E.suffix=null
usr.Attack+=Attack
usr.Defense+=Defense
usr.Speed+=Speed
suffix="Equipped"
usr.Equipment[Equipment_Class]=src
usr.overlays+=icon(icon,icon_state)
usr<<"You equip Armor!"
Unequip()
if(!usr.Equipment[Equipment_Class]||usr.Equipment[Equipment_Class]!=src) return
usr.Attack -= Attack
usr.Defense -= Defense
usr.Speed -= Speed
usr.overlays-=icon(icon,icon_state)
suffix=null
usr.Equipment[Equipment_Class]=null
usr << "<i>You unequip the <b>[src]."


Problem description:

i fixed it up thanks
Add "return" to the safety check so the rest of the code block is not executed, eg:
            Drop() // verb, O is an object that is in the Player's contents
if(Equipped){usr<<"you cannot drop";return} //the return here stops the rest of the code block from happening


Understood (answer truthfully now, don't be ashamed)

- GhostAnime


In response to GhostAnime
Please do not delete your post next time (in this case, editing out the problem), some people may find it helpful if they have a similar problem...

- GhostAnime