mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Merge pull request #2357 from CHOMPStationBot/upstream-merge-10813
[MIRROR] Port /tg/ fireplace sprites
This commit is contained in:
@@ -279,7 +279,7 @@
|
|||||||
/obj/structure/fireplace //more like a space heater than a bonfire. A cozier alternative to both.
|
/obj/structure/fireplace //more like a space heater than a bonfire. A cozier alternative to both.
|
||||||
name = "fireplace"
|
name = "fireplace"
|
||||||
desc = "The sound of the crackling hearth reminds you of home."
|
desc = "The sound of the crackling hearth reminds you of home."
|
||||||
icon = 'icons/obj/structures.dmi'
|
icon = 'icons/obj/fireplace.dmi'
|
||||||
icon_state = "fireplace"
|
icon_state = "fireplace"
|
||||||
density = TRUE
|
density = TRUE
|
||||||
anchored = TRUE
|
anchored = TRUE
|
||||||
@@ -387,15 +387,20 @@
|
|||||||
if(burning)
|
if(burning)
|
||||||
var/state
|
var/state
|
||||||
switch(get_fuel_amount())
|
switch(get_fuel_amount())
|
||||||
if(0 to 3.5)
|
if(0 to 1)
|
||||||
state = "fireplace_warm"
|
state = "[icon_state]_fire0"
|
||||||
if(3.6 to 6.5)
|
if(2 to 4)
|
||||||
state = "fireplace_hot"
|
state = "[icon_state]_fire1"
|
||||||
if(6.6 to 10)
|
if(4 to 6)
|
||||||
state = "fireplace_intense" //don't need to throw a corpse inside to make it burn hotter.
|
state = "[icon_state]_fire2"
|
||||||
var/image/I = image(icon, state)
|
if(6 to 8)
|
||||||
I.appearance_flags = RESET_COLOR
|
state = "[icon_state]_fire3"
|
||||||
add_overlay(I)
|
if(8 to 10)
|
||||||
|
state = "[icon_state]_fire4"
|
||||||
|
add_overlay(mutable_appearance(icon, state))
|
||||||
|
add_overlay(emissive_appearance(icon, state))
|
||||||
|
add_overlay(mutable_appearance(icon, "[icon_state]_glow"))
|
||||||
|
add_overlay(emissive_appearance(icon, "[icon_state]_glow"))
|
||||||
|
|
||||||
var/light_strength = max(get_fuel_amount() / 2, 2)
|
var/light_strength = max(get_fuel_amount() / 2, 2)
|
||||||
set_light(light_strength, light_strength, "#FF9933")
|
set_light(light_strength, light_strength, "#FF9933")
|
||||||
|
|||||||
BIN
icons/obj/fireplace.dmi
Normal file
BIN
icons/obj/fireplace.dmi
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
Reference in New Issue
Block a user