Skip to content

Commit

Permalink
hm what
Browse files Browse the repository at this point in the history
  • Loading branch information
Moltijoe committed Sep 28, 2024
1 parent 95e28f5 commit 43dbbce
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
5 changes: 4 additions & 1 deletion code/__DEFINES/antagonists.dm
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,12 @@
/// Checks if the given mob is infected.
#define IS_INFECTED(mob) (mob?.mind?.has_antag_datum(/datum/antagonist/zombie))

/// Checks if the given mob is infected.
/// Checks if the given mob is a clockcultist.
#define IS_CLOCK_CULTIST(mob) (mob?.mind?.has_antag_datum(/datum/antagonist/clockcult))

/// Checks if the given mob is infected.
#define IS_CHANGELING(mob) (mob?.mind?.has_antag_datum(/datum/antagonist/changeling))

// Antag resource defines
#define ANTAG_RESOURCE_DARKSPAWN "psi"
#define ANTAG_RESOURCE_VAMPIRE "blood"
2 changes: 1 addition & 1 deletion code/datums/saymode.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
mode = MODE_CHANGELING

/datum/saymode/changeling/handle_message(mob/living/user, message, datum/language/language)
if(ismob(user.pulledby) && is_changeling(user.pulledby) && user.pulledby.grab_state >= GRAB_NECK)
if(ismob(user.pulledby) && IS_CHANGELING(user.pulledby) && user.pulledby.grab_state >= GRAB_NECK)
to_chat(user, span_warning("Our abilities are being dampened! We cannot speak through the hivemind!"))
return FALSE
switch(user.lingcheck())
Expand Down
3 changes: 0 additions & 3 deletions code/game/gamemodes/changeling/changeling.dm
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,6 @@ GLOBAL_VAR(changeling_team_objective_type)
of the Thing being sent to a station in this sector is highly likely. It may be in the guise of any crew member. Trust nobody - suspect everybody. Do not announce this to the crew, \
as paranoia may spread and inhibit workplace efficiency."

/proc/is_changeling(mob/M) //Usefull check changeling
return M?.mind?.has_antag_datum(/datum/antagonist/changeling)

/proc/changeling_transform(mob/living/carbon/human/user, datum/changelingprofile/chosen_prof)
var/datum/dna/chosen_dna = chosen_prof.dna
user.real_name = chosen_prof.name
Expand Down
2 changes: 1 addition & 1 deletion code/modules/antagonists/changeling/powers/headcrab.dm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
return
if(QDELETED(user)) // Yogs: Implies maybe that the user was already gibbed or something. Prevents a null mob loc later on
return
if(ismob(user.pulledby) && is_changeling(user.pulledby) && user.pulledby.grab_state >= GRAB_NECK)
if(ismob(user.pulledby) && IS_CHANGELING(user.pulledby) && user.pulledby.grab_state >= GRAB_NECK)
to_chat(user, span_warning("Our abilities are being dampened! We cannot use [src]!"))
return
..()
Expand Down

0 comments on commit 43dbbce

Please sign in to comment.