Cuts down on pain and halloss message spam, especially from Xenobio monkeys. (#14078)

This commit is contained in:
Matt Atlas
2022-05-29 12:51:14 +02:00
committed by GitHub
parent e6390cf490
commit f28ada9104
3 changed files with 47 additions and 3 deletions

View File

@@ -87,10 +87,11 @@
if(ismob(user))
var/mob/M = user
var/check_ghost_hearing = M.client ? GHOSTS_ALL_HEAR : ONLY_GHOSTS_IN_VIEW
if(message_type == AUDIBLE_MESSAGE)
M.audible_message(message = use_3p, self_message = use_1p, deaf_message = emote_message_impaired, hearing_distance = use_range)
M.audible_message(message = use_3p, self_message = use_1p, deaf_message = emote_message_impaired, hearing_distance = use_range, ghost_hearing = check_ghost_hearing)
else
M.visible_message(message = use_3p, self_message = use_1p, blind_message = emote_message_impaired, range = use_range)
M.visible_message(message = use_3p, self_message = use_1p, blind_message = emote_message_impaired, range = use_range, show_observers = FALSE)
do_extra(user, target)

View File

@@ -757,7 +757,7 @@
handle_hallucinations()
if(get_shock() >= species.total_health)
if(!stat)
if(!stat && !paralysis)
to_chat(src, "<span class='warning'>[species.halloss_message_self]</span>")
src.visible_message("<B>[src]</B> [species.halloss_message]")
Paralyse(10)

View File

@@ -0,0 +1,43 @@
################################
# Example Changelog File
#
# Note: This file, and files beginning with ".", and files that don't end in ".yml" will not be read. If you change this file, you will look really dumb.
#
# Your changelog will be merged with a master changelog. (New stuff added only, and only on the date entry for the day it was merged.)
# When it is, any changes listed below will disappear.
#
# Valid Prefixes:
# bugfix
# wip (For works in progress)
# tweak
# soundadd
# sounddel
# rscadd (general adding of nice things)
# rscdel (general deleting of nice things)
# imageadd
# imagedel
# maptweak
# spellcheck (typo fixes)
# experiment
# balance
# admin
# backend
# security
# refactor
#################################
# Your name.
author: MattAtlas
# Optional: Remove this file after generating master changelog. Useful for PR changelogs that won't get used again.
delete-after: True
# Any changes you've made. See valid prefix list above.
# INDENT WITH TWO SPACES. NOT TABS. SPACES.
# SCREW THIS UP AND IT WON'T WORK.
# Also, all entries are changed into a single [] after a master changelog generation. Just remove the brackets when you add new entries.
# Please surround your changes in double quotes ("), as certain characters otherwise screws up compiling. The quotes will not show up in the changelog.
changes:
- tweak: "Ghosts do not receive pain messages unless they are in range."
- tweak: "Ghosts do not receive halloss messages unless they are in range."
- tweak: "Halloss messages should now happen less often."