Removes ghost check for battlecruiser objective and fixes players being able to roll it multiple times in a row (#70194)

Removes the ghost check for the battlecruiser objective
Fixes the same player being able to reroll battlecruiser
This commit is contained in:
Salex08
2022-09-29 22:52:21 +01:00
committed by GitHub
parent b9c9ad31e1
commit 5dada0e63a
5 changed files with 10 additions and 12 deletions
@@ -117,12 +117,19 @@
/// The antag datum to give to the player spawned
var/antag_datum_to_give = /datum/antagonist/battlecruiser
/obj/effect/mob_spawn/ghost_role/human/syndicate/battlecruiser/allow_spawn(mob/user, silent = FALSE)
if(!(user.ckey in antag_team.players_spawned))
return TRUE
to_chat(user, span_boldwarning("You have already used up your chance to roll as Battlecruiser."))
return FALSE
/obj/effect/mob_spawn/ghost_role/human/syndicate/battlecruiser/special(mob/living/spawned_mob, mob/possesser)
. = ..()
if(!spawned_mob.mind)
spawned_mob.mind_initialize()
var/datum/mind/mob_mind = spawned_mob.mind
mob_mind.add_antag_datum(antag_datum_to_give, antag_team)
antag_team.players_spawned += (spawned_mob.ckey)
/datum/team/battlecruiser
name = "\improper Battlecruiser Crew"