Clown goblins can be created by combining clown shoes and a clown mask. Clown goblins can be renamed by using a pen on the goblin.

This commit is contained in:
Shadowmech88
2016-03-22 21:07:52 -05:00
parent d1c9a11be9
commit c4a7ed939b
3 changed files with 22 additions and 0 deletions

View File

@@ -130,6 +130,13 @@
species_fit = list("Vox")
can_flip = 0
/obj/item/clothing/mask/gas/clown_hat/attackby(obj/item/weapon/W, mob/user)
..()
if(istype(W, /obj/item/clothing/shoes/clown_shoes))
new /mob/living/simple_animal/hostile/retaliate/cluwne/goblin(get_turf(src))
qdel(W)
qdel(src)
/obj/item/clothing/mask/gas/clown_hat/wiz
name = "purple clown wig and mask"
desc = "Some pranksters are truly magical."

View File

@@ -121,6 +121,13 @@
var/step_sound = "clownstep"
var/footstep = 1 //used for squeeks whilst walking
/obj/item/clothing/shoes/clown_shoes/attackby(obj/item/weapon/W, mob/user)
..()
if(istype(W, /obj/item/clothing/mask/gas/clown_hat))
new /mob/living/simple_animal/hostile/retaliate/cluwne/goblin(get_turf(src))
qdel(W)
qdel(src)
/obj/item/clothing/shoes/clown_shoes/step_action()
if(ishuman(loc))
var/mob/living/carbon/human/H = loc

View File

@@ -330,6 +330,14 @@
melee_damage_type = "BRAIN"
/mob/living/simple_animal/hostile/retaliate/cluwne/goblin/attackby(obj/item/weapon/W, mob/user)
if(istype(W,/obj/item/weapon/pen)) //Renaming
var/n_name = copytext(sanitize(input(user, "What would you like to name this clown goblin?", "Clown Goblin Name", null) as text|null), 1, MAX_NAME_LEN*3)
if(n_name && Adjacent(user) && !user.stat)
name = "[n_name]"
return
..()
/mob/living/simple_animal/hostile/retaliate/cluwne/goblin/Die()
..()
new /obj/item/clothing/mask/gas/clown_hat(src.loc)