modules misc (#18315)

This commit is contained in:
KalevTait
2022-07-20 22:56:34 +02:00
committed by GitHub
parent 234a471cf9
commit 938135f3d8
48 changed files with 214 additions and 214 deletions
+20 -20
View File
@@ -4,11 +4,11 @@ GLOBAL_DATUM_INIT(the_gateway, /obj/machinery/gateway/centerstation, null)
desc = "A mysterious gateway built by unknown hands, it allows for faster than light travel to far-flung locations."
icon = 'icons/obj/machines/gateway.dmi'
icon_state = "off"
density = 1
anchored = 1
density = TRUE
anchored = TRUE
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
flags_2 = NO_MALF_EFFECT_2
var/active = 0
var/active = FALSE
/obj/machinery/gateway/Initialize()
..()
@@ -17,7 +17,7 @@ GLOBAL_DATUM_INIT(the_gateway, /obj/machinery/gateway/centerstation, null)
/obj/machinery/gateway/proc/update_density_from_dir()
if(dir == 2)
density = 0
density = FALSE
/obj/machinery/gateway/update_icon()
@@ -30,13 +30,13 @@ GLOBAL_DATUM_INIT(the_gateway, /obj/machinery/gateway/centerstation, null)
//this is da important part wot makes things go
/obj/machinery/gateway/centerstation
density = 1
density = TRUE
icon_state = "offcenter"
use_power = IDLE_POWER_USE
//warping vars
var/list/linked = list()
var/ready = 0 //have we got all the parts for a gateway?
var/ready = FALSE //have we got all the parts for a gateway?
var/wait = 0 //this just grabs world.time at world start
var/obj/machinery/gateway/centeraway/awaygate = null
@@ -89,12 +89,12 @@ GLOBAL_DATUM_INIT(the_gateway, /obj/machinery/gateway/centerstation, null)
continue
//this is only done if we fail to find a part
ready = 0
ready = FALSE
toggleoff()
break
if(linked.len == 8)
ready = 1
ready = TRUE
/obj/machinery/gateway/centerstation/proc/toggleon(mob/user as mob)
@@ -114,17 +114,17 @@ GLOBAL_DATUM_INIT(the_gateway, /obj/machinery/gateway/centerstation, null)
return
for(var/obj/machinery/gateway/G in linked)
G.active = 1
G.active = TRUE
G.update_icon()
active = 1
active = TRUE
update_icon()
/obj/machinery/gateway/centerstation/proc/toggleoff()
for(var/obj/machinery/gateway/G in linked)
G.active = 0
G.active = FALSE
G.update_icon()
active = 0
active = FALSE
update_icon()
@@ -170,12 +170,12 @@ GLOBAL_DATUM_INIT(the_gateway, /obj/machinery/gateway/centerstation, null)
/obj/machinery/gateway/centeraway
density = 1
density = TRUE
icon_state = "offcenter"
use_power = NO_POWER_USE
var/calibrated = 1
var/list/linked = list() //a list of the connected gateway chunks
var/ready = 0
var/ready = FALSE
var/obj/machinery/gateway/centeraway/stationgate = null
@@ -207,12 +207,12 @@ GLOBAL_DATUM_INIT(the_gateway, /obj/machinery/gateway/centerstation, null)
continue
//this is only done if we fail to find a part
ready = 0
ready = FALSE
toggleoff()
break
if(linked.len == 8)
ready = 1
ready = TRUE
/obj/machinery/gateway/centeraway/proc/toggleon(mob/user as mob)
@@ -227,17 +227,17 @@ GLOBAL_DATUM_INIT(the_gateway, /obj/machinery/gateway/centerstation, null)
return
for(var/obj/machinery/gateway/G in linked)
G.active = 1
G.active = TRUE
G.update_icon()
active = 1
active = TRUE
update_icon()
/obj/machinery/gateway/centeraway/proc/toggleoff()
for(var/obj/machinery/gateway/G in linked)
G.active = 0
G.active = FALSE
G.update_icon()
active = 0
active = FALSE
update_icon()
+3 -3
View File
@@ -3,9 +3,9 @@
icon = 'icons/mob/screen_gen.dmi'
icon_state = "x2"
invisibility = 101
anchored = 1
density = 0
opacity = 0
anchored = TRUE
density = FALSE
opacity = FALSE
var/template_name = null
var/datum/map_template/template = null
var/centered = 1
@@ -178,8 +178,8 @@
desc = "An energy gun that recharges wirelessly during away missions. Does not work on the main station."
force = 10
origin_tech = null
selfcharge = 1
can_charge = 0
selfcharge = TRUE
can_charge = FALSE
// Selfcharge is enabled and disabled, and used as the away mission tracker
selfcharge = TRUE
@@ -2,10 +2,10 @@
name = "waterfall effect"
icon = 'icons/effects/effects.dmi'
icon_state = "extinguish"
opacity = 0
opacity = FALSE
mouse_opacity = MOUSE_OPACITY_TRANSPARENT
density = 0
anchored = 1
density = FALSE
anchored = TRUE
invisibility = 101
var/water_frequency = 15
@@ -144,7 +144,7 @@
layer = MOB_LAYER + 0.1
smoothing_flags = SMOOTH_BITMASK
canSmoothWith = list(SMOOTH_GROUP_BEACH_WATER)
anchored = 1
anchored = TRUE
/turf/simulated/floor/beach/away/water/drop/dense
density = TRUE
@@ -289,7 +289,7 @@
// Engines
/obj/structure/shuttle/engine/large
name = "engine"
opacity = 1
opacity = TRUE
icon = 'icons/obj/2x2.dmi'
icon_state = "large_engine"
desc = "A very large bluespace engine used to propel very large ships."