mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 04:57:57 +01:00
[MIRROR] Sorts the traitor panel (#6141)
* Sorts the traitor panel (#59489) * Sorts the traitor panel Co-authored-by: tralezab <40974010+tralezab@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/**
|
||||
* ## Abductees
|
||||
*
|
||||
* Abductees are created by being operated on by abductors. They get some instructions about not
|
||||
* remembering the abduction, plus some random weird objectives for them to act crazy with.
|
||||
*/
|
||||
/datum/antagonist/abductee
|
||||
name = "Abductee"
|
||||
roundend_category = "abductees"
|
||||
antagpanel_category = "Other"
|
||||
antag_hud_type = ANTAG_HUD_ABDUCTOR
|
||||
antag_hud_name = "abductee"
|
||||
|
||||
/datum/antagonist/abductee/on_gain()
|
||||
give_objective()
|
||||
. = ..()
|
||||
|
||||
/datum/antagonist/abductee/greet()
|
||||
to_chat(owner, "<span class='warning'><b>Your mind snaps!</b></span>")
|
||||
to_chat(owner, "<big><span class='warning'><b>You can't remember how you got here...</b></span></big>")
|
||||
owner.announce_objectives()
|
||||
|
||||
/datum/antagonist/abductee/proc/give_objective()
|
||||
var/mob/living/carbon/human/H = owner.current
|
||||
if(istype(H))
|
||||
H.gain_trauma_type(BRAIN_TRAUMA_MILD, TRAUMA_RESILIENCE_LOBOTOMY)
|
||||
var/objtype = (prob(75) ? /datum/objective/abductee/random : pick(subtypesof(/datum/objective/abductee/) - /datum/objective/abductee/random))
|
||||
var/datum/objective/abductee/O = new objtype()
|
||||
objectives += O
|
||||
|
||||
/datum/antagonist/abductee/apply_innate_effects(mob/living/mob_override)
|
||||
var/mob/living/M = mob_override || owner.current
|
||||
add_antag_hud(antag_hud_type, antag_hud_name, M)
|
||||
|
||||
/datum/antagonist/abductee/remove_innate_effects(mob/living/mob_override)
|
||||
var/mob/living/M = mob_override || owner.current
|
||||
remove_antag_hud(antag_hud_type, M)
|
||||
@@ -166,39 +166,6 @@ GLOBAL_LIST_INIT(possible_abductor_names, list("Alpha","Beta","Gamma","Delta","E
|
||||
|
||||
return "<div class='panel redborder'>[result.Join("<br>")]</div>"
|
||||
|
||||
/datum/antagonist/abductee
|
||||
name = "Abductee"
|
||||
roundend_category = "abductees"
|
||||
antagpanel_category = "Abductee"
|
||||
antag_hud_type = ANTAG_HUD_ABDUCTOR
|
||||
antag_hud_name = "abductee"
|
||||
|
||||
/datum/antagonist/abductee/on_gain()
|
||||
give_objective()
|
||||
. = ..()
|
||||
|
||||
/datum/antagonist/abductee/greet()
|
||||
to_chat(owner, "<span class='warning'><b>Your mind snaps!</b></span>")
|
||||
to_chat(owner, "<big><span class='warning'><b>You can't remember how you got here...</b></span></big>")
|
||||
owner.announce_objectives()
|
||||
|
||||
/datum/antagonist/abductee/proc/give_objective()
|
||||
var/mob/living/carbon/human/H = owner.current
|
||||
if(istype(H))
|
||||
H.gain_trauma_type(BRAIN_TRAUMA_MILD, TRAUMA_RESILIENCE_LOBOTOMY)
|
||||
var/objtype = (prob(75) ? /datum/objective/abductee/random : pick(subtypesof(/datum/objective/abductee/) - /datum/objective/abductee/random))
|
||||
var/datum/objective/abductee/O = new objtype()
|
||||
objectives += O
|
||||
|
||||
/datum/antagonist/abductee/apply_innate_effects(mob/living/mob_override)
|
||||
var/mob/living/M = mob_override || owner.current
|
||||
add_antag_hud(antag_hud_type, antag_hud_name, M)
|
||||
|
||||
/datum/antagonist/abductee/remove_innate_effects(mob/living/mob_override)
|
||||
var/mob/living/M = mob_override || owner.current
|
||||
remove_antag_hud(antag_hud_type, M)
|
||||
|
||||
|
||||
// LANDMARKS
|
||||
/obj/effect/landmark/abductor
|
||||
var/team_number = 1
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/datum/antagonist/blob
|
||||
name = "Blob"
|
||||
roundend_category = "blobs"
|
||||
antagpanel_category = "Blob"
|
||||
antagpanel_category = "Biohazards"
|
||||
show_to_ghosts = TRUE
|
||||
job_rank = ROLE_BLOB
|
||||
|
||||
|
||||
@@ -682,12 +682,6 @@
|
||||
newprofile.profile_snapshot = profile_snapshot
|
||||
newprofile.id_icon = id_icon
|
||||
|
||||
/datum/antagonist/changeling/xenobio
|
||||
name = "Xenobio Changeling"
|
||||
give_objectives = FALSE
|
||||
show_in_roundend = FALSE //These are here for admin tracking purposes only
|
||||
you_are_greet = FALSE
|
||||
|
||||
/datum/antagonist/changeling/roundend_report()
|
||||
var/list/parts = list()
|
||||
|
||||
@@ -717,5 +711,3 @@
|
||||
|
||||
return parts.Join("<br>")
|
||||
|
||||
/datum/antagonist/changeling/xenobio/antag_listing_name()
|
||||
return ..() + "(Xenobio)"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/datum/antagonist/disease
|
||||
name = "Sentient Disease"
|
||||
roundend_category = "diseases"
|
||||
antagpanel_category = "Disease"
|
||||
antagpanel_category = "Biohazards"
|
||||
show_to_ghosts = TRUE
|
||||
var/disease_name = ""
|
||||
|
||||
|
||||
@@ -242,6 +242,7 @@
|
||||
nuke_team.memorized_code = null
|
||||
|
||||
/datum/antagonist/nukeop/reinforcement
|
||||
show_in_antagpanel = FALSE
|
||||
send_to_spawnpoint = FALSE
|
||||
nukeop_outfit = /datum/outfit/syndicate/no_crystals
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name = "Space Pirate"
|
||||
job_rank = ROLE_TRAITOR
|
||||
roundend_category = "space pirates"
|
||||
antagpanel_category = "Pirate"
|
||||
show_in_antagpanel = FALSE
|
||||
show_to_ghosts = TRUE
|
||||
var/datum/team/pirate/crew
|
||||
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
/**
|
||||
* ## Imps
|
||||
*
|
||||
* Imps used to be summoned by a devil ascending to their final form, but now they're just
|
||||
* kinda sitting in limbo... Well, whatever! They're kinda cool anyways!
|
||||
*/
|
||||
/datum/antagonist/imp
|
||||
name = "Imp"
|
||||
show_in_antagpanel = FALSE
|
||||
show_in_roundend = FALSE
|
||||
|
||||
/datum/antagonist/imp/on_gain()
|
||||
. = ..()
|
||||
give_objectives()
|
||||
|
||||
/datum/antagonist/imp/proc/give_objectives()
|
||||
var/datum/objective/newobjective = new
|
||||
newobjective.explanation_text = "Try to get a promotion to a higher devilish rank."
|
||||
newobjective.owner = owner
|
||||
objectives += newobjective
|
||||
@@ -44,21 +44,6 @@
|
||||
Though you are not obligated to help, perhaps by aiding a higher ranking devil, you might just get a promotion. However, you are incapable \
|
||||
of intentionally harming a fellow devil.</B>"
|
||||
|
||||
/datum/antagonist/imp
|
||||
name = "Imp"
|
||||
antagpanel_category = "Other"
|
||||
show_in_roundend = FALSE
|
||||
|
||||
/datum/antagonist/imp/on_gain()
|
||||
. = ..()
|
||||
give_objectives()
|
||||
|
||||
/datum/antagonist/imp/proc/give_objectives()
|
||||
var/datum/objective/newobjective = new
|
||||
newobjective.explanation_text = "Try to get a promotion to a higher devilish rank."
|
||||
newobjective.owner = owner
|
||||
objectives += newobjective
|
||||
|
||||
//////////////////The Man Behind The Slaughter
|
||||
|
||||
/mob/living/simple_animal/hostile/imp/slaughter
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
/datum/antagonist/traitor/internal_affairs
|
||||
name = "Internal Affairs Agent"
|
||||
employer = "Nanotrasen"
|
||||
antagpanel_category = "IAA"
|
||||
|
||||
var/special_role = "internal affairs agent"
|
||||
var/syndicate = FALSE
|
||||
|
||||
@@ -234,6 +234,7 @@
|
||||
//Random event wizard
|
||||
/datum/antagonist/wizard/apprentice/imposter
|
||||
name = "Wizard Imposter"
|
||||
show_in_antagpanel = FALSE
|
||||
allow_rename = FALSE
|
||||
move_to_lair = FALSE
|
||||
|
||||
@@ -266,6 +267,7 @@
|
||||
|
||||
/datum/antagonist/wizard/academy
|
||||
name = "Academy Teacher"
|
||||
show_in_antagpanel = FALSE
|
||||
outfit_type = /datum/outfit/wizard/academy
|
||||
move_to_lair = FALSE
|
||||
|
||||
|
||||
@@ -78,7 +78,7 @@
|
||||
origin.transfer_to(M)
|
||||
var/datum/antagonist/changeling/C = origin.has_antag_datum(/datum/antagonist/changeling)
|
||||
if(!C)
|
||||
C = origin.add_antag_datum(/datum/antagonist/changeling/xenobio)
|
||||
C = origin.add_antag_datum(/datum/antagonist/changeling)
|
||||
if(C.can_absorb_dna(owner))
|
||||
C.add_new_profile(owner)
|
||||
|
||||
|
||||
@@ -1659,6 +1659,7 @@
|
||||
#include "code\modules\antagonists\_common\antag_team.dm"
|
||||
#include "code\modules\antagonists\abductor\abductor.dm"
|
||||
#include "code\modules\antagonists\abductor\ice_abductor.dm"
|
||||
#include "code\modules\antagonists\abductor\abductee\abductee.dm"
|
||||
#include "code\modules\antagonists\abductor\abductee\abductee_objectives.dm"
|
||||
#include "code\modules\antagonists\abductor\equipment\abduction_gear.dm"
|
||||
#include "code\modules\antagonists\abductor\equipment\abduction_outfits.dm"
|
||||
@@ -1808,6 +1809,7 @@
|
||||
#include "code\modules\antagonists\revolution\revolution.dm"
|
||||
#include "code\modules\antagonists\santa\santa.dm"
|
||||
#include "code\modules\antagonists\separatist\separatist.dm"
|
||||
#include "code\modules\antagonists\slaughter\imp_antag.dm"
|
||||
#include "code\modules\antagonists\slaughter\slaughter.dm"
|
||||
#include "code\modules\antagonists\slaughter\slaughter_antag.dm"
|
||||
#include "code\modules\antagonists\slaughter\slaughterevent.dm"
|
||||
|
||||
Reference in New Issue
Block a user