Files
Bubberstation/code/game/objects/items/granters/magic/barnyard.dm
SkyratBot c68fea7cba [MIRROR] Completely removes proc_holders from existence. Refactors all wizard, xeno, spider, and genetics powers to be actions. Also refactors and sorts ton of accompanying code. [MDB IGNORE] (#14666)
* Completely removes `proc_holders` from existence. Refactors all wizard, xeno, spider, and genetics powers to be actions. Also refactors and sorts ton of accompanying code.

* our changes

* yes

* 0

* Update blackmesa.dmm

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
Co-authored-by: Gandalf <9026500+Gandalf2k15@users.noreply.github.com>
2022-07-01 20:33:30 +01:00

35 lines
1.0 KiB
Plaintext

/obj/item/book/granter/action/spell/barnyard
granted_action = /datum/action/cooldown/spell/pointed/barnyardcurse
action_name = "barnyard"
icon_state ="bookhorses"
desc = "This book is more horse than your mind has room for."
remarks = list(
"Moooooooo!",
"Moo!",
"Moooo!",
"NEEIIGGGHHHH!",
"NEEEIIIIGHH!",
"NEIIIGGHH!",
"HAAWWWWW!",
"HAAAWWW!",
"Oink!",
"Squeeeeeeee!",
"Oink Oink!",
"Ree!!",
"Reee!!",
"REEE!!",
"REEEEE!!",
)
/obj/item/book/granter/action/spell/barnyard/recoil(mob/living/user)
if(ishuman(user))
to_chat(user, "<font size='15' color='red'><b>HORSIE HAS RISEN</b></font>")
var/obj/item/clothing/magic_mask = new /obj/item/clothing/mask/animal/horsehead/cursed(user.drop_location())
var/mob/living/carbon/human/human_user = user
if(!user.dropItemToGround(human_user.wear_mask))
qdel(human_user.wear_mask)
user.equip_to_slot_if_possible(magic_mask, ITEM_SLOT_MASK, TRUE, TRUE)
qdel(src)
else
to_chat(user,span_notice("I say thee neigh")) //It still lives here