Skip to content

Commit

Permalink
fix most antags not being counted at all
Browse files Browse the repository at this point in the history
  • Loading branch information
Absolucy committed Sep 21, 2024
1 parent 0f43f48 commit fe6d53c
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 22 deletions.
8 changes: 5 additions & 3 deletions code/__DEFINES/antagonists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -342,11 +342,13 @@ GLOBAL_LIST_INIT(human_invader_antagonists, list(
#define HUNTER_PACK_PSYKER "Psyker Shikaris"

// This flag disables certain checks that presume antagonist datums mean 'baddie'.
#define FLAG_FAKE_ANTAG (1 << 0)
#define FLAG_FAKE_ANTAG (1 << 0)
/// monkestation addition: Whether the antagonist can see exploitable info on people they examine.
#define FLAG_CAN_SEE_EXPOITABLE_INFO (1 << 1)
// monkestation addition: The storyteller will ignore this antag datum as counting against the antag cap.
#define FLAG_ANTAG_CAP_IGNORE (1 << 1)
#define FLAG_ANTAG_CAP_IGNORE (1 << 2)
// monkestation addition: The storyteller will count everyone on this antag's team as a singular antag instead.
#define FLAG_ANTAG_CAP_TEAM (1 << 2)
#define FLAG_ANTAG_CAP_TEAM (1 << 3)

#define FREEDOM_IMPLANT_CHARGES 4

Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/_common/antag_datum.dm
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ GLOBAL_LIST_EMPTY(antagonists)
/// The typepath for the outfit to show in the preview for the preferences menu.
var/preview_outfit
/// Flags for antags to turn on or off and check!
var/antag_flags = NONE
var/antag_flags = FLAG_CAN_SEE_EXPOITABLE_INFO // monkestation edit: allow antags to see exploitable info.
/// If true, this antagonist can assign themself a new objective
var/can_assign_self_objectives = FALSE
/// Default to fill in when entering a custom objective.
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/abductor/abductor.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
show_in_antagpanel = FALSE //should only show subtypes
show_to_ghosts = TRUE
suicide_cry = "FOR THE MOTHERSHIP!!" // They can't even talk but y'know
antag_flags = FLAG_ANTAG_CAP_TEAM // monkestation addition
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_TEAM // monkestation addition
var/datum/team/abductor_team/team
var/sub_role
var/outfit
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/brother/brother.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
ui_name = "AntagInfoBrother"
suicide_cry = "FOR MY BROTHER!!"
antag_moodlet = /datum/mood_event/focused
antag_flags = FLAG_ANTAG_CAP_TEAM // monkestation addition
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_TEAM // monkestation addition
VAR_PRIVATE
datum/team/brother_team/team

Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/changeling/fallen_changeling.dm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
job_rank = ROLE_CHANGELING
antag_moodlet = /datum/mood_event/fallen_changeling
antag_hud_name = "changeling"
antag_flags = FLAG_ANTAG_CAP_IGNORE // monkestation addition
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE // monkestation addition

/datum/mood_event/fallen_changeling
description = "My powers! Where are my powers?!"
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/heretic/heretic_monsters.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
antag_hud_name = "heretic_beast"
suicide_cry = "MY MASTER SMILES UPON ME!!"
show_in_antagpanel = FALSE
antag_flags = FLAG_ANTAG_CAP_IGNORE // monkestation addition
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE // monkestation addition
/// Our master (a heretic)'s mind.
var/datum/mind/master

Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/magic_servant/servant.dm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
show_in_roundend = FALSE
show_in_antagpanel = FALSE
show_name_in_check_antagonists = TRUE
antag_flags = FLAG_ANTAG_CAP_IGNORE // monkestation addition
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE // monkestation addition

/datum/antagonist/magic_servant/proc/setup_master(mob/M)
var/datum/objective/O = new("Serve [M.real_name].")
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/pirate/pirate.dm
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
show_to_ghosts = TRUE
suicide_cry = "FOR ME MATEYS!!"
hijack_speed = 2 // That is without doubt the worst pirate I have ever seen.
antag_flags = FLAG_ANTAG_CAP_TEAM // monkestation addition
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_TEAM // monkestation addition
var/datum/team/pirate/crew

/datum/antagonist/pirate/greet()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
name = "\improper Enemy of the Revolution"
show_in_antagpanel = FALSE
suicide_cry = "FOR NANOTRASEN, NOW AND FOREVER!!"
antag_flags = FLAG_ANTAG_CAP_IGNORE // monkestation addition
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE // monkestation addition

/datum/antagonist/enemy_of_the_revolution/forge_objectives()
var/datum/objective/survive/survive = new
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/wishgranter/wishgranter.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
show_name_in_check_antagonists = TRUE
hijack_speed = 2 //You literally are here to do nothing else. Might as well be fast about it.
suicide_cry = "HAHAHAHAHA!!"
antag_flags = FLAG_ANTAG_CAP_IGNORE // monkestation addition
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE // monkestation addition

/datum/antagonist/wishgranter/forge_objectives()
var/datum/objective/hijack/hijack = new
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/wizard/wizard.dm
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ GLOBAL_LIST_EMPTY(wizard_spellbook_purchases_by_key)
antag_hud_name = "apprentice"
show_in_roundend = FALSE
show_name_in_check_antagonists = TRUE
antag_flags = FLAG_ANTAG_CAP_IGNORE // monkestation addition
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE // monkestation addition
/// The wizard team this wizard minion is part of.
var/datum/team/wizard/wiz_team

Expand Down
2 changes: 0 additions & 2 deletions monkestation/code/__DEFINES/antag_defines.dm

This file was deleted.

2 changes: 0 additions & 2 deletions monkestation/code/modules/antagonists/_common/antag_datum.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
/datum/antagonist
/// Allows antags to check exploitable info
antag_flags = FLAG_CAN_SEE_EXPOITABLE_INFO
///The list of keys that are valid to see our antag hud/of huds we can see
var/list/hud_keys
/// If this antagonist should be removed from the crew manifest upon gain.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@

/datum/antagonist/clock_cultist/eminence
name = "Eminence"
antag_flags = FLAG_ANTAG_CAP_IGNORE
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE
give_slab = FALSE
antag_moodlet = null
communicate = null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
antagpanel_category = "Evil Clones"
show_name_in_check_antagonists = TRUE
show_to_ghosts = TRUE
antag_flags = FLAG_ANTAG_CAP_IGNORE
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE

/datum/antagonist/evil_clone/greet()
. = ..()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
show_in_roundend = FALSE
job_rank = ROLE_BLOODSUCKER
antag_hud_name = "bloodsucker"
antag_flags = FLAG_ANTAG_CAP_IGNORE
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE

/obj/item/soulstone/bloodsucker
theme = THEME_WIZARD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
roundend_category = "vassals"
antagpanel_category = "Bloodsucker"
job_rank = ROLE_BLOODSUCKER
antag_flags = FLAG_ANTAG_CAP_IGNORE
antag_flags = parent_type::antag_flags | FLAG_ANTAG_CAP_IGNORE
antag_hud_name = "vassal"
show_in_roundend = FALSE
hud_icon = 'monkestation/icons/bloodsuckers/bloodsucker_icons.dmi'
Expand Down
1 change: 0 additions & 1 deletion tgstation.dme
Original file line number Diff line number Diff line change
Expand Up @@ -5790,7 +5790,6 @@
#include "interface\fonts\tiny_unicode.dm"
#include "interface\fonts\vcr_osd_mono.dm"
#include "monkestation\code\__DEFINES\_module_defines.dm"
#include "monkestation\code\__DEFINES\antag_defines.dm"
#include "monkestation\code\__DEFINES\projectile.dm"
#include "monkestation\code\__DEFINES\signals.dm"
#include "monkestation\code\__HELPERS\_lists.dm"
Expand Down

0 comments on commit fe6d53c

Please sign in to comment.