mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-26 01:52:29 +00:00
made away missions actually load properly, also added a command report / admin report when they become active. made all away missions except wizard academy possible destinations
Signed-off-by: Cael_Aislinn <cael_aislinn@yahoo.com.au>
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
var/global/announced_gateway_activation = 0
|
||||
|
||||
/obj/machinery/gateway
|
||||
name = "gateway"
|
||||
desc = "A mysterious gateway built by unknown hands, it allows for faster than light travel to far-flung locations."
|
||||
@@ -18,8 +20,6 @@
|
||||
return
|
||||
icon_state = "off"
|
||||
|
||||
|
||||
|
||||
//this is da important part wot makes things go
|
||||
/obj/machinery/gateway/centerstation
|
||||
density = 1
|
||||
@@ -44,7 +44,6 @@
|
||||
return
|
||||
icon_state = "offcenter"
|
||||
|
||||
|
||||
obj/machinery/gateway/centerstation/process()
|
||||
if(stat & (NOPOWER))
|
||||
if(active) toggleoff()
|
||||
@@ -52,6 +51,8 @@ obj/machinery/gateway/centerstation/process()
|
||||
|
||||
if(active)
|
||||
use_power(5000)
|
||||
if(!announced_gateway_activation && world.time >= wait && awaygate)
|
||||
Announce()
|
||||
|
||||
/obj/machinery/gateway/centerstation/proc/detect()
|
||||
linked = list() //clear the list
|
||||
@@ -83,7 +84,6 @@ obj/machinery/gateway/centerstation/process()
|
||||
user << "<span class='notice'>Error: Warpspace triangulation in progress. Estimated time to completion: [round(((wait - world.time) / 10) / 60)] minutes.</span>"
|
||||
return
|
||||
|
||||
|
||||
for(var/obj/machinery/gateway/G in linked)
|
||||
G.active = 1
|
||||
G.update_icon()
|
||||
@@ -108,8 +108,6 @@ obj/machinery/gateway/centerstation/process()
|
||||
return
|
||||
toggleoff()
|
||||
|
||||
|
||||
|
||||
//okay, here's the good teleporting stuff
|
||||
/obj/machinery/gateway/centerstation/HasEntered(mob/user as mob)
|
||||
if(!ready) return
|
||||
@@ -127,8 +125,22 @@ obj/machinery/gateway/centerstation/process()
|
||||
use_power(5000)
|
||||
return
|
||||
|
||||
/obj/machinery/gateway/centerstation/proc/Announce()
|
||||
announced_gateway_activation = 1
|
||||
for (var/obj/machinery/computer/communications/C in machines)
|
||||
if(! (C.stat & (BROKEN|NOPOWER) ) )
|
||||
var/obj/item/weapon/paper/P = new /obj/item/weapon/paper( C.loc )
|
||||
P.name = "'Gateway Systems Update.'"
|
||||
P.info = "Gateway automated navigation subsystem's triangulation process has been completed and a viable destination address has been loaded into the pattern buffer."
|
||||
P.update_icon()
|
||||
C.messagetitle.Add("Gateway Systems Update")
|
||||
C.messagetext.Add(P.info)
|
||||
|
||||
world << "\red New subsystems update available at all communication consoles."
|
||||
|
||||
world << sound('commandreport.ogg')
|
||||
log_admin("The gateway has automatically activated.")
|
||||
message_admins("The gateway has automatically activated and is ready for use. Warning: some trips may be one way, and others may be EXTREMELY hazardous.", 1)
|
||||
|
||||
|
||||
/////////////////////////////////////Away////////////////////////
|
||||
|
||||
@@ -36,7 +36,7 @@ proc/createRandomZlevel()
|
||||
if (!name)
|
||||
continue
|
||||
|
||||
potentialRandomZlevels.Add(t)
|
||||
potentialRandomZlevels.Add(name)
|
||||
|
||||
|
||||
if(potentialRandomZlevels.len)
|
||||
@@ -46,7 +46,6 @@ proc/createRandomZlevel()
|
||||
var/file = file(map)
|
||||
if(isfile(file))
|
||||
maploader.load_map(file)
|
||||
world.log << "away mission loaded: [map]"
|
||||
|
||||
for(var/obj/effect/landmark/L in landmarks_list)
|
||||
if (L.name != "awaystart")
|
||||
|
||||
Reference in New Issue
Block a user