forked from yogstation13/Yogstation
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
104 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#define TRAIT_PSYCHOPATHIC "psychopathic" | ||
#define TRAIT_APATHETIC "apathetic" | ||
#define TRAIT_BADTOUCH "bad_touch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/datum/quirk/bad_touch | ||
name = "Bad Touch" | ||
desc = "You don't like hugs. You'd really prefer if people just left you alone." | ||
icon = "tg-bad-touch" | ||
mob_trait = TRAIT_BADTOUCH | ||
value = -1 | ||
gain_text = span_danger("You just want people to leave you alone.") | ||
lose_text = span_notice("You could use a big hug.") | ||
medical_record_text = "Patient has disdain for being touched. Potentially has undiagnosed haphephobia." | ||
mood_quirk = TRUE | ||
|
||
/datum/quirk/bad_touch/add(client/client_source) | ||
RegisterSignals(quirk_holder, list(COMSIG_LIVING_GET_PULLED, COMSIG_CARBON_HELP_ACT), PROC_REF(uncomfortable_touch)) | ||
|
||
/datum/quirk/bad_touch/remove() | ||
UnregisterSignal(quirk_holder, list(COMSIG_LIVING_GET_PULLED, COMSIG_CARBON_HELP_ACT)) | ||
|
||
/// Causes a negative moodlet to our quirk holder on signal | ||
/datum/quirk/bad_touch/proc/uncomfortable_touch(datum/source) | ||
SIGNAL_HANDLER | ||
|
||
if(quirk_holder.stat == DEAD) | ||
return | ||
|
||
new /obj/effect/temp_visual/annoyed(quirk_holder.loc) | ||
var/datum/component/mood/mob_mood = quirk_holder.GetComponent(/datum/component/mood) | ||
if(mob_mood.sanity <= SANITY_NEUTRAL) | ||
SEND_SIGNAL(quirk_holder, COMSIG_ADD_MOOD_EVENT, "bad_touch", /datum/mood_event/very_bad_touch) | ||
else | ||
SEND_SIGNAL(quirk_holder, COMSIG_ADD_MOOD_EVENT, "bad_touch", /datum/mood_event/bad_touch) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/datum/quirk/psychopathic | ||
name = "Psychopathic" | ||
desc = "You often hear to yourself: Hey, secy, how many animals have you killed as a child?" | ||
icon = "meh" | ||
value = 5 | ||
mob_trait = TRAIT_PSYCHOPATHIC | ||
mood_quirk = TRUE | ||
gain_text = span_danger("I don`t mind if they all die.") | ||
lose_text = span_notice("Okey, time to touch some grass.") | ||
medical_record_text = "The patient has a psychopathic personality disorder. It is normal for him to react socially distantly to certain events." | ||
|
||
/datum/quirk/psychopathic/add() | ||
var/datum/component/mood/mood = quirk_holder.GetComponent(/datum/component/mood) | ||
if(mood) | ||
mood.mood_modifier -= 0.4 | ||
|
||
/datum/quirk/psychopathic/remove() | ||
if(quirk_holder) | ||
var/datum/component/mood/mood = quirk_holder.GetComponent(/datum/component/mood) | ||
if(mood) | ||
mood.mood_modifier += 0.4 | ||
|
||
/datum/quirk/apathetic | ||
mob_trait = TRAIT_APATHETIC |
5 changes: 5 additions & 0 deletions
5
modular_dripstation/code/game/effects/temporary_visuals/misc.dm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
/obj/effect/temp_visual/annoyed | ||
name = "annoyed" | ||
icon = 'modular_dripstation/icons/effects/effects.dmi' | ||
icon_state = "annoyed" | ||
duration = 25 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters