Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit bbc6e53

Browse files
tartu why
1 parent d7f07a8 commit bbc6e53

File tree

20 files changed

+45
-108
lines changed

20 files changed

+45
-108
lines changed

code/game/machinery/computer/crew.dm

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ GLOBAL_DATUM_INIT(crewmonitor, /datum/crewmonitor, new)
165165

166166
idcard = tracked_mob.wear_id ? tracked_mob.wear_id.GetID() : null
167167

168-
var/species
168+
var/datum/species/species
169169
var/is_irradiated = FALSE
170170
var/is_wounded = FALSE
171171
var/is_husked = FALSE
@@ -197,40 +197,7 @@ GLOBAL_DATUM_INIT(crewmonitor, /datum/crewmonitor, new)
197197
brutedam = round(tracked_mob.getBruteLoss(),1)
198198

199199
//species check
200-
if (ishumanbasic(tracked_mob)) //this should really just pull the species name or something rather than having all these checks
201-
species = "Human"
202-
if (ispreternis(tracked_mob))
203-
species = "Robot"
204-
if (isipc(tracked_mob))
205-
species = "IPC"
206-
if (ispodperson(tracked_mob))
207-
species = "Podperson"
208-
if (islizard(tracked_mob))
209-
species = "Lizard"
210-
if (isplasmaman(tracked_mob))
211-
species = "Plasmaman"
212-
if (ispolysmorph(tracked_mob))
213-
species = "Polysmorph"
214-
if (ismoth(tracked_mob))
215-
species = "Moth"
216-
if (isvox(tracked_mob))
217-
species = "Vox"
218-
if (isflyperson(tracked_mob))
219-
species = "Fly"
220-
if (iscatperson(tracked_mob))
221-
species = "Felinid"
222-
if (isskeleton(tracked_mob))
223-
species = "Skeleton"
224-
if (isjellyperson(tracked_mob))
225-
species = "Slime"
226-
if (isethereal(tracked_mob))
227-
species = "Ethereal"
228-
if (iszombie(tracked_mob) || is_species(tracked_mob, /datum/species/krokodil_addict))
229-
species = "Zombie"
230-
if (issnail(tracked_mob))
231-
species = "Snail"
232-
if (isabductor(tracked_mob))
233-
species = "Alien"
200+
species = tracked_mob.dna?.species
234201

235202
for(var/obj/item/bodypart/part in tracked_mob.bodyparts)
236203
if(part.bodypart_disabled == TRUE) //check if has disabled limbs
@@ -300,7 +267,8 @@ GLOBAL_DATUM_INIT(crewmonitor, /datum/crewmonitor, new)
300267
"is_bonecrack" = is_bonecrack,
301268
"is_disabled" = is_disabled,
302269
"is_irradiated" = is_irradiated,
303-
"species" = species,
270+
"species_icon" = species?.monitor_icon,
271+
"species_color" = species?.monitor_color,
304272
"life_status" = life_status,
305273
"oxydam" = oxydam,
306274
"toxdam" = toxdam,

code/modules/mob/living/carbon/human/_species.dm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ GLOBAL_LIST_EMPTY(features_by_species)
1818
var/plural_form
1919
/// if alien colors are disabled, this is the color that will be used by that race
2020
var/default_color = "#FFF"
21+
/// The icon this species uses on the crew monitor.
22+
var/monitor_icon
23+
/// The color of the icon this species uses on the crew monitor.
24+
var/monitor_color = "#FFFFFF"
2125

2226
///A list that contains pixel offsets for various clothing features, if your species is a different shape
2327
var/list/offset_features = list(OFFSET_UNIFORM = list(0,0), OFFSET_ID = list(0,0), OFFSET_GLOVES = list(0,0), OFFSET_GLASSES = list(0,0), OFFSET_EARS = list(0,0), OFFSET_SHOES = list(0,0), OFFSET_S_STORE = list(0,0), OFFSET_FACEMASK = list(0,0), OFFSET_HEAD = list(0,0), OFFSET_FACE = list(0,0), OFFSET_BELT = list(0,0), OFFSET_BACK = list(0,0), OFFSET_SUIT = list(0,0), OFFSET_NECK = list(0,0))

