From 8efbd2dd26ddbfba84934f2d2d5d2ba8bfb31220 Mon Sep 17 00:00:00 2001 From: ariaworld <143797359+ariaworld@users.noreply.github.com> Date: Thu, 2 May 2024 16:37:45 +0200 Subject: [PATCH] Quirk removal admin log + allow hermit to load custom character --- code/controllers/subsystem/processing/quirks.dm | 4 ++++ modular_sand/code/controllers/subsystem/processing/quirks.dm | 1 + .../code/game/objects/structures/ghost_role_spawners.dm | 1 + 3 files changed, 6 insertions(+) diff --git a/code/controllers/subsystem/processing/quirks.dm b/code/controllers/subsystem/processing/quirks.dm index 34d3ee5a30..a50968e25d 100644 --- a/code/controllers/subsystem/processing/quirks.dm +++ b/code/controllers/subsystem/processing/quirks.dm @@ -36,6 +36,8 @@ PROCESSING_SUBSYSTEM_DEF(quirks) var/list/cut if(job?.blacklisted_quirks) cut = filter_quirks(my_quirks, job.blacklisted_quirks) + if(LAZYLEN(cut)) + log_admin("Quirks cut from [key_name(user)] due to job blacklist: [english_list(cut)]") for(var/V in my_quirks) if(V in quirks) var/datum/quirk/Q = quirks[V] @@ -54,6 +56,8 @@ PROCESSING_SUBSYSTEM_DEF(quirks) var/datum/species/S = H.dna.species if(S.remove_blacklisted_quirks(H)) to_chat(to_chat_target || user, "Some quirks have been cut from your character due to them conflicting with your species: [english_list(S.removed_quirks)]") + if(LAZYLEN(S.removed_quirks)) + log_admin("Quirks cut from [key_name(user)] due to species blacklist: [english_list(S.removed_quirks)]") /datum/controller/subsystem/processing/quirks/proc/quirk_path_by_name(name) return quirks[name] diff --git a/modular_sand/code/controllers/subsystem/processing/quirks.dm b/modular_sand/code/controllers/subsystem/processing/quirks.dm index 9c9f6826d4..64240e4bc1 100644 --- a/modular_sand/code/controllers/subsystem/processing/quirks.dm +++ b/modular_sand/code/controllers/subsystem/processing/quirks.dm @@ -4,6 +4,7 @@ var/list/cut_because_balance = check_and_cut_balance(my_quirks) if(LAZYLEN(cut_because_balance)) to_chat(to_chat_target || user, span_boldwarning("Some quirks have been cut from your character due to invalid balance: [english_list(cut_because_balance)]")) + log_admin("Quirks cut from [key_name(user)] due to balance: [english_list(cut_because_balance)]") /// Code to automatically reduce positive quirks until balance is even. /datum/controller/subsystem/processing/quirks/proc/check_and_cut_balance(list/our_quirks) diff --git a/modular_splurt/code/game/objects/structures/ghost_role_spawners.dm b/modular_splurt/code/game/objects/structures/ghost_role_spawners.dm index aecba6e677..0aed695152 100644 --- a/modular_splurt/code/game/objects/structures/ghost_role_spawners.dm +++ b/modular_splurt/code/game/objects/structures/ghost_role_spawners.dm @@ -41,6 +41,7 @@ short_desc = "You are a hermit abandoned by fate." flavour_text = "You've survived weeks in this hellish place. Maybe you want to live here with ash tribe or return to civilisation. \ Only you know how you got to this planetoid, whether this place in which you woke up was one of your shelters, or you just stumbled upon it." + can_load_appearance = TRUE /obj/effect/mob_spawn/human/wandering_hermit/Destroy() var/obj/structure/fluff/empty_sleeper/S = new(drop_location())