mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Changes portable seed extractor to be alt-shift-clickable (#20046)
* Make portable seed extractor use alt-click instead of a verb * little bit more feedback never hurts * Remove duplicate check * alt-shift-click * Should probably update the examine too
This commit is contained in:
@@ -179,19 +179,28 @@
|
||||
icon_state = "portaseeder"
|
||||
origin_tech = "biotech=3;engineering=2"
|
||||
|
||||
/obj/item/storage/bag/plants/portaseeder/verb/dissolve_contents()
|
||||
set name = "Activate Seed Extraction"
|
||||
set category = "Object"
|
||||
set desc = "Activate to convert your plants into plantable seeds."
|
||||
/obj/item/storage/bag/plants/portaseeder/examine(mob/user)
|
||||
. = ..()
|
||||
if(Adjacent(user))
|
||||
. += "<span class='notice'>You can <b>Alt-Shift-Click</b> to convert the plants inside to seeds.</span>"
|
||||
|
||||
if(usr.incapacitated())
|
||||
/obj/item/storage/bag/plants/portaseeder/proc/process_plants(mob/user)
|
||||
if(!length(contents))
|
||||
to_chat(user, "<span class='warning'>[src] has no seeds inside!</span>")
|
||||
return
|
||||
var/had_anything = FALSE
|
||||
for(var/obj/item/O in contents)
|
||||
seedify(O, 1)
|
||||
for(var/mob/M in range(1))
|
||||
if(M.s_active == src)
|
||||
close(M)
|
||||
had_anything |= seedify(O, 1)
|
||||
hide_from_all()
|
||||
if(had_anything)
|
||||
to_chat(user, "<span class='notice'>[src] whirrs a bit as it converts the plants inside to seeds.</span>")
|
||||
else
|
||||
to_chat(user, "<span class='warning'>[src] whirrs a bit but stops. Doesn't seem like it could convert anything inside.</span>")
|
||||
playsound(user, "sound/machines/ding.ogg", 25)
|
||||
|
||||
/obj/item/storage/bag/plants/portaseeder/AltShiftClick(mob/user)
|
||||
if(Adjacent(user) && ishuman(user) && !user.incapacitated(FALSE, TRUE))
|
||||
process_plants(user)
|
||||
|
||||
// -----------------------------
|
||||
// Sheet Snatcher
|
||||
|
||||
Reference in New Issue
Block a user