mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[MIRROR] usr to user part two (#10015)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
538c8e7187
commit
a245b8687f
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user