BYOS shuttle restrictions (Shuttle changes #1) (#23904)

* BYOS shuttle restrictions (Shuttle changes #1)

🆑 coiax
add: The Build your own shuttle kit can only be bought in the first five
minutes of the shift.
/🆑

- BYOS restriction is to avoid grief.

* Moves the defines

* Ten minutes
This commit is contained in:
coiax
2017-02-12 14:13:44 +13:00
committed by oranges
parent 9b67a5bbff
commit e4e192c3a3
3 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -408,4 +408,4 @@ var/global/list/ghost_others_options = list(GHOST_OTHERS_SIMPLE, GHOST_OTHERS_DE
#define TURF_DECAL_PAINT "paint"
#define TURF_DECAL_DAMAGE "damage"
#define TURF_DECAL_DIRT "dirt"
#define TURF_DECAL_DIRT "dirt"
+4
View File
@@ -45,6 +45,10 @@
admin_notes = "No brig, no medical facilities, no air."
credit_cost = -7500
/datum/map_template/shuttle/emergency/airless/prerequisites_met()
// first 10 minutes only
return world.time - round_start_time < 6000
/datum/map_template/shuttle/emergency/asteroid
suffix = "asteroid"
name = "Asteroid Station Emergency Shuttle"
+5 -1
View File
@@ -1,3 +1,5 @@
#define STATION_RENAME_TIME_LIMIT 3000
/obj/item/station_charter
name = "station charter"
icon = 'icons/obj/wizard.dmi'
@@ -33,7 +35,7 @@
if(used)
user << "This charter has already been used to name the station."
return
if(!ignores_timeout && (world.time-round_start_time > CHALLENGE_TIME_LIMIT)) //5 minutes
if(!ignores_timeout && (world.time-round_start_time > STATION_RENAME_TIME_LIMIT)) //5 minutes
user << "The crew has already settled into the shift. \
It probably wouldn't be good to rename the station right now."
return
@@ -93,3 +95,5 @@
if(!unlimited_uses)
used = TRUE
#undef STATION_RENAME_TIME_LIMIT