Skip to content

Commit

Permalink
reg_name
Browse files Browse the repository at this point in the history
  • Loading branch information
BeebBeebBoob committed Dec 27, 2024
1 parent d3995fa commit db2da31
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/game/machinery/computer/law.dm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

var/delay = 20 SECONDS
var/timer_id = null
var/reg_name = null

light_color = LIGHT_COLOR_WHITE
light_range_on = 2
Expand Down Expand Up @@ -124,7 +125,7 @@

/obj/machinery/computer/aiupload/proc/finish_upload(mob/user)
timer_id = null
installed_module.transmit_instructions(current, user, id?.registered_name)
installed_module.transmit_instructions(current, user, reg_name)
to_chat(current, "These are your laws now:")
current.show_laws()
for(var/mob/living/silicon/robot/R in GLOB.mob_list)
Expand Down Expand Up @@ -233,11 +234,12 @@
return

to_chat(user, span_notice("Upload process has started. ETA: [delay/10] seconds."))
reg_name = hacked ? "UNKNOWN" : id.registered_name
timer_id = addtimer(CALLBACK(src, TYPE_PROC_REF(/obj/machinery/computer/aiupload, finish_upload), user), delay, TIMER_STOPPABLE)

/obj/machinery/computer/aiupload/cyborg/finish_upload(mob/user)
timer_id = null
installed_module.transmit_instructions(current, user, id?.registered_name)
installed_module.transmit_instructions(current, user, reg_name)
to_chat(current, "These are your laws now:")
current.show_laws()
atom_say("Upload complete. The laws have been modified.")

0 comments on commit db2da31

Please sign in to comment.