From dd9216037bd0d682d3f9cf32bec0d681ade76e96 Mon Sep 17 00:00:00 2001 From: Matt Atlas Date: Sat, 6 Jun 2020 20:58:31 +0200 Subject: [PATCH] Fixes flashbangs stunning people. (#9043) --- .../items/weapons/grenades/flashbang.dm | 5 +-- html/changelogs/mattatlas-flashbangs.yml | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+), 4 deletions(-) create mode 100644 html/changelogs/mattatlas-flashbangs.yml diff --git a/code/game/objects/items/weapons/grenades/flashbang.dm b/code/game/objects/items/weapons/grenades/flashbang.dm index fb5c30709b1..91a1a73653a 100644 --- a/code/game/objects/items/weapons/grenades/flashbang.dm +++ b/code/game/objects/items/weapons/grenades/flashbang.dm @@ -63,10 +63,7 @@ //Now applying sound if((get_dist(M, T) <= 2 || src.loc == M.loc || src.loc == M)) - if(ear_safety > 0) - M.Weaken(1) - else - M.Weaken(3) + if(!(ear_safety > 0)) if ((prob(14) || (M == src.loc && prob(70)))) M.ear_damage += rand(1, 10) else diff --git a/html/changelogs/mattatlas-flashbangs.yml b/html/changelogs/mattatlas-flashbangs.yml new file mode 100644 index 00000000000..338972ff3ba --- /dev/null +++ b/html/changelogs/mattatlas-flashbangs.yml @@ -0,0 +1,41 @@ +################################ +# 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: + - bugfix: "Added a changelog editing system that should cause fewer conflicts and more accurate timestamps."