diff --git a/code/game/objects/items/weapons/paint.dm b/code/game/objects/items/weapons/paint.dm index a1744f81d8d..62a68aec82b 100644 --- a/code/game/objects/items/weapons/paint.dm +++ b/code/game/objects/items/weapons/paint.dm @@ -14,6 +14,7 @@ volume = 60 unacidable = 0 flags = OPENCONTAINER + no_shatter = TRUE var/paint_reagent = null //name of the reagent responsible for colouring the paint var/paint_type = null //used for colouring detective technicolor coat and hat diff --git a/code/modules/reagents/reagent_containers/glass.dm b/code/modules/reagents/reagent_containers/glass.dm index e6f3974ae72..52bf86967f6 100644 --- a/code/modules/reagents/reagent_containers/glass.dm +++ b/code/modules/reagents/reagent_containers/glass.dm @@ -15,7 +15,7 @@ accuracy = 0.1 w_class = 2 flags = OPENCONTAINER - var/fragile = 1 // most glassware is super fragile + var/fragile = TRUE // most glassware is super fragile var/no_shatter = FALSE //does this container shatter? unacidable = 1 //glass doesn't dissolve in acid drop_sound = 'sound/items/drop/bottle.ogg' @@ -60,7 +60,8 @@ /obj/item/reagent_containers/glass/proc/shatter(var/mob/user) if(reagents.total_volume) reagents.splash(src.loc, reagents.total_volume) // splashes the mob holding it or the turf it's on - audible_message("\The [src] shatters with a resounding crash!", "\The [src] breaks.") + audible_message(span("warning", "\The [src] shatters with a resounding crash!"), span("warning", "\The [src] breaks.")) + playsound(src, 'sound/effects/glass_break1.ogg', 30) new /obj/item/material/shard(loc, "glass") qdel(src) @@ -78,7 +79,7 @@ update_name_label() return . = ..() // in the case of nitroglycerin, explode BEFORE it shatters - if(!(W.flags & NOBLUDGEON) && fragile && (W.force > fragile)) + if(!(W.flags & NOBLUDGEON) && fragile && (W.force > fragile) && no_shatter) shatter() return @@ -274,7 +275,7 @@ to_chat(user, "You drink heavily from \the [src].") -obj/item/reagent_containers/glass/bucket/wood +/obj/item/reagent_containers/glass/bucket/wood desc = "An old wooden bucket." name = "wooden bucket" icon = 'icons/obj/janitor.dmi' diff --git a/html/changelogs/mattatlas-shattering.yml b/html/changelogs/mattatlas-shattering.yml new file mode 100644 index 00000000000..b598846867c --- /dev/null +++ b/html/changelogs/mattatlas-shattering.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: 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: "Fixes things such as dry rags and buckets shattering once and for all."