Skip to content

Commit

Permalink
Extra frames & fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Bokkiewokkie committed Jan 10, 2025
1 parent c87e696 commit be85d41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion nsv13/code/game/machinery/iff_console.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,14 @@ If someone hacks it, you can always rebuild it.
var/radio_channel = RADIO_CHANNEL_COMMON
var/minimum_time_between_warnings = 400

/obj/machinery/computer/iff_console/Initialize(mapload, obj/item/circuitboard/C)
/obj/machinery/computer/iff_console/Initialize(mapload, obj/item/circuitboard/C, direction)
..()
radio = new(src)
radio.subspace_transmission = TRUE
radio.canhear_range = 0
radio.recalculateChannels()
if(direction)
dir = direction
return INITIALIZE_HINT_LATELOAD

/obj/machinery/computer/iff_console/LateInitialize()
Expand Down
6 changes: 4 additions & 2 deletions nsv13/code/modules/overmap/boarding/interiors.dm
Original file line number Diff line number Diff line change
Expand Up @@ -207,11 +207,13 @@ The meat of this file. This will instance the dropship's interior in reserved sp
/obj/structure/overmap/proc/post_load_interior()
if(length(ifflocs)) //Spawn the iff console at a random location!
var/turf/T = pick(ifflocs)
new /obj/machinery/computer/iff_console(T, dir = ifflocs[T])
var/obj/C = new /obj/machinery/computer/iff_console(T)
C.dir = ifflocs[T]
ifflocs -= T
if(length(ifflocs)) //The rest will be blank consoles
for(var/turf/T2 in ifflocs)
new /obj/structure/frame/computer(T2, dir = ifflocs[T2])
var/obj/F = new /obj/structure/frame/computer(T2)
F.dir = ifflocs[T2]
return

/obj/structure/overmap/proc/get_interior_center()
Expand Down

0 comments on commit be85d41

Please sign in to comment.