Fixes drone fabricator runtime.

This commit is contained in:
Zuhayr
2014-05-14 17:12:03 +09:30
parent 30f29ed5ff
commit be992ab9a7

View File

@@ -28,7 +28,10 @@
/obj/machinery/drone_fabricator/process()
if(stat & NOPOWER || !produce_drones)
if(ticker.current_state < GAME_STATE_PLAYING)
return
if((stat & NOPOWER || !produce_drones) && icon_state != "drone_fab_nopower")
icon_state = "drone_fab_nopower"
return
@@ -83,6 +86,11 @@
set name = "Join As Drone"
set desc = "If there is a powered, enabled fabricator in the game world with a prepared chassis, join as a maintenance drone."
if(ticker.current_state < GAME_STATE_PLAYING)
src << "\red The game hasn't started yet!"
return
if(!(config.allow_drone_spawn))
src << "\red That verb is not currently permitted."
return