[NO GBP] Fixes cyborg existentialism upon encountering syndicate posters (#68913)

Renames proc and inverts return.
This commit is contained in:
Jacquerel
2022-08-01 16:32:17 -04:00
committed by GitHub
parent 923b6bfa7f
commit 3fb221e5e2
@@ -44,7 +44,7 @@
// If you're not conscious you're too busy or dead to look at propaganda
if (viewer.stat != CONSCIOUS)
return
if (was_demoralised(viewer))
if (!should_demoralise(viewer))
return
if (is_special_character(viewer))
@@ -60,17 +60,17 @@
SEND_SIGNAL(host, COMSIG_DEMORALISING_EVENT, viewer.mind)
/**
* Returns true if the viewer already has been given feelings, false if they haven't.
* Returns true if user is capable of experiencing moods and doesn't already have the one relevant to this datum, false otherwise.
*
* Arguments
* * viewer - Whoever just saw the parent.
*/
/datum/proximity_monitor/advanced/demoraliser/proc/was_demoralised(mob/living/viewer)
/datum/proximity_monitor/advanced/demoraliser/proc/should_demoralise(mob/living/viewer)
var/datum/component/mood/mood = viewer.GetComponent(/datum/component/mood)
if (!mood)
return FALSE
return mood.has_mood_of_category(moods.mood_category)
return !mood.has_mood_of_category(moods.mood_category)
/// Mood application categories for this objective
/// Used to reduce duplicate code for applying moods to players based on their state