code/modules/mob/living/carbon/human/species_types/IPC.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
name = "IPC" //inherited from the real species, for health scanners and things
55
id = "ipc"
66
say_mod = "states" //inherited from a user's real species
7+
monitor_icon = "tv"
8+
monitor_color = "#2e46cc"
79
bubble_icon = BUBBLE_ROBOT // beep boop
810
possible_genders = list(PLURAL, NEUTER) // A MERE OBJECT
911
species_traits = list(NOTRANSSTING,NOEYESPRITES,NO_DNA_COPY,NOZOMBIE,MUTCOLORS,NOHUSK,NOBLOOD,NO_UNDERWEAR)

code/modules/mob/living/carbon/human/species_types/abductors.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/datum/species/abductor
22
name = "Abductor"
33
id = SPECIES_ABDUCTOR
4+
monitor_icon = "question-circle"
5+
monitor_color = "#d40db9"
46
say_mod = "gibbers"
57
possible_genders = list(PLURAL)
68
species_traits = list(NOBLOOD,NOEYESPRITES)

code/modules/mob/living/carbon/human/species_types/ethereal.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
/datum/species/ethereal
44
name = "Ethereal"
55
id = SPECIES_ETHEREAL
6+
monitor_icon = "sun"
7+
monitor_color = "#f0ff66"
68
attack_verbs = list("burn", "sear")
79
attack_sound = 'sound/weapons/etherealhit.ogg'
810
miss_sound = 'sound/weapons/etherealmiss.ogg'

code/modules/mob/living/carbon/human/species_types/felinid.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
name = "Felinid Human"
44
id = SPECIES_FELINE
55
limbs_id = SPECIES_HUMAN
6+
monitor_icon = "paw"
7+
monitor_color = "#f52ab4"
68
attack_verbs = list("slash")
79
attack_effect = ATTACK_EFFECT_CLAW
810
attack_sound = 'sound/weapons/slash.ogg'

code/modules/mob/living/carbon/human/species_types/flypeople.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
name = "Flyperson"
33
plural_form = "Flypeople"
44
id = SPECIES_FLYPERSON
5+
monitor_icon = "bug"
6+
monitor_color = "#039162"
57
say_mod = "buzzes"
68
species_traits = list(NOEYESPRITES, HAS_FLESH, HAS_BONE)
79
inherent_biotypes = MOB_ORGANIC|MOB_HUMANOID|MOB_BUG

code/modules/mob/living/carbon/human/species_types/humans.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/datum/species/human
22
name = "Human"
33
id = SPECIES_HUMAN
4+
monitor_icon = "user"
5+
monitor_color = "#2ee81a"
46
default_color = "FFFFFF"
57
species_traits = list(EYECOLOR,HAIR,FACEHAIR,LIPS,HAS_FLESH,HAS_BONE)
68
default_features = list("mcolor" = "#FFFFFF", "wings" = "None")

code/modules/mob/living/carbon/human/species_types/jellypeople.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
name = "Jellyperson"
44
plural_form = "Jellypeople"
55
id = SPECIES_JELLYPERSON
6+
monitor_icon = "cloud"
7+
monitor_color = "#f2505d"
68
default_color = "00FF90"
79
say_mod = "chirps"
810
bubble_icon = BUBBLE_SLIME

code/modules/mob/living/carbon/human/species_types/lizardpeople.dm

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
name = "Vuulek"
66
plural_form = "Vuulen"
77
id = SPECIES_LIZARD
8+
monitor_icon = "dragon"
9+
monitor_color = "#8bf76a"
810
say_mod = "hisses"
911
default_color = "00FF00"
1012
species_traits = list(MUTCOLORS,EYECOLOR,DIGITIGRADE,LIPS,HAS_FLESH,HAS_BONE,HAS_TAIL)

0 commit comments

Comments
 (0)