Merge pull request #7993 from MistakeNot4892/tachikoma

Removed inactive platforms from the end of round laws output, gives them pilot access.
This commit is contained in:
Atermonera
2021-03-21 23:05:11 -04:00
committed by VirgoBot
parent 24c74b40b0
commit bf490b96d1
3 changed files with 11 additions and 0 deletions
+5
View File
@@ -477,6 +477,11 @@ var/global/datum/controller/subsystem/ticker/ticker
for (var/mob/living/silicon/robot/robo in mob_list)
if(istype(robo, /mob/living/silicon/robot/platform))
var/mob/living/silicon/robot/platform/tank = robo
if(!tank.has_had_player)
continue
if(istype(robo,/mob/living/silicon/robot/drone) && !istype(robo,/mob/living/silicon/robot/drone/swarm))
dronecount++
continue
@@ -33,6 +33,7 @@
mob_push_flags = HEAVY
mob_size = MOB_LARGE
var/has_had_player = FALSE
var/const/platform_respawn_time = 3 MINUTES
var/tmp/last_recharge_state = FALSE
@@ -54,6 +55,10 @@
/obj/machinery/power/supermatter
)
/mob/living/silicon/robot/platform/Login()
. = ..()
has_had_player = TRUE
/mob/living/silicon/robot/platform/SetName(pickedName)
. = ..()
if(mind)
@@ -7,3 +7,4 @@
/obj/item/weapon/card/id/platform/Initialize()
. = ..()
access |= access_explorer
access |= access_pilot