[MIRROR] C4 suicide phrases, but it's on the datum now (#6765)

* Rework C4 suicide phrases to be on the antagonist datum; add more phrases (#60029)

Fun fact. Did you know the C4 has special suicideverb phrases for most antagonists? That is, most antagonists. This adds a bunch in because someone noticed Heretic didn't have one special, and I noted quite a few minor antagonists didn't either.

The suicide cry phrases are now on the antag datum instead of in the if/else chain.

* C4 suicide phrases, but it's on the datum now

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-07-06 23:06:31 +01:00
committed by GitHub
parent 49a6af8d4f
commit f6f7a738d7
34 changed files with 48 additions and 29 deletions
+11 -26
View File
@@ -115,33 +115,18 @@
/obj/item/grenade/c4/proc/shout_syndicate_crap(mob/player)
if(!player)
return
var/message_say = "FOR NO RAISIN!"
CRASH("[src] proc shout_syndicate_crap called without a mob to shout crap from!")
var/final_message = "FOR NO RAISIN!!"
if(player.mind)
var/datum/mind/our_guy = player.mind
if(our_guy.has_antag_datum(/datum/antagonist/nukeop) || our_guy.has_antag_datum(/datum/antagonist/traitor))
message_say = "FOR THE SYNDICATE!"
else if(our_guy.has_antag_datum(/datum/antagonist/changeling))
message_say = "FOR THE HIVE!"
else if(our_guy.has_antag_datum(/datum/antagonist/cult))
message_say = "FOR NAR'SIE!"
else if(our_guy.has_antag_datum(/datum/antagonist/rev))
message_say = "VIVA LA REVOLUTION!"
else if(our_guy.has_antag_datum(/datum/antagonist/brother))
message_say = "FOR MY BROTHER!"
else if(our_guy.has_antag_datum(/datum/antagonist/ninja))
message_say = "FOR THE SPIDER CLAN!"
else if(our_guy.has_antag_datum(/datum/antagonist/fugitive))
message_say = "FOR FREEDOM!"
else if(our_guy.has_antag_datum(/datum/antagonist/ashwalker))
message_say = "I HAVE NO IDEA WHAT THIS THING DOES!"
else if(our_guy.has_antag_datum(/datum/antagonist/ert))
message_say = "FOR NANOTRASEN!"
else if(our_guy.has_antag_datum(/datum/antagonist/pirate))
message_say = "FOR ME MATEYS!"
else if(our_guy.has_antag_datum(/datum/antagonist/wizard))
message_say = "FOR THE FEDERATION!"
player.say(message_say, forced="C4 suicide")
// Give our list of antag datums a shuffle and pick the first one with a suicide_cry to use as our shout.
var/list/shuffled_antag_datums = shuffle(player.mind.antag_datums)
for(var/datum/antagonist/found_antag as anything in shuffled_antag_datums)
if(found_antag.suicide_cry)
final_message = found_antag.suicide_cry
break
player.say(final_message, forced = "C4 suicide")
/obj/item/grenade/c4/suicide_act(mob/living/user)
message_admins("[ADMIN_LOOKUPFLW(user)] suicided with [src] at [ADMIN_VERBOSEJMP(user)]")