mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
Allows Species to set custom say spans.
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#define SPAN_YELL "yell"
|
||||
#define SPAN_ITALICS "italics"
|
||||
#define SPAN_SANS "sans"
|
||||
#define SPAN_PAPYRUS "papyrus"
|
||||
#define SPAN_REALLYBIG "reallybig"
|
||||
|
||||
//bitflag #defines for return value of the radio() proc.
|
||||
|
||||
@@ -133,6 +133,13 @@
|
||||
spans |= M.get_spans()
|
||||
return spans
|
||||
|
||||
/datum/dna/proc/species_get_spans()
|
||||
var/list/spans = list()
|
||||
if(species)
|
||||
spans |= species.get_spans()
|
||||
return spans
|
||||
|
||||
|
||||
/datum/dna/proc/is_same_as(datum/dna/D)
|
||||
if(uni_identity == D.uni_identity && struc_enzymes == D.struc_enzymes && real_name == D.real_name)
|
||||
if(species.type == D.species.type && features == D.features && blood_type == D.blood_type)
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -78,6 +78,7 @@ h1.alert, h2.alert {color: #000000;}
|
||||
.interface {color: #330033;}
|
||||
|
||||
.sans {font-family: "Comic Sans MS", cursive, sans-serif;}
|
||||
.papyrus {font-family: "Papyrus", cursive, sans-serif;}
|
||||
.robot {font-family: "Courier New", cursive, sans-serif;}
|
||||
|
||||
.big {font-size: 3;}
|
||||
|
||||
Reference in New Issue
Block a user