mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Transitions to Full-tile Windows (#15385)
* Transitions to Full-tile Windows * tweaks * bump fix and RCD inclusion * no colors * debris refactor * even better
This commit is contained in:
@@ -18,6 +18,22 @@
|
||||
scoop_reagents = list("ash" = 10)
|
||||
mergeable_decal = FALSE
|
||||
|
||||
/obj/effect/decal/cleanable/glass
|
||||
name = "tiny shards"
|
||||
desc = "Back to sand."
|
||||
icon = 'icons/obj/shards.dmi'
|
||||
icon_state = "tiny"
|
||||
|
||||
/obj/effect/decal/cleanable/glass/Initialize(mapload)
|
||||
. = ..()
|
||||
setDir(pick(GLOB.cardinal))
|
||||
|
||||
/obj/effect/decal/cleanable/glass/ex_act()
|
||||
qdel(src)
|
||||
|
||||
/obj/effect/decal/cleanable/glass/plasma
|
||||
icon_state = "plasmatiny"
|
||||
|
||||
/obj/effect/decal/cleanable/dirt
|
||||
name = "dirt"
|
||||
desc = "Someone should clean that up."
|
||||
|
||||
@@ -2,12 +2,13 @@
|
||||
name = "window spawner"
|
||||
icon = 'icons/obj/structures.dmi'
|
||||
icon_state = "window_spawner"
|
||||
var/useFull = 0
|
||||
var/useGrille = 1
|
||||
var/windowtospawn = /obj/structure/window/basic
|
||||
anchored = 1 // No sliding out while you prime
|
||||
var/useFull = TRUE
|
||||
var/useGrille = TRUE
|
||||
var/window_to_spawn_regular = /obj/structure/window/basic
|
||||
var/window_to_spawn_full = /obj/structure/window/full/basic
|
||||
anchored = TRUE // No sliding out while you prime
|
||||
|
||||
/obj/effect/spawner/window/Initialize()
|
||||
/obj/effect/spawner/window/Initialize(mapload)
|
||||
. = ..()
|
||||
var/turf/T = get_turf(src)
|
||||
for(var/obj/structure/grille/G in get_turf(src))
|
||||
@@ -20,35 +21,33 @@
|
||||
for(var/obj/effect/spawner/window/WS in get_step(src,cdir))
|
||||
cdir = null
|
||||
break
|
||||
if(!cdir) continue
|
||||
var/obj/structure/window/WI = new windowtospawn(get_turf(src))
|
||||
if(!cdir)
|
||||
continue
|
||||
var/obj/structure/window/WI = new window_to_spawn_regular(get_turf(src))
|
||||
WI.dir = cdir
|
||||
else
|
||||
var/obj/structure/window/W = new windowtospawn(get_turf(src))
|
||||
W.dir = SOUTHWEST
|
||||
new window_to_spawn_full(get_turf(src))
|
||||
|
||||
if(useGrille)
|
||||
new /obj/structure/grille(get_turf(src))
|
||||
|
||||
src.air_update_turf(1) //atmos can pass otherwise
|
||||
// Give some time for nearby window spawners to initialize
|
||||
spawn(10)
|
||||
qdel(src)
|
||||
// why is this line a no-op
|
||||
// QDEL_IN(src, 10)
|
||||
air_update_turf(TRUE) //atmos can pass otherwise
|
||||
return INITIALIZE_HINT_QDEL
|
||||
|
||||
|
||||
/obj/effect/spawner/window/reinforced
|
||||
name = "reinforced window spawner"
|
||||
icon_state = "rwindow_spawner"
|
||||
windowtospawn = /obj/structure/window/reinforced
|
||||
window_to_spawn_regular = /obj/structure/window/reinforced
|
||||
window_to_spawn_full = /obj/structure/window/full/reinforced
|
||||
|
||||
/obj/effect/spawner/window/reinforced/plasma
|
||||
name = "reinforced plasma window spawner"
|
||||
icon_state = "pwindow_spawner"
|
||||
windowtospawn = /obj/structure/window/plasmareinforced
|
||||
window_to_spawn_regular = /obj/structure/window/plasmareinforced
|
||||
window_to_spawn_full = /obj/structure/window/full/plasmareinforced
|
||||
|
||||
/obj/effect/spawner/window/shuttle
|
||||
name = "shuttle window spawner"
|
||||
icon_state = "swindow_spawner"
|
||||
windowtospawn = /obj/structure/window/shuttle
|
||||
window_to_spawn_full = /obj/structure/window/shuttle
|
||||
|
||||
Reference in New Issue
Block a user