Files
2016-03-06 20:52:14 +01:00

26 lines
735 B
Plaintext

/obj/item/device/shield
name = "shield"
icon_state = "shield0"
var/active = 0.0
flags = FPRINT | TABLEPASS| CONDUCT
item_state = "electronic"
throwforce = 5.0
throw_speed = 1
throw_range = 5
w_class = 2.0
mats = 10
module_research = list("energy" = 10, "efficiency" = 10, "protection" = 10)
/obj/item/device/shield/attack_self(mob/user as mob)
src.active = !( src.active )
if (src.active)
boutput(user, "<span style=\"color:blue\">The shield is now active.</span>")
src.icon_state = "shield1"
user.update_inhands()
else
boutput(user, "<span style=\"color:blue\">The shield is now inactive.</span>")
src.icon_state = "shield0"
user.update_inhands()
src.add_fingerprint(user)
return