Merge pull request #1649 from CHOMPStationBot/upstream-merge-9992

[MIRROR] [MIRROR] Removed inactive platforms from the end of round laws output, gives them pilot access.
This commit is contained in:
Nadyr
2021-03-26 04:24:17 -04:00
committed by GitHub
3 changed files with 11 additions and 0 deletions

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

View File

@@ -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)

View File

@@ -7,3 +7,4 @@
/obj/item/weapon/card/id/platform/Initialize()
. = ..()
access |= access_explorer
access |= access_pilot