mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
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:
@@ -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
|
||||
Reference in New Issue
Block a user