mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 15:17:01 +01:00
[NO GBP] Fixes cyborg existentialism upon encountering syndicate posters (#68913)
Renames proc and inverts return.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user