Berry decal

Blueberry juice sometimes causes people to expel a little juice, creating a decal effect that leaves footprints if stepped on
This commit is contained in:
Alphas00
2024-06-11 23:12:19 +02:00
parent e238fdf282
commit fca58e1c40
6 changed files with 23 additions and 0 deletions
@@ -49,3 +49,19 @@
to_chat(user, "<span class='warning'>You get some juice out of you...</span>")
return
..()
/obj/effect/decal/cleanable/juice
name = "berry juice"
desc = "It's blue and smells enticingly sweet."
icon = 'GainStation13/icons/turf/berry_decal.dmi'
icon_state = "floor1"
random_icon_states = list("floor1", "floor2", "floor3", "floor4", "floor5", "floor6", "floor7")
blood_state = BLOOD_STATE_JUICE
bloodiness = BLOOD_AMOUNT_PER_DECAL
/obj/effect/decal/cleanable/juice/Initialize()
. = ..()
reagents.add_reagent(/datum/reagent/blueberry_juice = 5)
/obj/effect/decal/cleanable/juice/streak
random_icon_states = list("streak1", "streak2", "streak3", "streak4", "streak5")
@@ -116,6 +116,9 @@
if(!no_mob_color)
M.add_atom_colour(picked_color, WASHABLE_COLOUR_PRIORITY)
M.adjust_fatness(1, FATTENING_TYPE_CHEM)
if(prob(2))
new /obj/effect/decal/cleanable/juice(M.loc)
playsound(M.loc, 'sound/effects/splat.ogg',rand(10,50), 1)
..()
/datum/reagent/blueberry_juice/on_mob_add(mob/living/L, amount)
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

+2
View File
@@ -161,6 +161,7 @@ GLOBAL_LIST_EMPTY(bloody_footprints_cache)
#define BLOOD_STATE_OIL "oil"
#define BLOOD_STATE_NOT_BLOODY "no blood whatsoever"
#define BLOOD_AMOUNT_PER_DECAL 20
#define BLOOD_STATE_JUICE "juice"
//Blood Decal Colors
#define BLOOD_COLOR_HUMAN "#dc0000"
@@ -171,6 +172,7 @@ GLOBAL_LIST_EMPTY(bloody_footprints_cache)
#define BLOOD_COLOR_LIZARD "#db004D"
#define BLOOD_COLOR_UNIVERSAL "#db3300"
#define BLOOD_COLOR_BUG "#a37c0f"
#define BLOOD_COLOR_JUICE "#0004ff"
//suit sensors: sensor_mode defines
@@ -24,6 +24,8 @@
/obj/effect/decal/cleanable/blood/update_icon()
color = blood_DNA_to_color()
if(blood_state == BLOOD_STATE_JUICE)
color = BLOOD_COLOR_JUICE
/obj/effect/decal/cleanable/blood/old
name = "dried blood"
Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 19 KiB