Adds article override to make examine text more consistent (#21694)

This commit is contained in:
Luc
2023-07-17 02:51:45 -07:00
committed by GitHub
parent e70b3abb93
commit 2e41c52f9b
4 changed files with 21 additions and 3 deletions

View File

@@ -56,10 +56,15 @@
msg += "!" //omit the species when examining
else if(displayed_species == "Slime People") //snowflakey because Slime People are defined as a plural
msg += ", a<b><font color='[examine_color]'> slime person</font></b>!"
else if(displayed_species == "Unathi") //DAMN YOU, VOWELS
msg += ", a<b><font color='[examine_color]'> unathi</font></b>!"
else
msg += ", a<b><font color='[examine_color]'> [lowertext(displayed_species)]</font></b>!"
// do all this extra stuff because byond's text macros get confused by whatever comes between the species name and the article,
// so we can't just do \a
var/article_override = dna?.species.article_override
var/article = article_override
if(!article_override)
article = starts_with_vowel(displayed_species) ? "an" : "a"
msg += ", [article]<b><font color='[examine_color]'> [lowertext(displayed_species)]</font></b>!"
return msg

View File

@@ -1,6 +1,9 @@
/datum/species
var/name // Species name.
var/name_plural // Pluralized name (since "[name]s" is not always valid)
/// Article to use when referring to an individual of the species, if pronunciation is different from expected.
/// Because it's unathi's turn to be special snowflakes.
var/article_override
var/icobase = 'icons/mob/human_races/r_human.dmi' // Normal icon set.
/// Minimum age this species can have

View File

@@ -1,6 +1,7 @@
/datum/species/unathi
name = "Unathi"
name_plural = "Unathi"
article_override = "a" // it's pronounced "you-nah-thee"
icobase = 'icons/mob/human_races/r_lizard.dmi'
language = "Sinta'unathi"
tail = "sogtail"
@@ -106,6 +107,7 @@
/datum/species/unathi/ashwalker
name = "Ash Walker"
name_plural = "Ash Walkers"
article_override = null
blurb = "These reptillian creatures appear to be related to the Unathi, but seem significantly less evolved. \
They roam the wastes of Lavaland, worshipping a dead city and capturing unsuspecting miners."