mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 04:30:44 +01:00
[MIRROR] Removes ghost check for battlecruiser objective and fixes players being able to roll it multiple times in a row [MDB IGNORE] (#16541)
* 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 * Removes ghost check for battlecruiser objective and fixes players being able to roll it multiple times in a row Co-authored-by: Salex08 <33989683+Salex08@users.noreply.github.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user