mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +01:00
Fixes an old Skyrat bug with epi-pens/alt-click interactions [NOVA PORT] (#5903)
## About The Pull Request Original PR: https://github.com/NovaSector/NovaSector/pull/5806 Makes it so you can't alt-click epi-pens, which makes your epi-pen get stuck dispensing 5u. ## Why It's Good For The Game Bugs bad. ## Proof Of Testing I couldn't test this since I'm in a car right now, but it's 1:1 with the Nova PR so it should work. <details> <summary>Screenshots/Videos</summary> </details> ## Changelog 🆑 xPokee, vinylspiders fix: Fixed some objects (epi-pens) having the ability to be alt-clicked to change reagent amounts, which they shouldn't be able to do. /🆑
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
/obj/item/reagent_containers/click_alt(mob/living/user)
|
||||
if(!has_variable_transfer_amount)
|
||||
return NONE
|
||||
if(length(possible_transfer_amounts) <= 2) // If there's only two choices, just swap between them.
|
||||
change_transfer_amount(user, FORWARD)
|
||||
return CLICK_ACTION_SUCCESS
|
||||
|
||||
Reference in New Issue
Block a user