From 883a0970805a558d55a0f5a2a2caf1f2d1c6e35c Mon Sep 17 00:00:00 2001 From: "Wowzewow (Wezzy)" <42310821+alsoandanswer@users.noreply.github.com> Date: Sun, 21 Mar 2021 06:30:47 +0800 Subject: [PATCH] Cigarette packing. (#10924) I don't know. Smokers do this, apparently. --- .../objects/items/weapons/cigs_lighters.dm | 6 ++- .../objects/items/weapons/storage/fancy.dm | 4 +- html/changelogs/cig_packing.yml | 41 +++++++++++++++++++ 3 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 html/changelogs/cig_packing.yml diff --git a/code/game/objects/items/weapons/cigs_lighters.dm b/code/game/objects/items/weapons/cigs_lighters.dm index 378a51a77d2..14f70bed2ca 100644 --- a/code/game/objects/items/weapons/cigs_lighters.dm +++ b/code/game/objects/items/weapons/cigs_lighters.dm @@ -355,10 +355,12 @@ CIGARETTE PACKETS ARE IN FANCY.DM to_chat(user, SPAN_NOTICE("[src] is full.")) /obj/item/clothing/mask/smokable/cigarette/attack_self(mob/user as mob) - if(lit == TRUE) - user.visible_message(SPAN_NOTICE("[user] calmly drops and treads on the lit [src], putting it out instantly.")) + if(lit) + user.visible_message(SPAN_NOTICE("[user] calmly drops and treads on the lit [src], putting it out instantly."), SPAN_NOTICE("You calmly drop and tread on the lit [src], putting it out instantly.")) playsound(src.loc, 'sound/items/cigs_lighters/cig_snuff.ogg', 50, 1) die(TRUE) + else // Cigarette packing. For compulsive smokers. + user.visible_message(SPAN_NOTICE("[user] taps \the [src] against their palm."), SPAN_NOTICE("You tap \the [src] against your palm.")) return ..() diff --git a/code/game/objects/items/weapons/storage/fancy.dm b/code/game/objects/items/weapons/storage/fancy.dm index ffe09af1f9e..1a710e4963e 100644 --- a/code/game/objects/items/weapons/storage/fancy.dm +++ b/code/game/objects/items/weapons/storage/fancy.dm @@ -303,8 +303,10 @@ reagents.trans_to_obj(W, (reagents.total_volume/contents.len)) user.equip_to_slot_if_possible(W, slot_wear_mask) reagents.maximum_volume = 15 * contents.len - user.visible_message("[user] casually pulls out a [icon_type] from \the [src] with their mouth.", range = 3) + user.visible_message(SPAN_NOTICE("[user] casually pulls out a [icon_type] from \the [src] with their mouth."), SPAN_NOTICE("You casually pull out a [icon_type] from \the [src] with your mouth."), range = 3) update_icon() + if(M == user && target_zone == BP_R_HAND || target_zone == BP_L_HAND) // Cig packing. Because obsessive smokers do it. + user.visible_message(SPAN_NOTICE("[user] taps \the [src] against their palm."), SPAN_NOTICE("You tap \the [src] against your palm.")) else ..() diff --git a/html/changelogs/cig_packing.yml b/html/changelogs/cig_packing.yml new file mode 100644 index 00000000000..c622b007643 --- /dev/null +++ b/html/changelogs/cig_packing.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: Wowzewow (Wezzy) + +# 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: + - rscadd: "You now have the ability to pack cigarettes. Do as you may."