Wooden_Shield
icon = 'C Equipment.dmi'
icon_state="Wooden Shield"
verb
Equip()
if(usr.shield == 0 )
usr.shield == 1
usr.equipshield = 1
usr.overlays+=new/obj/equipment/Shield_Equipped
usr.defense += 2
usr<<"You equip Wooden Shield!"
else
..()
Unequip()
if(usr.shield == 1 )
usr.shield == 0
usr.equipshield = 0
usr.overlays-=new/obj/equipment/Shield_Equipped
usr.defense -= 2
usr<<"You unequip Wooden Shield."
else
..()
Shield_Equipped
icon = 'C Equipment.dmi'
icon_state="Wooden Shieldeq"
layer=MOB_LAYER+3
Problem description:
I can equip a plate shield and than unequip a wooden shield and it thinks i got no shield on but i got a plate shield on...help!
Also, there is no way to make a
new/obj/....
As for your problem, you probably messed somehting up in the plate shield code.