Adds ability for items to be whitelisted for protean blob-drop; adds that to Freyr's mask

This commit is contained in:
Heroman
2022-11-20 11:01:21 +10:00
parent 32b627c9cb
commit 29cc875d12
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -109,6 +109,8 @@
var/no_random_knockdown = FALSE //stops item from being able to randomly knock people down in combat
var/protean_drop_whitelist = FALSE
/obj/item/New()
..()
if(embed_chance < 0)
@@ -360,6 +360,8 @@ var/global/list/disallowed_protean_accessories = list(
things_to_drop -= internal_organs //Mah sqeedily spooch
for(var/obj/item/I in things_to_drop) //rip hoarders
if(I.protean_drop_whitelist)
continue
drop_from_inventory(I)
if(w_uniform && istype(w_uniform,/obj/item/clothing)) //No webbings tho. We do this after in case a suit was in the way
@@ -2539,6 +2539,7 @@ Departamental Swimsuits, for general use
body_parts_covered = FACE
flags_inv = HIDEFACE
item_flags = FLEXIBLEMATERIAL
protean_drop_whitelist = TRUE
//codeme: Perrin Kade
/obj/item/clothing/shoes/fluff/gildedshoes_perrin