Co-authored-by: Toastical <toast@toaster.com>
This commit is contained in:
Toastical
2025-03-22 20:59:53 +02:00
committed by GitHub
parent 1c8dc2b5aa
commit 9a3ce4e549
3 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -562,7 +562,7 @@
/obj/machinery/clonepod/item_interaction(mob/living/user, obj/item/used, list/modifiers)
if(used.is_open_container())
return ITEM_INTERACT_SKIP_TO_AFTER_ATTACK
return ..()
if(istype(used, /obj/item/card/id) || istype(used, /obj/item/pda))
if(!allowed(user))
@@ -85,6 +85,7 @@
var/trans = reagents.trans_to(target, amount_per_transfer_from_this)
to_chat(user, "<span class='notice'>You transfer [trans] unit\s of the solution to [target].</span>")
return
else if(target.is_drainable()) //A dispenser. Transfer FROM it TO us.
if(!target.reagents.total_volume)
@@ -219,6 +219,10 @@
// Beakers
beaker = player.spawn_obj_in_hand(/obj/item/reagent_containers/glass/beaker)
var/obj/machinery/clonepod/clonepod = player.spawn_obj_nearby(/obj/machinery/clonepod)
beaker.reagents.add_reagent("sanguine_reagent", 10)
player.click_on(clonepod)
TEST_ASSERT_LAST_CHATLOG(player, "You transfer 10 units of the solution to [clonepod].")
var/obj/structure/table/table = player.spawn_obj_nearby(/obj/structure/table)
player.click_on(table)
TEST_ASSERT(beaker in get_turf(table), "beaker not placed on table")