From 84bad65d5bd4931be57f38ba4a61b577251135f0 Mon Sep 17 00:00:00 2001 From: Seris02 Date: Sat, 18 Feb 2023 12:48:52 +0800 Subject: [PATCH] no free nifs from proteans --- code/modules/client/preference_setup/vore/08_nif.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/client/preference_setup/vore/08_nif.dm b/code/modules/client/preference_setup/vore/08_nif.dm index c618341344..d502fb447b 100644 --- a/code/modules/client/preference_setup/vore/08_nif.dm +++ b/code/modules/client/preference_setup/vore/08_nif.dm @@ -26,6 +26,9 @@ pref.nif_path = null //Kill! WARNING("Loaded a NIF but it was an invalid path, [pref.real_name]") + if (ispath(pref.nif_path, /obj/item/device/nif/protean) && pref.species != SPECIES_PROTEAN) //no free nifs + pref.nif_path = null + if(ispath(pref.nif_path) && isnull(pref.nif_durability)) //How'd you lose this? pref.nif_durability = initial(pref.nif_path.durability) //Well, have a new one, my bad. WARNING("Loaded a NIF but with no durability, [pref.real_name]")