Skip to content

Commit

Permalink
stop large hypovials going in non-advanced hyposprays (#6176)
Browse files Browse the repository at this point in the history
## About The Pull Request
title

## Why It's Good For The Game
fixes a bug

## Changelog
:cl:
fix: stop large hypovials going in non-advanced hyposprays
/:cl:

<!-- Both :cl:'s are required for the changelog to work! You can put
your name to the right of the first :cl: if you want to overwrite your
GitHub username as author ingame. -->
<!-- You can use multiple of the same prefix (they're only used for the
icon ingame) and delete the unneeded ones. Despite some of the tags,
changelogs should generally represent how a player might be affected by
the changes rather than a summary of the PR's contents. -->
  • Loading branch information
timothyteakettle authored Dec 16, 2023
1 parent ff5bae2 commit e252568
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/reagents/items/hypospray.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@
/obj/item/hypospray/attackby(obj/item/I, mob/living/user, list/params, clickchain_flags, damage_multiplier)
if(istype(I, /obj/item/reagent_containers/glass/hypovial))
var/obj/item/reagent_containers/glass/hypovial/vial = I
if(istype(vial, /obj/item/reagent_containers/glass/hypovial/large) && !allow_large)
user.action_feedback(SPAN_WARNING("[vial] requires an advanced hypospray to use!"), src)
return CLICKCHAIN_DO_NOT_PROPAGATE
if(!user.transfer_item_to_loc(vial, src))
user.action_feedback(SPAN_WARNING("[vial] is stuck to your hand!"), src)
return CLICKCHAIN_DO_NOT_PROPAGATE
Expand Down

0 comments on commit e252568

Please sign in to comment.