Skip to content

Commit

Permalink
made change sabre asked
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien committed Mar 20, 2024
1 parent d883b77 commit d4832f5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 24 deletions.
1 change: 0 additions & 1 deletion code/game/machinery/doors/poddoor/poddoor.dm
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

/obj/structure/machinery/door/poddoor
name = "\improper Podlock"
desc = "That looks like it doesn't open easily."
Expand Down
46 changes: 23 additions & 23 deletions code/game/machinery/doors/poddoor/two_tile.dm
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
/obj/structure/machinery/door/poddoor/two_tile
dir = EAST
icon = 'icons/obj/structures/doors/1x2blast_hor.dmi'
var/obj/structure/machinery/door/poddoor/filler_object/f1
var/obj/structure/machinery/door/poddoor/filler_object/f2

/obj/structure/machinery/door/poddoor/two_tile/opened
density = FALSE

/obj/structure/machinery/door/poddoor/two_tile/Initialize()
. = ..()
f1 = new/obj/structure/machinery/door/poddoor/filler_object (loc)
f2 = new/obj/structure/machinery/door/poddoor/filler_object (get_step(src,dir))
f1.density = density
f2.density = density
f1.set_opacity(opacity)
f2.set_opacity(opacity)

/obj/structure/machinery/door/poddoor/two_tile/Destroy()
QDEL_NULL(f1)
QDEL_NULL(f2)
return ..()

/obj/structure/machinery/door/poddoor/two_tile/open()
if(operating) //doors can still open when emag-disabled
return
Expand Down Expand Up @@ -67,29 +90,6 @@
f4.set_opacity(initial(opacity))
..()

/obj/structure/machinery/door/poddoor/two_tile
dir = EAST
icon = 'icons/obj/structures/doors/1x2blast_hor.dmi'
var/obj/structure/machinery/door/poddoor/filler_object/f1
var/obj/structure/machinery/door/poddoor/filler_object/f2

/obj/structure/machinery/door/poddoor/two_tile/opened
density = FALSE

/obj/structure/machinery/door/poddoor/two_tile/Initialize()
. = ..()
f1 = new/obj/structure/machinery/door/poddoor/filler_object (loc)
f2 = new/obj/structure/machinery/door/poddoor/filler_object (get_step(src,dir))
f1.density = density
f2.density = density
f1.set_opacity(opacity)
f2.set_opacity(opacity)

/obj/structure/machinery/door/poddoor/two_tile/Destroy()
QDEL_NULL(f1)
QDEL_NULL(f2)
return ..()

/obj/structure/machinery/door/poddoor/two_tile/vertical
dir = NORTH
icon = 'icons/obj/structures/doors/1x2blast_vert.dmi'
Expand Down

0 comments on commit d4832f5

Please sign in to comment.