mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +01:00
adds inherent factions
This commit is contained in:
@@ -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!
|
||||
|
||||
Reference in New Issue
Block a user