From fbfd1b3dd5d88fd30db0c25b5b68bea8a38a5a05 Mon Sep 17 00:00:00 2001 From: dylanstrategie Date: Thu, 19 Nov 2015 02:57:02 +0100 Subject: [PATCH] Xenomorphs can now slash atmos canisters --- code/game/machinery/atmoalter/canister.dm | 12 +++++++++++- html/changelogs/Dylanstrategie_Aliuminium.yml | 4 ++++ 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/Dylanstrategie_Aliuminium.yml diff --git a/code/game/machinery/atmoalter/canister.dm b/code/game/machinery/atmoalter/canister.dm index 594219db128..2864347eed2 100644 --- a/code/game/machinery/atmoalter/canister.dm +++ b/code/game/machinery/atmoalter/canister.dm @@ -171,7 +171,7 @@ playsound(get_turf(src), 'sound/effects/spray.ogg', 10, 1, -3) src.density = 0 update_icon() - investigation_log(I_ATMOS, "was destoyed by heat/gunfire.") + investigation_log(I_ATMOS, "was destoyed by excessive damage.") if (src.holding) src.holding.loc = src.loc @@ -295,6 +295,16 @@ /obj/machinery/portable_atmospherics/canister/attack_hand(var/mob/user as mob) return src.ui_interact(user) +/obj/machinery/portable_atmospherics/canister/attack_alien(var/mob/living/carbon/alien/user as mob) + src.add_hiddenprint(user) + health -= rand(15, 30) + user.visible_message("\The [user] slashes away at \the [src]!", \ + "You slash away at \the [src]!") + user.delayNextAttack(10) //Hold on there amigo + investigation_log(I_ATMOS, "was slashed at by alien [key_name(user)]") + playsound(get_turf(src), 'sound/weapons/slice.ogg', 25, 1, -1) + healthcheck() + /obj/machinery/portable_atmospherics/canister/ui_interact(mob/user, ui_key = "main", var/datum/nanoui/ui = null) if (src.destroyed || gcDestroyed || !get_turf(src)) if(!ui) diff --git a/html/changelogs/Dylanstrategie_Aliuminium.yml b/html/changelogs/Dylanstrategie_Aliuminium.yml new file mode 100644 index 00000000000..9a188a3ec32 --- /dev/null +++ b/html/changelogs/Dylanstrategie_Aliuminium.yml @@ -0,0 +1,4 @@ +author: Dylanstrategie +delete-after: True +changes: + - rscadd: Xenomorphs can now slash atmospheric canisters open