mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 10:21:11 +00:00
Added a config option for assistants having maint access. Default is them not having it.
Added a config option for the delay on the gateway opening. Default is still half an hour. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@5058 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -93,6 +93,9 @@
|
|||||||
var/admin_legacy_system = 0 //Defines whether the server uses the legacy admin system with admins.txt or the SQL system. Config option in config.txt
|
var/admin_legacy_system = 0 //Defines whether the server uses the legacy admin system with admins.txt or the SQL system. Config option in config.txt
|
||||||
var/ban_legacy_system = 0 //Defines whether the server uses the legacy banning system with the files in /data or the SQL system. Config option in config.txt
|
var/ban_legacy_system = 0 //Defines whether the server uses the legacy banning system with the files in /data or the SQL system. Config option in config.txt
|
||||||
|
|
||||||
|
var/assistant_maint = 0 //Do assistants get maint access?
|
||||||
|
var/gateway_delay = 18000 //How long the gateway takes before it activates. Default is half an hour.
|
||||||
|
|
||||||
/datum/configuration/New()
|
/datum/configuration/New()
|
||||||
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
|
||||||
for (var/T in L)
|
for (var/T in L)
|
||||||
@@ -336,6 +339,12 @@
|
|||||||
if("automute_on")
|
if("automute_on")
|
||||||
automute_on = 1
|
automute_on = 1
|
||||||
|
|
||||||
|
if("assistant_maint")
|
||||||
|
config.assistant_maint = 1
|
||||||
|
|
||||||
|
if("gateway_delay")
|
||||||
|
config.gateway_delay = text2num(value)
|
||||||
|
|
||||||
else
|
else
|
||||||
diary << "Unknown setting in configuration: '[name]'"
|
diary << "Unknown setting in configuration: '[name]'"
|
||||||
|
|
||||||
|
|||||||
@@ -180,7 +180,10 @@
|
|||||||
if("Station Engineer")
|
if("Station Engineer")
|
||||||
return list(access_engine, access_engine_equip, access_tech_storage, access_maint_tunnels, access_external_airlocks, access_construction)
|
return list(access_engine, access_engine_equip, access_tech_storage, access_maint_tunnels, access_external_airlocks, access_construction)
|
||||||
if("Assistant")
|
if("Assistant")
|
||||||
return list()
|
if(config.assistant_maint)
|
||||||
|
return list(access_maint_tunnels)
|
||||||
|
else
|
||||||
|
return list()
|
||||||
if("Chaplain")
|
if("Chaplain")
|
||||||
return list(access_morgue, access_chapel_office, access_crematorium)
|
return list(access_morgue, access_chapel_office, access_crematorium)
|
||||||
if("Detective")
|
if("Detective")
|
||||||
|
|||||||
@@ -35,7 +35,7 @@
|
|||||||
/obj/machinery/gateway/centerstation/initialize()
|
/obj/machinery/gateway/centerstation/initialize()
|
||||||
update_icon()
|
update_icon()
|
||||||
returndestination = get_step(loc, SOUTH)
|
returndestination = get_step(loc, SOUTH)
|
||||||
wait = world.time + 18000 //+ thirty minutes
|
wait = world.time + config.gateway_delay //+ thirty minutes default
|
||||||
awaygate = locate(/obj/machinery/gateway/centeraway, world)
|
awaygate = locate(/obj/machinery/gateway/centeraway, world)
|
||||||
|
|
||||||
/obj/machinery/gateway/centerstation/update_icon()
|
/obj/machinery/gateway/centerstation/update_icon()
|
||||||
|
|||||||
@@ -177,3 +177,9 @@ HUMANS_NEED_SURNAMES
|
|||||||
|
|
||||||
## Comment this out to disable automuting
|
## Comment this out to disable automuting
|
||||||
#AUTOMUTE_ON
|
#AUTOMUTE_ON
|
||||||
|
|
||||||
|
## How long the delay is before the Away Mission gate opens. Default is half an hour.
|
||||||
|
GATEWAY_DELAY 18000
|
||||||
|
|
||||||
|
## Remove the # to give assistants maint access.
|
||||||
|
#ASSISTANT_MAINT
|
||||||
Reference in New Issue
Block a user