mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
Fixes eye_color runtimes for Drask, Kidan, and Nian (#25856)
* null check for eyes * return ternary
This commit is contained in:
@@ -68,4 +68,4 @@
|
||||
|
||||
/datum/species/drask/get_species_runechat_color(mob/living/carbon/human/H)
|
||||
var/obj/item/organ/internal/eyes/E = H.get_int_organ(/obj/item/organ/internal/eyes)
|
||||
return E.eye_color
|
||||
return E ? E.eye_color : flesh_color
|
||||
|
||||
@@ -89,6 +89,4 @@
|
||||
|
||||
/datum/species/grey/get_species_runechat_color(mob/living/carbon/human/H)
|
||||
var/obj/item/organ/internal/eyes/E = H.get_int_organ(/obj/item/organ/internal/eyes)
|
||||
if(E)
|
||||
return E.eye_color
|
||||
return flesh_color
|
||||
return E ? E.eye_color : flesh_color
|
||||
|
||||
@@ -59,4 +59,4 @@
|
||||
|
||||
/datum/species/kidan/get_species_runechat_color(mob/living/carbon/human/H)
|
||||
var/obj/item/organ/internal/eyes/E = H.get_int_organ(/obj/item/organ/internal/eyes)
|
||||
return E.eye_color
|
||||
return E ? E.eye_color : flesh_color
|
||||
|
||||
@@ -105,7 +105,7 @@
|
||||
|
||||
/datum/species/moth/get_species_runechat_color(mob/living/carbon/human/H)
|
||||
var/obj/item/organ/internal/eyes/E = H.get_int_organ(/obj/item/organ/internal/eyes)
|
||||
return E.eye_color
|
||||
return E ? E.eye_color : flesh_color
|
||||
|
||||
/datum/species/moth/spec_attacked_by(obj/item/I, mob/living/user, obj/item/organ/external/affecting, intent, mob/living/carbon/human/H)
|
||||
if(istype(I, /obj/item/melee/flyswatter) && I.force)
|
||||
|
||||
Reference in New Issue
Block a user