mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-27 23:14:18 +01:00
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 <gonatantsatskin@gmail.com> Co-authored-by: Snowy1237 <SnowyMountainside@gmail.com>
This commit is contained in:
co-authored by
jonathan123700
Snowy1237
parent
ec03e591d2
commit
b0a334e1b8
@@ -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()
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user