From 06e34908b321135e81a3be32c30e5d69390cf2cd Mon Sep 17 00:00:00 2001 From: Batrachophreno Date: Sun, 10 Aug 2025 04:09:24 -0400 Subject: [PATCH] Make the Supermatter MORE DANGEROUS (#21111) The Supermatter has a damage rate limiter to prevent extremely high temperatures from just shotgunning its integrity down to zero in one tick. That's totally fair. Doubles that maximum limited rate. Also reduces volume of delam sound by 25% because I'm a nice person. --------- Signed-off-by: Batrachophreno --- code/modules/supermatter/supermatter.dm | 6 +-- html/changelogs/Bat-Supermatter.yml | 59 +++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 3 deletions(-) create mode 100644 html/changelogs/Bat-Supermatter.yml diff --git a/code/modules/supermatter/supermatter.dm b/code/modules/supermatter/supermatter.dm index 11aa7ac9992..b8c0ee210bf 100644 --- a/code/modules/supermatter/supermatter.dm +++ b/code/modules/supermatter/supermatter.dm @@ -21,7 +21,7 @@ #define DECAY_FACTOR 700 //Affects how fast the supermatter power decays #define CRITICAL_TEMPERATURE 5000 //K #define CHARGING_FACTOR 0.05 -#define DAMAGE_RATE_LIMIT 2 //damage rate cap at power = 300, scales linearly with power +#define DAMAGE_RATE_LIMIT 4 //damage rate cap at power = 300, scales linearly with power #define SPACED_DAMAGE_FACTOR 0.5 //multiplier for damage taken in a vacuum, but on a tile. Used to prevent/configure near-instant explosions when vented //These would be what you would get at point blank, decreases with distance @@ -241,9 +241,9 @@ if(last_accent_sound < world.time && prob(20)) var/aggression = min(((damage / 800) * (power / 2500)), 1.0) * 100 if(damage >= 300) - playsound(src, /singleton/sound_category/supermatter_delam, max(50, aggression), FALSE, 10) + playsound(src, /singleton/sound_category/supermatter_delam, clamp(aggression, 50, 75), FALSE, 10) else - playsound(src, /singleton/sound_category/supermatter_calm, max(50, aggression), FALSE, 10) + playsound(src, /singleton/sound_category/supermatter_calm, clamp(aggression, 50, 75), FALSE, 10) var/next_sound = round((100 - aggression) * 5) last_accent_sound = world.time + max(SUPERMATTER_ACCENT_SOUND_MIN_COOLDOWN, next_sound) diff --git a/html/changelogs/Bat-Supermatter.yml b/html/changelogs/Bat-Supermatter.yml new file mode 100644 index 00000000000..f1bb756e850 --- /dev/null +++ b/html/changelogs/Bat-Supermatter.yml @@ -0,0 +1,59 @@ +################################ +# 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 +# - (fixes bugs) +# wip +# - (work in progress) +# qol +# - (quality of life) +# soundadd +# - (adds a sound) +# sounddel +# - (removes a sound) +# rscadd +# - (adds a feature) +# rscdel +# - (removes a feature) +# imageadd +# - (adds an image or sprite) +# imagedel +# - (removes an image or sprite) +# spellcheck +# - (fixes spelling or grammar) +# experiment +# - (experimental change) +# balance +# - (balance changes) +# code_imp +# - (misc internal code change) +# refactor +# - (refactors code) +# config +# - (makes a change to the config files) +# admin +# - (makes changes to administrator tools) +# server +# - (miscellaneous changes to server) +################################# + +# Your name. +author: Batrachophrenoboocosmomachia + +# 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, this gets changed to [] after reading. Just remove the brackets when you add new shit. +# Please surround your changes in double quotes ("). It works without them, but if you use certain characters it screws up compiling. The quotes will not show up in the changelog. +changes: + - balance: "Double SM maximum damage rate." + - qol: "Reduced maximum delamination sound volume from 100 to 75."