Skip to content

Commit

Permalink
TGS Test Merge (#6176)
Browse files Browse the repository at this point in the history
  • Loading branch information
lordme authored and lordme committed Dec 6, 2023
2 parents edf28d0 + dfaf973 commit 0b02c38
Show file tree
Hide file tree
Showing 2 changed files with 6 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(vial.is_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
3 changes: 3 additions & 0 deletions code/modules/reagents/items/hypovial.dm
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
w_class = WEIGHT_CLASS_TINY // 14 fits in a box, not 7
volume = 60
start_rename = TRUE
/// if the vial is large or not, large vials only work with advanced units
var/is_large = FALSE
/// how many [state][#] overlays we have for reagents remaining
var/overlay_count = 3

Expand All @@ -34,6 +36,7 @@
)
w_class = WEIGHT_CLASS_SMALL
volume = 120
is_large = TRUE
overlay_count = 4

/obj/item/reagent_containers/glass/hypovial/bluespace
Expand Down

0 comments on commit 0b02c38

Please sign in to comment.