Skip to content

Commit

Permalink
Allows Species to set custom say spans.
Browse files Browse the repository at this point in the history
  • Loading branch information
RemieRichards committed Oct 18, 2015
1 parent 65fdbd9 commit ec3be46
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/__DEFINES/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
7 changes: 7 additions & 0 deletions code/game/dna.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/human/say.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
4 changes: 4 additions & 0 deletions code/modules/mob/living/carbon/human/species.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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//
////////
Expand Down
12 changes: 12 additions & 0 deletions code/modules/mob/living/carbon/human/species_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/
Expand Down
1 change: 1 addition & 0 deletions interface/stylesheet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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;}
Expand Down

0 comments on commit ec3be46

Please sign in to comment.