mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 23:53:47 +01:00
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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user