Skip to content

Commit

Permalink
Use bluespace interlude on Sierra
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhEugene committed Jan 15, 2024
1 parent 116affc commit a921407
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 0 deletions.
3 changes: 3 additions & 0 deletions maps/sierra/sierra.dm
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@
#include "../away/abandoned_hotel/abandoned_hotel.dm"
// #include "../event/iccgn_ship/icgnv_hound.dm" // SIERRA TODO: Пофиксить или удалить

#include "../bluespace_interlude/bluespace_interlude.dm"
#include "../bluespace_interlude/bluespace_interlude.dmm"

// USED MODS
// Keep them in ascending alphabetical order, please

Expand Down
2 changes: 2 additions & 0 deletions maps/sierra/sierra_define.dm
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
// https://clips.twitch.tv/MildIgnorantJayGivePLZ-CvZlfeclHBx4Ye1l
welcome_sound = 'maps/sierra/sound/welcome.ogg'

use_bluespace_interlude = TRUE

load_legacy_saves = TRUE

station_levels = list(1,2,3,4,5)
Expand Down
12 changes: 12 additions & 0 deletions maps/sierra/sierra_procs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,18 @@
else
to_chat(Player, "<font color='red'><b>Вы не пережили события на [station_name()]...</b></font>")

/datum/map/sierra/do_interlude_teleport(atom/movable/target, atom/destination, duration = 30 SECONDS, precision, type)
var/turf/T = pick_area_turf(/area/bluespace_interlude/platform, list(/proc/not_turf_contains_dense_objects, /proc/IsTurfAtmosSafe))

if (!T)
do_teleport(target, destination)
return

if (isliving(target))
to_chat(target, FONT_LARGE(SPAN_WARNING("Your vision goes blurry and nausea strikes your stomach. Where are you...?")))
do_teleport(target, T, precision, type)
addtimer(new Callback(GLOBAL_PROC, /proc/do_teleport, target, destination), duration)

/datum/map/bolt_saferooms()
for(var/atype in typesof(/area/crew_quarters/safe_room))
var/area/A = locate(atype)
Expand Down
3 changes: 3 additions & 0 deletions maps/sierra/sierra_unit_testing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@
/area/turbolift/bridgedeck,
/area/beach,
/area/template_noop,
/area/bluespace_interlude,
/area/bluespace_interlude/platform,
/area/bluespace_interlude/surroundings,
/area/rnd/xenobiology/cell_1,
/area/rnd/xenobiology/cell_2,
/area/rnd/xenobiology/cell_3,
Expand Down

0 comments on commit a921407

Please sign in to comment.