mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Merge pull request #628 from tigercat2000/FixStatueClick
Add clickdelay to attacking statues & lights
This commit is contained in:
@@ -123,6 +123,7 @@
|
||||
shatter(M)
|
||||
|
||||
/obj/structure/closet/statue/attackby(obj/item/I as obj, mob/user as mob, params)
|
||||
user.changeNext_move(CLICK_CD_MELEE)
|
||||
health -= I.force
|
||||
visible_message("\red [user] strikes [src] with [I].")
|
||||
if(health <= 0)
|
||||
|
||||
@@ -345,7 +345,7 @@
|
||||
// attack with item - insert light (if right type), otherwise try to break the light
|
||||
|
||||
/obj/machinery/light/attackby(obj/item/W, mob/living/user, params)
|
||||
|
||||
user.changeNext_move(CLICK_CD_MELEE) //does not call parent requires manual definition
|
||||
//Light replacer code
|
||||
if(istype(W, /obj/item/device/lightreplacer))
|
||||
var/obj/item/device/lightreplacer/LR = W
|
||||
|
||||
Reference in New Issue
Block a user