mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Verb cleanup (#22224)
* Verb cleanup * rest of the object verbs * little more object cleanup * more changes * last of it * this too * tgui * code review * time to go
This commit is contained in:
+13
-37
@@ -94,6 +94,12 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
start_program(find_program(/datum/data/pda/app/main_menu))
|
||||
silent = initial(silent)
|
||||
|
||||
/obj/item/pda/examine(mob/user)
|
||||
. = ..()
|
||||
. += "<span class='info'><b>Alt-Click</b> [src] to remove its ID card.</span>"
|
||||
. += "<span class='info'><b>Ctrl-Click</b> [src] to remove its pen.</span>"
|
||||
. += "<span class='info'>Use a screwdriver on [src] to reset it.</span>"
|
||||
|
||||
/obj/item/pda/proc/can_use()
|
||||
if(!ismob(loc))
|
||||
return 0
|
||||
@@ -159,22 +165,15 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
/obj/item/pda/proc/close(mob/user)
|
||||
SStgui.close_uis(src)
|
||||
|
||||
/obj/item/pda/verb/verb_reset_pda()
|
||||
set category = "Object"
|
||||
set name = "Reset PDA"
|
||||
set src in usr
|
||||
|
||||
if(issilicon(usr))
|
||||
/obj/item/pda/screwdriver_act(mob/living/user, obj/item/I)
|
||||
if(!I.use_tool(src, user, 0, volume = I.tool_volume))
|
||||
return
|
||||
|
||||
if(can_use(usr))
|
||||
start_program(find_program(/datum/data/pda/app/main_menu))
|
||||
notifying_programs.Cut()
|
||||
update_icon(UPDATE_OVERLAYS)
|
||||
to_chat(usr, "<span class='notice'>You press the reset button on \the [src].</span>")
|
||||
SStgui.update_uis(src)
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>You cannot do this while restrained.</span>")
|
||||
start_program(find_program(/datum/data/pda/app/main_menu))
|
||||
notifying_programs.Cut()
|
||||
update_icon(UPDATE_OVERLAYS)
|
||||
to_chat(user, "<span class='notice'>You press the reset button on \the [src].</span>")
|
||||
SStgui.update_uis(src)
|
||||
|
||||
/obj/item/pda/AltClick(mob/user)
|
||||
if(HAS_TRAIT(user, TRAIT_HANDS_BLOCKED))
|
||||
@@ -217,30 +216,7 @@ GLOBAL_LIST_EMPTY(PDAs)
|
||||
if(wearing_human.wear_id == src)
|
||||
wearing_human.sec_hud_set_ID()
|
||||
|
||||
/obj/item/pda/verb/verb_remove_id()
|
||||
set category = "Object"
|
||||
set name = "Remove id"
|
||||
set src in usr
|
||||
|
||||
if(issilicon(usr))
|
||||
return
|
||||
|
||||
if( can_use(usr) )
|
||||
if(id)
|
||||
remove_id(usr)
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>This PDA does not have an ID in it.</span>")
|
||||
else
|
||||
to_chat(usr, "<span class='notice'>You cannot do this while restrained.</span>")
|
||||
|
||||
/obj/item/pda/verb/verb_remove_pen()
|
||||
set category = "Object"
|
||||
set name = "Remove pen"
|
||||
set src in usr
|
||||
remove_pen(usr)
|
||||
|
||||
/obj/item/pda/proc/remove_pen(mob/user)
|
||||
|
||||
if(issilicon(user))
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user