Cant put these on objects..
This commit is contained in:
@@ -307,7 +307,7 @@
|
||||
F = S
|
||||
update_icon()
|
||||
update_helmlight(user)
|
||||
add_verb(user, /obj/item/clothing/head/helmet/proc/toggle_helmlight)
|
||||
verbs += /obj/item/clothing/head/helmet/proc/toggle_helmlight
|
||||
var/datum/action/A = new /datum/action/item_action/toggle_helmet_flashlight(src)
|
||||
if(loc == user)
|
||||
A.Grant(user)
|
||||
@@ -323,7 +323,7 @@
|
||||
S.update_brightness(user)
|
||||
update_icon()
|
||||
usr.update_inv_head()
|
||||
remove_verb(src, /obj/item/clothing/head/helmet/proc/toggle_helmlight)
|
||||
verbs -= /obj/item/clothing/head/helmet/proc/toggle_helmlight
|
||||
for(var/datum/action/item_action/toggle_helmet_flashlight/THL in actions)
|
||||
qdel(THL)
|
||||
return
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
/obj/item/gun/ballistic/revolver/Initialize()
|
||||
. = ..()
|
||||
if(!istype(magazine, /obj/item/ammo_box/magazine/internal/cylinder))
|
||||
remove_verb(src, /obj/item/gun/ballistic/revolver/verb/spin)
|
||||
verbs += /obj/item/gun/ballistic/revolver/verb/spin
|
||||
|
||||
/obj/item/gun/ballistic/revolver/chamber_round(spin = 1)
|
||||
if(spin)
|
||||
@@ -60,7 +60,7 @@
|
||||
if(do_spin())
|
||||
usr.visible_message("[usr] spins [src]'s chamber.", "<span class='notice'>You spin [src]'s chamber.</span>")
|
||||
else
|
||||
remove_verb(src, /obj/item/gun/ballistic/revolver/verb/spin)
|
||||
verbs -= /obj/item/gun/ballistic/revolver/verb/spin
|
||||
|
||||
/obj/item/gun/ballistic/revolver/proc/do_spin()
|
||||
var/obj/item/ammo_box/magazine/internal/cylinder/C = magazine
|
||||
|
||||
Reference in New Issue
Block a user