Makes trees transparent if important objects are hiding behind them (#18627)

* tree!

* Update code/modules/admin/verbs/freeze.dm

* yeet

* steel review, animate transparency

* more critical items

* charlie review

* charlie
This commit is contained in:
S34N
2022-07-31 23:24:12 +01:00
committed by GitHub
parent b4d74f5620
commit 07265abdf2
16 changed files with 143 additions and 11 deletions
+1
View File
@@ -204,6 +204,7 @@
integrity_failure = 5
var/status = GROWING //can be GROWING, GROWN or BURST; all mutually exclusive
layer = MOB_LAYER
flags_2 = CRITICAL_ATOM_2
/obj/structure/alien/egg/grown
status = GROWN
+13
View File
@@ -10,6 +10,10 @@
pixel_x = -16
layer = 9
//Adds the transparency component, exists to be overridden for different args.
/obj/structure/flora/tree/ComponentInitialize()
AddComponent(/datum/component/largetransparency)
/obj/structure/flora/tree/pine
name = "pine tree"
icon = 'icons/obj/flora/pinetrees.dmi'
@@ -28,6 +32,9 @@
icon = 'icons/obj/flora/deadtrees.dmi'
icon_state = "tree_1"
/obj/structure/flora/tree/dead/ComponentInitialize()
AddComponent(/datum/component/largetransparency, 0, 1, 0, 0)
/obj/structure/flora/tree/dead/Initialize(mapload)
. = ..()
icon_state = "tree_[rand(1, 6)]"
@@ -53,11 +60,17 @@
icon_state = "[icon_state][rand(1, 6)]"
. = ..()
/obj/structure/flora/tree/jungle/ComponentInitialize()
AddComponent(/datum/component/largetransparency, -1, 1, 2, 2)
/obj/structure/flora/tree/jungle/small
pixel_y = 0
pixel_x = -32
icon = 'icons/obj/flora/jungletreesmall.dmi'
/obj/structure/flora/tree/jungle/small/ComponentInitialize()
AddComponent(/datum/component/largetransparency)
//grass
/obj/structure/flora/grass
name = "grass"