adds inherent factions

This commit is contained in:
SteelSlayer
2020-05-02 04:26:00 -05:00
parent d9dc236359
commit 11c597a68a
3 changed files with 11 additions and 1 deletions
@@ -84,6 +84,7 @@
var/single_gib_type = /obj/effect/decal/cleanable/blood/gibs
var/remains_type = /obj/effect/decal/remains/human //What sort of remains is left behind when the species dusts
var/base_color //Used when setting species.
var/list/inherent_factions
//Used in icon caching.
var/race_key = 0
@@ -285,11 +286,19 @@
H.hud_used.update_locked_slots()
H.ventcrawler = ventcrawler
if(inherent_factions)
for(var/i in inherent_factions)
H.faction += i //Using +=/-= for this in case you also gain the faction from a different source.
/datum/species/proc/on_species_loss(mob/living/carbon/human/H)
if(H.butcher_results) //clear it out so we don't butcher a actual human.
H.butcher_results = null
H.ventcrawler = initial(H.ventcrawler)
if(inherent_factions)
for(var/i in inherent_factions)
H.faction -= i
/datum/species/proc/updatespeciescolor(mob/living/carbon/human/H) //Handles changing icobase for species that have multiple skin colors.
return
@@ -13,6 +13,7 @@
icobase = 'icons/mob/human_races/r_slime.dmi'
deform = 'icons/mob/human_races/r_slime.dmi'
remains_type = /obj/effect/decal/remains/slime
inherent_factions = list("slime")
// More sensitive to the cold
cold_level_1 = 280
@@ -314,7 +314,7 @@
for(var/mob/living/L in view(7,src))
if(isslime(L) || isslimeperson(L) || L.stat == DEAD) // Ignore other slimes, slime people, and dead mobs
if(L.stat == DEAD) // Ignore dead mobs
continue
if(L in Friends) // No eating friends!