Adds family objectives to the traitor panel (#63645)

This commit is contained in:
dragomagol
2021-12-27 23:09:16 -08:00
committed by GitHub
parent 3a8bd7d22a
commit 18d35ceea4
+9 -2
View File
@@ -90,6 +90,7 @@
if(starter_gangster)
equip_gangster_in_inventory()
owner.current.playsound_local(get_turf(owner.current), 'sound/ambience/antag/thatshowfamiliesworks.ogg', 100, FALSE, pressure_affected = FALSE, use_reverb = FALSE)
add_objectives()
..()
/datum/antagonist/gang/on_removal()
@@ -116,6 +117,12 @@
package_spawner.Remove(owner.current)
..()
/// Used to display gang objectives in the player's traitor panel
/datum/antagonist/gang/proc/add_objectives()
var/datum/objective/objective = new ()
objective.explanation_text = my_gang.current_theme.gang_objectives[type]
objectives.Add(objective)
/// Gives a gangster their equipment in their backpack and / or pockets.
/datum/antagonist/gang/proc/equip_gangster_in_inventory()
if(istype(owner.current, /mob/living/carbon/human))
@@ -284,9 +291,9 @@
/obj/item/clothing/under/suit/checkered,
/obj/item/toy/crayon/spraycan)
antag_hud_name = "Italian"
gang_team_type = /datum/team/gang/russian_mafia
gang_team_type = /datum/team/gang/italian_mob
/datum/team/gang/russian_mafia/rename_gangster(datum/mind/gangster, original_name, starter_gangster)
/datum/team/gang/italian_mob/rename_gangster(datum/mind/gangster, original_name, starter_gangster)
var/static/regex/last_name = new("\[^\\s-\]+$") //First word before whitespace or "-"
last_name.Find(original_name)
if(starter_gangster)