From b0a334e1b817c78056257080759474b2d675a554 Mon Sep 17 00:00:00 2001 From: Snowy1237 Date: Mon, 15 Sep 2025 15:00:49 +0300 Subject: [PATCH] Makes the aut'akh calf override augment toggleable. (#21352) See title. May make this augment significantly stronger, allowing way more sprinting without adverse effects. I am open to feedback regarding this. --------- Co-authored-by: jonathan123700 Co-authored-by: Snowy1237 --- .../living/carbon/human/species/species.dm | 2 +- code/modules/organs/subtypes/autakh.dm | 18 ++++++ .../snowy1237-calfoverrideadditions.yml | 58 +++++++++++++++++++ 3 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 html/changelogs/snowy1237-calfoverrideadditions.yml diff --git a/code/modules/mob/living/carbon/human/species/species.dm b/code/modules/mob/living/carbon/human/species/species.dm index 8452a2be7fe..98a64c79271 100644 --- a/code/modules/mob/living/carbon/human/species/species.dm +++ b/code/modules/mob/living/carbon/human/species/species.dm @@ -678,7 +678,7 @@ return 0 var/obj/item/organ/internal/augment/calf_override/C = H.internal_organs_by_name[BP_AUG_CALF_OVERRIDE] - if(C && !C.is_broken()) + if(C && !C.is_broken() && C.online) cost = 0 if(!pre_move) C.do_run_act() diff --git a/code/modules/organs/subtypes/autakh.dm b/code/modules/organs/subtypes/autakh.dm index 573657ece5e..d0e0e063228 100644 --- a/code/modules/organs/subtypes/autakh.dm +++ b/code/modules/organs/subtypes/autakh.dm @@ -105,6 +105,24 @@ icon_state = "ams" organ_tag = BP_AUG_CALF_OVERRIDE parent_organ = BP_GROIN + action_button_icon = "ams" + action_button_name = "Activate Calf Override" + cooldown = 30 + var/online = FALSE + activable = TRUE + +/obj/item/organ/internal/augment/calf_override/attack_self(var/mob/user) + . = ..() + + if(!.) + return FALSE + + if(!online) + online = TRUE + to_chat(owner, SPAN_NOTICE("\The [src] activates!")) + else + online = FALSE + to_chat(owner, SPAN_NOTICE("\The [src] deactivates!")) /obj/item/organ/internal/augment/calf_override/proc/do_run_act() owner.apply_damage(1, DAMAGE_BRUTE, BP_GROIN, armor_pen = 100) diff --git a/html/changelogs/snowy1237-calfoverrideadditions.yml b/html/changelogs/snowy1237-calfoverrideadditions.yml new file mode 100644 index 00000000000..91916ca41d3 --- /dev/null +++ b/html/changelogs/snowy1237-calfoverrideadditions.yml @@ -0,0 +1,58 @@ +################################ +# 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: Snowy1237 + +# 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: + - rscadd: "Made the Aut'akh calf override augment toggleable."