From 1cd2835e1ba4ae03024eb1bdcc67d0cb017bd1ea Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 25 Feb 2020 14:27:40 -0500 Subject: [PATCH 1/2] Defibrilators can be charged in rechargers --- code/game/machinery/recharger.dm | 2 +- code/game/objects/items/devices/defib.dm | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/machinery/recharger.dm b/code/game/machinery/recharger.dm index b1fad2538c..d6b08f08c6 100644 --- a/code/game/machinery/recharger.dm +++ b/code/game/machinery/recharger.dm @@ -10,7 +10,7 @@ active_power_usage = 40000 //40 kW var/efficiency = 40000 //will provide the modified power rate when upgraded var/obj/item/charging = null - var/list/allowed_devices = list(/obj/item/weapon/gun/energy, /obj/item/weapon/melee/baton, /obj/item/modular_computer, /obj/item/weapon/computer_hardware/battery_module, /obj/item/weapon/cell, /obj/item/device/flashlight, /obj/item/device/electronic_assembly, /obj/item/weapon/weldingtool/electric, /obj/item/ammo_magazine/smart, /obj/item/device/flash) + var/list/allowed_devices = list(/obj/item/weapon/gun/energy, /obj/item/weapon/melee/baton, /obj/item/modular_computer, /obj/item/weapon/computer_hardware/battery_module, /obj/item/weapon/cell, /obj/item/device/flashlight, /obj/item/device/electronic_assembly, /obj/item/weapon/weldingtool/electric, /obj/item/ammo_magazine/smart, /obj/item/device/flash, /obj/item/device/defib_kit) var/icon_state_charged = "recharger2" var/icon_state_charging = "recharger1" var/icon_state_idle = "recharger0" //also when unpowered diff --git a/code/game/objects/items/devices/defib.dm b/code/game/objects/items/devices/defib.dm index b66c4a3776..2b55ae5c51 100644 --- a/code/game/objects/items/devices/defib.dm +++ b/code/game/objects/items/devices/defib.dm @@ -19,6 +19,9 @@ var/obj/item/weapon/shockpaddles/linked/paddles var/obj/item/weapon/cell/bcell = null +/obj/item/device/defib_kit/get_cell() + return bcell + /obj/item/device/defib_kit/New() //starts without a cell for rnd ..() if(ispath(paddles)) From 25e52ec1db1cbcaf0b58a80d4f80cf65424e8121 Mon Sep 17 00:00:00 2001 From: lemon Date: Wed, 26 Feb 2020 23:53:03 -0500 Subject: [PATCH 2/2] changelog --- html/changelogs/lorilili - defib.yml | 36 ++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 html/changelogs/lorilili - defib.yml diff --git a/html/changelogs/lorilili - defib.yml b/html/changelogs/lorilili - defib.yml new file mode 100644 index 0000000000..e9ec7bf5ac --- /dev/null +++ b/html/changelogs/lorilili - defib.yml @@ -0,0 +1,36 @@ +################################ +# 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 +################################# + +# Your name. +author: lorilili + +# 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: "Can now directly recharge defibs."