pets runtime because she deserves it (#17645)

* pets runtime

* Update unsorted.dm

* Update unsorted.dm
This commit is contained in:
ynot01
2023-01-28 07:24:18 -05:00
committed by GitHub
parent d22897d6c7
commit 7a26bfc17c
6 changed files with 11 additions and 3 deletions

View File

@@ -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]!")

View File

@@ -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

View File

@@ -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)

View File

@@ -46,6 +46,7 @@
if(lastscan.len)
data["chems"] = lastscan["reagents"]["reagentlist"]
else
lastscan["reagents"] = list()
data["chems"] = lastscan["reagents"]["reagentlist"] = list()
return data

View File

@@ -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

View File

@@ -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))