mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +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:
@@ -84,25 +84,17 @@
|
||||
// VERBS & PROCS //
|
||||
//////////////////////////////
|
||||
|
||||
/obj/machinery/fishtank/verb/toggle_lid_verb()
|
||||
set name = "Toggle Tank Lid"
|
||||
set category = "Object"
|
||||
set src in view(1)
|
||||
/obj/machinery/fishtank/AltClick(mob/user)
|
||||
if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user))
|
||||
return
|
||||
|
||||
toggle_lid()
|
||||
|
||||
/obj/machinery/fishtank/proc/toggle_lid()
|
||||
lid_switch = !lid_switch
|
||||
update_icon(UPDATE_OVERLAYS)
|
||||
|
||||
/obj/machinery/fishtank/verb/toggle_light_verb()
|
||||
set name = "Toggle Tank Light"
|
||||
set category = "Object"
|
||||
set src in view(1)
|
||||
/obj/machinery/fishtank/AltShiftClick(mob/user)
|
||||
if(user.stat || HAS_TRAIT(user, TRAIT_HANDS_BLOCKED) || !Adjacent(user))
|
||||
return
|
||||
|
||||
toggle_light()
|
||||
|
||||
/obj/machinery/fishtank/proc/toggle_light()
|
||||
light_switch = !light_switch
|
||||
if(light_switch)
|
||||
set_light(2, 2, "#a0a080")
|
||||
@@ -113,12 +105,6 @@
|
||||
// NEW() PROCS //
|
||||
//////////////////////////////
|
||||
|
||||
/obj/machinery/fishtank/Initialize(mapload)
|
||||
. = ..()
|
||||
if(!has_lid) //Tank doesn't have a lid/light, remove the verbs for then
|
||||
verbs -= /obj/machinery/fishtank/verb/toggle_lid_verb
|
||||
verbs -= /obj/machinery/fishtank/verb/toggle_light_verb
|
||||
|
||||
/obj/machinery/fishtank/tank/Initialize(mapload)
|
||||
. = ..()
|
||||
if(prob(5)) //5% chance to get the castle decoration
|
||||
@@ -533,6 +519,8 @@
|
||||
|
||||
//Finally, report the full examine_message constructed from the above reports
|
||||
. += "<span class='notice'>[examine_message]</span>"
|
||||
. += "<span class='info'>You can <b>Alt-Click</b> [src] to open/close its lid.</span>"
|
||||
. += "<span class='info'>You can <b>Alt-Shift-Click</b> [src] to enable/disable its light.</span>"
|
||||
|
||||
//////////////////////////////
|
||||
// ATTACK PROCS //
|
||||
|
||||
Reference in New Issue
Block a user