Vaurca Augments & Aut'akh Loadout Tweaks (#17193)

* i need CHROME

* reverts loadout point cost

* revert augment cost change

* Update code/modules/organs/subtypes/vaurca.dm

---------

Co-authored-by: Matt Atlas <mattiathebest2000@hotmail.it>
This commit is contained in:
RustingWithYou
2023-09-13 14:06:52 +00:00
committed by GitHub
co-authored by Matt Atlas
parent 0234d175e7
commit 575b1789b3
4 changed files with 175 additions and 2 deletions
+105
View File
@@ -425,3 +425,108 @@
/obj/item/organ/external/head/vaurca
limb_flags = ORGAN_CAN_AMPUTATE | ORGAN_CAN_MAIM
encased = null
//Beefier augments
/obj/item/organ/external/hand/right/vaurca/security
name = "security grasper"
action_button_name = "Activate Integrated Electroshock Weapon"
dislocated = -1
encased = "support frame"
robotize_type = PROSTHETIC_VAURCA
/obj/item/organ/external/hand/right/vaurca/security/refresh_action_button()
. = ..()
if(.)
action.button_icon_state = "baton"
if(action.button)
action.button.update_icon()
/obj/item/organ/external/hand/right/vaurca/security/attack_self(var/mob/user)
. = ..()
if(.)
if(owner.last_special > world.time)
to_chat(owner, "<span class='danger'>\The [src] is still recharging!</span>")
return
if(owner.stat || owner.paralysis || owner.stunned || owner.weakened)
to_chat(owner, "<span class='danger'>You can not use \the [src] in your current state!</span>")
return
if(is_broken())
to_chat(owner, "<span class='danger'>\The [src] is too damaged to be used!</span>")
return
if(is_bruised())
spark(get_turf(owner), 3)
var/obj/item/grab/G = owner.get_active_hand()
if(!istype(G))
to_chat(owner, "<span class='danger'>You must grab someone before trying to use your [src]!</span>")
return
if(owner.nutrition <= 150) //slightly more energy-efficient than aut'akh bc bugs are better at augments
to_chat(owner, "<span class='danger'>Your energy reserves are too low to use your [src]!</span>")
return
if(ishuman(G.affecting))
var/mob/living/carbon/human/H = G.affecting
var/target_zone = check_zone(owner.zone_sel.selecting)
owner.last_special = world.time + 100
owner.adjustNutritionLoss(50)
if(owner.a_intent == I_HURT)
H.electrocute_act(10, owner, def_zone = target_zone)
else
H.stun_effect_act(0, 50, target_zone, owner)
owner.visible_message("<span class='danger'>[H] has been prodded with [src] by [owner]!</span>")
playsound(get_turf(owner), 'sound/weapons/Egloves.ogg', 50, 1, -1)
/obj/item/organ/external/hand/right/vaurca/medical
name = "medical grasper"
action_button_name = "Activate Integrated Biological Analyser"
dislocated = -1
encased = "support frame"
robotize_type = PROSTHETIC_VAURCA
/obj/item/organ/external/hand/right/vaurca/medical/refresh_action_button()
. = ..()
if(.)
action.button_icon_state = "health"
if(action.button)
action.button.update_icon()
/obj/item/organ/external/hand/right/vaurca/medical/attack_self(var/mob/user)
. = ..()
if(.)
if(owner.last_special > world.time)
to_chat(owner, "<span class='danger'>\The [src] is still recharging!</span>")
return
if(owner.stat || owner.paralysis || owner.stunned || owner.weakened)
to_chat(owner, "<span class='danger'>You can not use \the [src] in your current state!</span>")
return
if(is_broken())
to_chat(owner, "<span class='danger'>\The [src] is too damaged to be used!</span>")
return
if(is_bruised())
spark(get_turf(owner), 3)
var/obj/item/grab/G = owner.get_active_hand()
if(!istype(G))
to_chat(owner, "<span class='danger'>You must grab someone before trying to analyze their health!</span>")
return
owner.last_special = world.time + 50
if(ishuman(G.affecting))
var/mob/living/carbon/human/H = G.affecting
health_scan_mob(H, owner)