[MIRROR] usr to user part two (#10015)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-31 14:27:34 -07:00
committed by GitHub
parent 538c8e7187
commit a245b8687f
203 changed files with 974 additions and 993 deletions

View File

@@ -120,7 +120,7 @@
else if(!enabled && screen_on)
turn_on(user)
/obj/item/modular_computer/attackby(var/obj/item/W as obj, var/mob/user as mob)
/obj/item/modular_computer/attackby(var/obj/item/W, var/mob/user)
if(istype(W, /obj/item/card/id)) // ID Card, try to insert it.
var/obj/item/card/id/I = W
if(!card_slot)
@@ -166,7 +166,7 @@
return
to_chat(user, "You begin repairing damage to \the [src]...")
if(WT.remove_fuel(round(damage/75)) && do_after(usr, damage/10))
if(WT.remove_fuel(round(damage/75)) && do_after(user, damage/10))
damage = 0
to_chat(user, "You repair \the [src].")
return
@@ -180,12 +180,12 @@
for(var/obj/item/computer_hardware/H in all_components)
component_names.Add(H.name)
var/choice = tgui_input_list(usr, "Which component do you want to uninstall?", "Computer maintenance", component_names)
var/choice = tgui_input_list(user, "Which component do you want to uninstall?", "Computer maintenance", component_names)
if(!choice)
return
if(!Adjacent(usr))
if(!Adjacent(user))
return
var/obj/item/computer_hardware/H = find_hardware_by_name(choice)

View File

@@ -23,14 +23,14 @@
// Prevents carrying of open laptops inhand.
// While they work inhand, i feel it'd make tablets lose some of their high-mobility advantage they have over laptops now.
if(!istype(loc, /turf/))
to_chat(usr, "\The [src] has to be on a stable surface first!")
to_chat(user, "\The [src] has to be on a stable surface first!")
return
//VOREStation Addition Begin
var/supported = FALSE
for(var/obj/structure/table/S in loc)
supported = TRUE
if(!supported && !anchored)
to_chat(usr, "You will need a better supporting surface before opening \the [src]!")
to_chat(user, "You will need a better supporting surface before opening \the [src]!")
return
//VOREStation Addition End
anchored = !anchored