From eadc11597a13af79f9cf80349ca15a5c4544ec4e Mon Sep 17 00:00:00 2001 From: Fluffy <65877598+FluffyGhoster@users.noreply.github.com> Date: Sun, 24 Mar 2024 15:03:56 +0100 Subject: [PATCH] Fixed implantpads runtiming if a case is not present (#18729) * Atomization * sdaf --------- Co-authored-by: FluffyGhost --- .../items/weapons/implants/implantpad.dm | 4 +- .../FluffyGhost-fixedimplantpadruntiming.yml | 41 +++++++++++++++++++ 2 files changed, 43 insertions(+), 2 deletions(-) create mode 100644 html/changelogs/FluffyGhost-fixedimplantpadruntiming.yml diff --git a/code/game/objects/items/weapons/implants/implantpad.dm b/code/game/objects/items/weapons/implants/implantpad.dm index 61a19c49a12..27754764dfb 100644 --- a/code/game/objects/items/weapons/implants/implantpad.dm +++ b/code/game/objects/items/weapons/implants/implantpad.dm @@ -14,7 +14,7 @@ /obj/item/implantpad/update_icon() cut_overlays() icon_state = "implantpad-[case ? "1" : "0"]" - if(case.imp) + if(case?.imp) var/obj/item/implant/caseimplant = case.imp var/implant_overlay_icon_state = "implantstorage_[caseimplant.implant_icon]" var/mutable_appearance/implant_case_implant_overlay = mutable_appearance(icon, implant_overlay_icon_state) @@ -44,7 +44,7 @@ ..() /obj/item/implantpad/attack_self(mob/user) - if(case.imp) + if(case?.imp) case.imp.interact(user) else to_chat(user, SPAN_WARNING("There's no implant loaded in \the [src]!")) diff --git a/html/changelogs/FluffyGhost-fixedimplantpadruntiming.yml b/html/changelogs/FluffyGhost-fixedimplantpadruntiming.yml new file mode 100644 index 00000000000..02a2a44b239 --- /dev/null +++ b/html/changelogs/FluffyGhost-fixedimplantpadruntiming.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: FluffyGhost + +# 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: "Fixed implantpads runtiming if a case is not present."