Merge pull request #31696 from duncathan/atmos-patch6
Fixes freon colours never going away
This commit is contained in:
@@ -968,9 +968,7 @@ GLOBAL_LIST_EMPTY(friendly_animal_types)
|
|||||||
/image/proc/setDir(newdir)
|
/image/proc/setDir(newdir)
|
||||||
dir = newdir
|
dir = newdir
|
||||||
|
|
||||||
#define FROZEN_RED_COLOR "#2E5E69"
|
GLOBAL_LIST_INIT(freon_color_matrix, list("#2E5E69", "#60A2A8", "#A1AFB1", rgb(0,0,0)))
|
||||||
#define FROZEN_GREEN_COLOR "#60A2A8"
|
|
||||||
#define FROZEN_BLUE_COLOR "#A1AFB1"
|
|
||||||
|
|
||||||
/obj/proc/make_frozen_visual()
|
/obj/proc/make_frozen_visual()
|
||||||
// Used to make the frozen item visuals for Freon.
|
// Used to make the frozen item visuals for Freon.
|
||||||
@@ -978,7 +976,7 @@ GLOBAL_LIST_EMPTY(friendly_animal_types)
|
|||||||
return
|
return
|
||||||
if(!(flags_2 & FROZEN_2))
|
if(!(flags_2 & FROZEN_2))
|
||||||
name = "frozen [name]"
|
name = "frozen [name]"
|
||||||
add_atom_colour(list(FROZEN_RED_COLOR, FROZEN_GREEN_COLOR, FROZEN_BLUE_COLOR, rgb(0,0,0)), TEMPORARY_COLOUR_PRIORITY)
|
add_atom_colour(GLOB.freon_color_matrix, TEMPORARY_COLOUR_PRIORITY)
|
||||||
alpha -= 25
|
alpha -= 25
|
||||||
flags_2 |= FROZEN_2
|
flags_2 |= FROZEN_2
|
||||||
|
|
||||||
@@ -986,14 +984,10 @@ GLOBAL_LIST_EMPTY(friendly_animal_types)
|
|||||||
/obj/proc/make_unfrozen()
|
/obj/proc/make_unfrozen()
|
||||||
if(flags_2 & FROZEN_2)
|
if(flags_2 & FROZEN_2)
|
||||||
name = replacetext(name, "frozen ", "")
|
name = replacetext(name, "frozen ", "")
|
||||||
remove_atom_colour(TEMPORARY_COLOUR_PRIORITY, list(FROZEN_RED_COLOR, FROZEN_GREEN_COLOR, FROZEN_BLUE_COLOR, rgb(0,0,0)))
|
remove_atom_colour(TEMPORARY_COLOUR_PRIORITY, GLOB.freon_color_matrix)
|
||||||
alpha += 25
|
alpha += 25
|
||||||
flags_2 &= ~FROZEN_2
|
flags_2 &= ~FROZEN_2
|
||||||
|
|
||||||
#undef FROZEN_RED_COLOR
|
|
||||||
#undef FROZEN_GREEN_COLOR
|
|
||||||
#undef FROZEN_BLUE_COLOR
|
|
||||||
|
|
||||||
|
|
||||||
//Converts an icon to base64. Operates by putting the icon in the iconCache savefile,
|
//Converts an icon to base64. Operates by putting the icon in the iconCache savefile,
|
||||||
// exporting it as text, and then parsing the base64 from that.
|
// exporting it as text, and then parsing the base64 from that.
|
||||||
|
|||||||
Reference in New Issue
Block a user