mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-11 18:22:14 +00:00
* a * GRILL GANG * sipp * sip * seep * grug * FSAIUGANOHNHOE * bru * a * finish him * compilies ^w^ * WOOO * holy crap * woo * a * h * woo * woo * woo * awoo * aa * aw shet * heck you floyd * at ath * awo * we like compiling code * awo * coal mat * awoo * aasdga * a * nice * awoo * awwoooooooooooooooooooooooo * awoo * spaceport bars * grill gang * aw * awooo * yee * aw * flod * awoo * awoo * yesyesyyes * a * awoo * holy sht * h * awoo * awo * aaaaaaaaa * awoooooooooo * awoo * aw man * honk * well boys we did it * oh mama mia * ok cobby flushed * awoo * removes fun * yeep * i just said something * vruh obama * ye * awoo * awooooooo
27 lines
994 B
Plaintext
27 lines
994 B
Plaintext
/datum/component/sizzle
|
|
var/mutable_appearance/sizzling
|
|
var/sizzlealpha = 0
|
|
dupe_mode = COMPONENT_DUPE_UNIQUE_PASSARGS
|
|
|
|
/datum/component/sizzle/Initialize()
|
|
if(!isatom(parent))
|
|
return COMPONENT_INCOMPATIBLE
|
|
setup_sizzle()
|
|
|
|
/datum/component/sizzle/InheritComponent(datum/component/C, i_am_original)
|
|
var/atom/food = parent
|
|
sizzlealpha += 5
|
|
sizzling.alpha = sizzlealpha
|
|
food.cut_overlay(sizzling)
|
|
food.add_overlay(sizzling)
|
|
|
|
/datum/component/sizzle/proc/setup_sizzle()
|
|
var/atom/food = parent
|
|
var/icon/grill_marks = icon(initial(food.icon), initial(food.icon_state)) //we only want to apply grill marks to the initial icon_state for each object
|
|
grill_marks.Blend("#fff", ICON_ADD) //fills the icon_state with white (except where it's transparent)
|
|
grill_marks.Blend(icon('icons/obj/kitchen.dmi', "grillmarks"), ICON_MULTIPLY) //adds grill marks and the remaining white areas become transparent
|
|
sizzling = new(grill_marks)
|
|
sizzling.alpha = sizzlealpha
|
|
food.add_overlay(sizzling)
|
|
|