mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-29 16:18:01 +01:00
Merge pull request #48505 from ninjanomnom/waddle-element
Makes waddling an element
This commit is contained in:
@@ -114,19 +114,18 @@
|
||||
/obj/item/organ/ears/penguin
|
||||
name = "penguin ears"
|
||||
desc = "The source of a penguin's happy feet."
|
||||
var/datum/component/waddle
|
||||
|
||||
/obj/item/organ/ears/penguin/Insert(mob/living/carbon/human/H, special = 0, drop_if_replaced = TRUE)
|
||||
. = ..()
|
||||
if(istype(H))
|
||||
to_chat(H, "<span class='notice'>You suddenly feel like you've lost your balance.</span>")
|
||||
waddle = H.AddComponent(/datum/component/waddling)
|
||||
H.AddElement(/datum/element/waddling)
|
||||
|
||||
/obj/item/organ/ears/penguin/Remove(mob/living/carbon/human/H, special = 0)
|
||||
. = ..()
|
||||
if(istype(H))
|
||||
to_chat(H, "<span class='notice'>Your sense of balance comes back to you.</span>")
|
||||
QDEL_NULL(waddle)
|
||||
H.RemoveElement(/datum/element/waddling)
|
||||
|
||||
/obj/item/organ/ears/bronze
|
||||
name = "tin ears"
|
||||
|
||||
Reference in New Issue
Block a user