Interaction/Attack Hand Refactor (#36405)

This commit is contained in:
kevinz000
2018-03-23 11:20:54 +01:00
committed by AnturK
parent 80f6e451fc
commit f300a5c155
347 changed files with 1483 additions and 1186 deletions
@@ -28,12 +28,10 @@
..()
toggleFirepit()
/obj/structure/firepit/attack_hand(mob/living/user)
/obj/structure/firepit/interact(mob/living/user)
if(active)
active = 0
active = FALSE
toggleFirepit()
else
..()
/obj/structure/firepit/attackby(obj/item/W,mob/living/user,params)
if(!active)
@@ -48,6 +46,7 @@
W.fire_act()
/obj/structure/firepit/proc/toggleFirepit()
active = !active
if(active)
set_light(8)
icon_state = "firepit-active"
@@ -70,9 +70,7 @@
var/chargesa = 1
var/insistinga = 0
/obj/machinery/wish_granter_dark/attack_hand(mob/living/carbon/human/user)
usr.set_machine(src)
/obj/machinery/wish_granter_dark/interact(mob/living/carbon/human/user)
if(chargesa <= 0)
to_chat(user, "The Wish Granter lies silent.")
return