From 7d41bae9a1469dc7d9f34230d49ce1182543f1b3 Mon Sep 17 00:00:00 2001 From: Matt Atlas Date: Sun, 7 Jun 2020 13:04:06 +0200 Subject: [PATCH] Fix changeling sting forensics + laser AB (#9057) --- .../changeling/implements/powers/suck.dm | 2 +- code/modules/organs/organ_external.dm | 2 +- html/changelogs/mattatlas-suuuuck.yml | 42 +++++++++++++++++++ 3 files changed, 44 insertions(+), 2 deletions(-) create mode 100644 html/changelogs/mattatlas-suuuuck.yml diff --git a/code/game/gamemodes/changeling/implements/powers/suck.dm b/code/game/gamemodes/changeling/implements/powers/suck.dm index f1711d8fffd..fad4821892e 100644 --- a/code/game/gamemodes/changeling/implements/powers/suck.dm +++ b/code/game/gamemodes/changeling/implements/powers/suck.dm @@ -50,7 +50,7 @@ to_chat(T, "You feel a sharp stabbing pain!") playsound(get_turf(src), 'sound/effects/lingstabs.ogg', 50, 1) var/obj/item/organ/external/affecting = T.get_organ(src.zone_sel.selecting) - if(affecting.take_damage(39, 0, 1, 0, "massive puncture wound")) + if(affecting.take_damage(40, 0, damage_flags = DAM_SHARP|DAM_EDGE, used_weapon = "massive puncture wound")) T.UpdateDamageIcon() feedback_add_details("changeling_powers","A[stage]") diff --git a/code/modules/organs/organ_external.dm b/code/modules/organs/organ_external.dm index f9b19fc7c6e..7824dea7097 100644 --- a/code/modules/organs/organ_external.dm +++ b/code/modules/organs/organ_external.dm @@ -458,7 +458,7 @@ This function completely restores a damaged organ to perfect condition. //moved this before the open_wound check so that having many small wounds for example doesn't somehow protect you from taking internal damage (because of the return) //Possibly trigger an internal wound, too. var/local_damage = brute_dam + burn_dam + damage - if(damage > 15 && type != BURN && local_damage > 30 && !(status & ORGAN_ROBOT)) + if(damage > 15 && !(type in list(BURN, LASER)) && local_damage > 30 && !(status & ORGAN_ROBOT)) var/internal_damage if(prob(damage) && sever_artery()) internal_damage = TRUE diff --git a/html/changelogs/mattatlas-suuuuck.yml b/html/changelogs/mattatlas-suuuuck.yml new file mode 100644 index 00000000000..c2498a63379 --- /dev/null +++ b/html/changelogs/mattatlas-suuuuck.yml @@ -0,0 +1,42 @@ +################################ +# 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: "Changeling suck once again shows a forensic result." + - bugfix: "Lasers no longer cause arterial bleeding."