mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-25 04:57:47 +01:00
One less object verb
This commit is contained in:
@@ -11,24 +11,20 @@
|
||||
siemens_coefficient = 0.9
|
||||
body_parts_covered = 0
|
||||
|
||||
dropped()
|
||||
src.icon_state = initial(icon_state)
|
||||
src.flipped=0
|
||||
..()
|
||||
/obj/item/clothing/head/soft/dropped()
|
||||
src.icon_state = initial(icon_state)
|
||||
src.flipped=0
|
||||
..()
|
||||
|
||||
verb/flip()
|
||||
set category = "Object"
|
||||
set name = "Flip cap"
|
||||
set src in usr
|
||||
if(usr.canmove && !usr.stat && !usr.restrained())
|
||||
src.flipped = !src.flipped
|
||||
if(src.flipped)
|
||||
icon_state = "[icon_state]_flipped"
|
||||
usr << "You flip the hat backwards."
|
||||
else
|
||||
src.icon_state = initial(icon_state)
|
||||
usr << "You flip the hat back in normal position."
|
||||
update_clothing_icon() //so our mob-overlays update
|
||||
/obj/item/clothing/head/soft/attack_self(mob/user)
|
||||
src.flipped = !src.flipped
|
||||
if(src.flipped)
|
||||
icon_state = "[icon_state]_flipped"
|
||||
user << "You flip the hat backwards."
|
||||
else
|
||||
src.icon_state = initial(icon_state)
|
||||
user << "You flip the hat back in normal position."
|
||||
update_clothing_icon() //so our mob-overlays update
|
||||
|
||||
/obj/item/clothing/head/soft/red
|
||||
name = "red cap"
|
||||
|
||||
Reference in New Issue
Block a user