Fixes the power biochip mentioning power gloves (#25916)

* Update click_override.dm

* also a comment

* gramor

* guh
This commit is contained in:
1080pCat
2024-06-23 08:43:22 +10:00
committed by GitHub
parent 068a9658b8
commit 13c052eb2b
+3 -3
View File
@@ -53,13 +53,13 @@
if(!P)
return
if(world.time < P.last_shocked + P.shock_delay)
to_chat(user, "<span class='warning'>The gloves are still recharging.</span>")
to_chat(user, "<span class='warning'>The powerchip is still recharging.</span>")
return FALSE
var/turf/T = get_turf(user)
var/obj/structure/cable/C = locate() in T
if(!P.unlimited_power)
if(!C || !istype(C))
to_chat(user, "<span class='warning'>There is no cable here to power the gloves.</span>")
to_chat(user, "<span class='warning'>There is no cable here to power the bio-chip.</span>")
return FALSE
var/turf/target_turf = get_turf(A)
if(get_dist(T, target_turf) > P.shock_range)
@@ -75,7 +75,7 @@
beam_from.Beam(target_atom, icon_state = "lightning[rand(1, 12)]", icon = 'icons/effects/effects.dmi', time = 6)
if(isliving(target_atom))
var/mob/living/L = target_atom
var/powergrid = C.get_available_power() //We want available power, so the station being conservative doesn't mess with glove / dark bundle users
var/powergrid = C.get_available_power() //We want available power, so the station being conservative doesn't mess with the power biochip / dark bundle users
if(user.a_intent == INTENT_DISARM)
add_attack_logs(user, L, "shocked with power bio-chip.")
L.apply_damage(60, STAMINA)