Soulstone Cooldown (#9328)

This commit is contained in:
Geeves
2020-07-14 11:58:01 +02:00
committed by GitHub
parent ccba94afd7
commit 4c3904fc4c
2 changed files with 9 additions and 2 deletions

View File

@@ -3,19 +3,20 @@
/obj/item/device/soulstone
name = "soul stone shard"
desc = "A fragment of the legendary treasure known simply as the 'Soul Stone'. The shard still flickers with a fraction of the full artefacts power."
icon = 'icons/obj/wizard.dmi'
icon_state = "soulstone"
item_state = "electronic"
desc = "A fragment of the legendary treasure known simply as the 'Soul Stone'. The shard still flickers with a fraction of the full artefacts power."
w_class = 2
slot_flags = SLOT_BELT
origin_tech = list(TECH_BLUESPACE = 4, TECH_MATERIAL = 4)
var/imprinted = "empty"
appearance_flags = NO_CLIENT_COLOR
var/imprinted = "empty"
//////////////////////////////Capturing////////////////////////////////////////////////////////
/obj/item/device/soulstone/attack(mob/living/carbon/human/M as mob, mob/user as mob)
user.setClickCooldown(20)
if(!istype(M, /mob/living/carbon/human))//If target is not a human.
return ..()
if(istype(M, /mob/living/carbon/human/apparition))