Skip to content

Commit

Permalink
fix teleporting canister pouch to chemical dispenser (#4258)
Browse files Browse the repository at this point in the history
# About the pull request

fixes #3262 

# Explain why it's good for the game




# Testing Photographs and Procedure
<!-- Include any screenshots/videos/debugging steps of the modified code
functioning successfully, ideally including edge cases. -->
<details>
<summary>Screenshots & Videos</summary>

Put screenshots and videos here with an empty line between the
screenshots and the `<details>` tags.

</details>


# Changelog



:cl:
fix: teleporting canister pouch to chemical dispenser
/:cl:
  • Loading branch information
MikeKuwait committed Aug 27, 2023
1 parent 5258c0b commit 093bae5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions code/game/objects/items/storage/pouch.dm
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,9 @@
update_icon()

/obj/item/storage/pouch/pressurized_reagent_canister/afterattack(obj/target, mob/user, flag) //refuel at fueltanks & chem dispensers.
if(get_dist(user,target) > 1)
return ..()

if(!inner)
to_chat(user, SPAN_WARNING("[src] has no internal container!"))
return ..()
Expand All @@ -925,8 +928,7 @@
if(!istype(target, /obj/structure/reagent_dispensers/fueltank))
return ..()

if(get_dist(user,target) > 1)
return ..()


var/obj/O = target
if(!O.reagents || O.reagents.reagent_list.len < 1)
Expand Down

0 comments on commit 093bae5

Please sign in to comment.