mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
pets runtime because she deserves it (#17645)
* pets runtime * Update unsorted.dm * Update unsorted.dm
This commit is contained in:
@@ -196,6 +196,8 @@
|
||||
var/entry_is_abstract = initial(E.abstract_type) == entry_type
|
||||
if(entry_is_abstract)
|
||||
CRASH("Tried to retrieve an abstract config_entry: [entry_type]")
|
||||
if(!islist(entries_by_type))
|
||||
CRASH("entries_by_type is not a list when trying to get: [entry_type]")
|
||||
E = entries_by_type[entry_type]
|
||||
if(!E)
|
||||
CRASH("Missing config entry for [entry_type]!")
|
||||
|
||||
@@ -96,6 +96,9 @@
|
||||
return
|
||||
var/selection2type = easy_access_sect.rites_list[rite_select]
|
||||
performing_rite = new selection2type(parent)
|
||||
if(!performing_rite)
|
||||
to_chat(user, span_warning("Type [rite_select] is not a valid rite! Please make a bug report!"))
|
||||
return
|
||||
if(!performing_rite.perform_rite(user, parent))
|
||||
QDEL_NULL(performing_rite)
|
||||
else
|
||||
|
||||
@@ -2125,7 +2125,7 @@ GLOBAL_LIST_EMPTY(mentor_races)
|
||||
if(H.IsParalyzed() || H.IsStun())
|
||||
return FALSE
|
||||
var/obj/item/organ/tail = H.getorganslot(ORGAN_SLOT_TAIL)
|
||||
return tail.get_availability(H.dna.species)
|
||||
return tail?.get_availability(H.dna.species)
|
||||
|
||||
/datum/species/proc/is_wagging_tail(mob/living/carbon/human/H)
|
||||
return ("waggingtail_human" in mutant_bodyparts) || ("waggingtail_lizard" in mutant_bodyparts)
|
||||
|
||||
@@ -46,6 +46,7 @@
|
||||
if(lastscan.len)
|
||||
data["chems"] = lastscan["reagents"]["reagentlist"]
|
||||
else
|
||||
lastscan["reagents"] = list()
|
||||
data["chems"] = lastscan["reagents"]["reagentlist"] = list()
|
||||
return data
|
||||
|
||||
|
||||
@@ -149,7 +149,7 @@
|
||||
|
||||
/datum/nanite_program/purging_advanced/check_conditions()
|
||||
var/foreign_reagent = FALSE
|
||||
for(var/datum/reagent/toxin/R in host_mob.reagents.reagent_list)
|
||||
for(var/datum/reagent/toxin/R in host_mob.reagents?.reagent_list)
|
||||
foreign_reagent = TRUE
|
||||
break
|
||||
if(!host_mob.getToxLoss() && !foreign_reagent)
|
||||
@@ -158,7 +158,7 @@
|
||||
|
||||
/datum/nanite_program/purging_advanced/active_effect()
|
||||
host_mob.adjustToxLoss(-1)
|
||||
for(var/datum/reagent/toxin/R in host_mob.reagents.reagent_list)
|
||||
for(var/datum/reagent/toxin/R in host_mob.reagents?.reagent_list)
|
||||
host_mob.reagents.remove_reagent(R.type,1)
|
||||
|
||||
/datum/nanite_program/regenerative_advanced
|
||||
|
||||
@@ -934,6 +934,8 @@ GLOBAL_DATUM_INIT(ahelp_tickets, /datum/admin_help_tickets, new)
|
||||
|
||||
/proc/get_admin_counts(requiredflags = R_BAN)
|
||||
. = list("total" = list(), "noflags" = list(), "afk" = list(), "stealth" = list(), "present" = list())
|
||||
if(!GLOB.permissions)
|
||||
CRASH("Tried to fetch admin counts when permissions were not initialized")
|
||||
for(var/client/X in GLOB.permissions.admins)
|
||||
.["total"] += X
|
||||
if(requiredflags != 0 && !check_rights_for(X, requiredflags))
|
||||
|
||||
Reference in New Issue
Block a user