mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 02:24:11 +01:00
fix reagent containers not transferring into protolathes or circuit imprinters (#28225)
This commit is contained in:
committed by
GitHub
parent
94c46040ea
commit
4ec4e4128a
@@ -83,7 +83,7 @@ using metal and glass, it uses glass and reagents (usually sulfuric acis).
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(used.is_open_container())
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
return ITEM_INTERACT_SKIP_TO_AFTER_ATTACK
|
||||
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -91,7 +91,7 @@ Note: Must be placed west/left of and R&D console to function.
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
|
||||
if(used.is_open_container())
|
||||
return ITEM_INTERACT_COMPLETE
|
||||
return ITEM_INTERACT_SKIP_TO_AFTER_ATTACK
|
||||
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -158,3 +158,14 @@
|
||||
player.retrieve(screwdriver)
|
||||
player.click_on(firealarm_frame)
|
||||
TEST_ASSERT_LAST_CHATLOG(player, "You close the panel")
|
||||
player.put_away(screwdriver)
|
||||
|
||||
var/obj/protolathe = teleport_to_first(player, /obj/machinery/r_n_d/protolathe)
|
||||
var/obj/item/reagent_containers/bottle = player.spawn_obj_in_hand(/obj/item/reagent_containers/glass/bottle/ammonia)
|
||||
player.click_on(protolathe)
|
||||
TEST_ASSERT_LAST_CHATLOG(player, "You transfer 10 units of the solution to Protolathe.")
|
||||
|
||||
var/obj/imprinter = teleport_to_first(player, /obj/machinery/r_n_d/circuit_imprinter)
|
||||
bottle.amount_per_transfer_from_this = 5
|
||||
player.click_on(imprinter)
|
||||
TEST_ASSERT_LAST_CHATLOG(player, "You transfer 5 units of the solution to Circuit Imprinter.")
|
||||
|
||||
Reference in New Issue
Block a user