mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
[MIRROR] Syringe toggle has been replaced with left-click to inject, right-click to draw. You can also now change transfer amount. (#3345)
* Syringe toggle has been replaced with left-click to inject, right-click to draw. You can also now change transfer amount. (#56865) * Syringe toggle has been replaced with left-click to inject, right-click to draw. You can also now change transfer amount. Co-authored-by: Mothblocks <35135081+Jared-Fogle@users.noreply.github.com>
This commit is contained in:
@@ -72,10 +72,7 @@
|
||||
syringe.volume = meth.addiction_threshold
|
||||
syringe.amount_per_transfer_from_this = meth.addiction_threshold
|
||||
syringe.reagents.add_reagent(meth.type, meth.addiction_threshold)
|
||||
|
||||
syringe.mode = SYRINGE_INJECT
|
||||
syringe_user.set_combat_mode(TRUE)
|
||||
syringe.afterattack(syringe_user, syringe_user, TRUE)
|
||||
syringe.melee_attack_chain(syringe_user, syringe_user)
|
||||
|
||||
syringe_user.Life()
|
||||
|
||||
@@ -90,10 +87,7 @@
|
||||
// One half pill
|
||||
pill_two.reagents.add_reagent(meth.type, (meth.addiction_threshold * 0.5) + 1)
|
||||
pill_two.attack(pill_syringe_user, pill_syringe_user)
|
||||
|
||||
pill_syringe_user.set_combat_mode(TRUE)
|
||||
syringe.mode = SYRINGE_INJECT
|
||||
syringe.afterattack(pill_syringe_user, pill_syringe_user, TRUE)
|
||||
syringe.melee_attack_chain(pill_syringe_user, pill_syringe_user)
|
||||
|
||||
// Set the metabolism efficiency to 1.0 so it transfers all reagents to the body in one go.
|
||||
pill_belly = pill_syringe_user.getorganslot(ORGAN_SLOT_STOMACH)
|
||||
|
||||
@@ -50,8 +50,7 @@
|
||||
|
||||
// INJECT
|
||||
syringe.reagents.add_reagent(/datum/reagent/method_patch_test, 1)
|
||||
syringe.mode = SYRINGE_INJECT
|
||||
syringe.afterattack(human, human, TRUE)
|
||||
syringe.melee_attack_chain(human, human)
|
||||
TEST_ASSERT_EQUAL(human.health, 80, "Human health did not update after injection from syringe")
|
||||
|
||||
/datum/unit_test/reagent_mob_expose/Destroy()
|
||||
|
||||
Reference in New Issue
Block a user