Allows Species to set custom say spans.

This commit is contained in:
Remie Richards
2015-10-18 17:17:27 +01:00
parent 65fdbd9bfd
commit ec3be464f3
6 changed files with 26 additions and 1 deletions
+1 -1
View File
@@ -28,7 +28,7 @@
return message
/mob/living/carbon/human/get_spans()
return ..() | dna.mutations_get_spans()
return ..() | dna.mutations_get_spans() | dna.species_get_spans()
/mob/living/carbon/human/GetVoice()
if(istype(wear_mask, /obj/item/clothing/mask/gas/voice))
@@ -588,6 +588,10 @@
/datum/species/proc/handle_speech(message, mob/living/carbon/human/H)
return message
//return a list of spans or an empty list
/datum/species/proc/get_spans()
return list()
////////
//LIFE//
////////
@@ -325,6 +325,18 @@ datum/species/human/spec_death(gibbed, mob/living/carbon/human/H)
sexes = 0
meat = /obj/item/weapon/reagent_containers/food/snacks/meat/slab/human/mutant/skeleton
specflags = list(NOBREATH,HEATRES,COLDRES,NOBLOOD,RADIMMUNE,VIRUSIMMUNE,PIERCEIMMUNE)
var/list/myspan = null
/datum/species/skeleton/New()
..()
myspan = list(pick(SPAN_SANS,SPAN_PAPYRUS)) //pick a span and stick with it for the round
/datum/species/skeleton/get_spans()
return myspan
/*
ZOMBIES
*/