Skip to content

Commit 8a7f93f

Browse files
authored
OD Fixes (#742)
1 parent 21a6d80 commit 8a7f93f

2 files changed

Lines changed: 11 additions & 14 deletions

File tree

code/modules/mob/living/silicon/ai/ai_actions/remote_power.dm

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
enable_text = span_notice("You prepare to power any APC you see.")
1515
disable_text = span_notice("You stop focusing on powering APCs.")
1616

17-
/datum/action/innate/ai/ranged/power_apc/do_ability(mob/living/caller, atom/clicked_on)
17+
/datum/action/innate/ai/ranged/power_apc/do_ability(mob/living/clicker, atom/clicked_on)
1818

19-
if (!isAI(caller))
19+
if (!isAI(clicker))
2020
return FALSE
21-
var/mob/living/silicon/ai/ai_caller = caller
21+
var/mob/living/silicon/ai/ai_caller = clicker
2222

23-
if(caller.incapacitated()) // Non-module change
24-
unset_ranged_ability(caller)
23+
if(ai_caller.incapacitated()) // Non-module change
24+
unset_ranged_ability(ai_caller)
2525
return FALSE
2626

2727
if(!isapc(clicked_on))
@@ -36,6 +36,3 @@
3636
var/obj/item/stock_parts/power_store/cell = apc.get_cell()
3737
cell.give(STANDARD_BATTERY_CHARGE)
3838
ai_caller.battery -= 50
39-
40-
41-

code/modules/mob/living/silicon/robot/robot.dm

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -360,14 +360,14 @@
360360
add_overlay(eye_lights)
361361
return ..()
362362

363-
/mob/living/silicon/robot/proc/self_destruct(mob/usr)
363+
/mob/living/silicon/robot/proc/self_destruct(mob/user)
364364
var/turf/groundzero = get_turf(src)
365-
message_admins(span_notice("[ADMIN_LOOKUPFLW(usr)] detonated [key_name_admin(src, client)] at [ADMIN_VERBOSEJMP(groundzero)]!"))
366-
usr.log_message("detonated [key_name(src)]!", LOG_ATTACK)
367-
log_message("was detonated by [key_name(usr)]!", LOG_ATTACK, log_globally = FALSE)
365+
message_admins(span_notice("[ADMIN_LOOKUPFLW(user)] detonated [key_name_admin(src, client)] at [ADMIN_VERBOSEJMP(groundzero)]!"))
366+
user.log_message("detonated [key_name(src)]!", LOG_ATTACK)
367+
log_message("was detonated by [key_name(user)]!", LOG_ATTACK, log_globally = FALSE)
368368

369-
log_combat(usr, src, "detonated cyborg")
370-
log_silicon("CYBORG: [key_name(src)] has been detonated by [key_name(usr)].")
369+
log_combat(user, src, "detonated cyborg")
370+
log_silicon("CYBORG: [key_name(src)] has been detonated by [key_name(user)].")
371371
if(connected_ai)
372372
to_chat(connected_ai, "<br><br>[span_alert("ALERT - Cyborg detonation detected: [name]")]<br>")
373373

0 commit comments

Comments
 (0)