Skip to content

Commit

Permalink
[NO GBP] Allow expanded hypospray chems to refill once more (tgstatio…
Browse files Browse the repository at this point in the history
…n#67966)

Co-authored-by: tattle <article.disaster@gmail.com>
  • Loading branch information
2 people authored and Jacquerel committed Jun 27, 2022
1 parent 5b28d00 commit 044fe9d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion code/game/objects/items/robot/items/hypo.dm
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@
hypospray_injector.add_reagent(selected_reagent.type, amount_per_transfer_from_this, reagtemp = dispensed_temperature, no_react = TRUE)

to_chat(injectee, span_warning("You feel a tiny prick!"))
to_chat(user, span_notice("You inject [injectee] with the injector."))
to_chat(user, span_notice("You inject [injectee] with the injector ([selected_reagent.name])."))

if(injectee.reagents)
hypospray_injector.trans_to(injectee, amount_per_transfer_from_this, transfered_by = user, methods = INJECT)
Expand Down Expand Up @@ -239,6 +239,7 @@

/// Upgrade our hypospray to hold even more new reagents!
/obj/item/reagent_containers/borghypo/medical/proc/upgrade_hypo()
upgraded = TRUE
// Expand the holder's capacity to allow for our new suite of reagents
stored_reagents.maximum_volume += (length(expanded_reagent_types) * (max_volume_per_reagent + 1))
for(var/reagent in expanded_reagent_types)
Expand All @@ -247,6 +248,7 @@

/// Remove the reagents we got from the expansion, back to our base reagents
/obj/item/reagent_containers/borghypo/medical/proc/remove_hypo_upgrade()
upgraded = FALSE
for(var/reagent in expanded_reagent_types)
var/datum/reagent/reagent_to_remove = reagent
stored_reagents.del_reagent(reagent_to_remove)
Expand Down

0 comments on commit 044fe9d

Please sign in to comment.