mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
## About The Pull Request I made these a year ago and meant to PR them but never got around to it Basically just adds a bunch of unit tests for a bunch of specific attack chain interactions that are prone to breaking due to snowflake Increasing coverage of attack chain is good so people who are working on it don't have to worry about the 1000 edge cases breaking - Blocking (both unarmed and armed) - Cuffs - Eyestab - Flashes (combat mode, non combat mode, with flash protection) - Help intent - Pistol whip - Butchering with a bayonet - Damp rag smothering - Droppers - EMP flashlights - Holofans - Door attack hand redirector - Tool usage on Cyborgs - Punching Cyborgs - Ability to bash tables - Ability to bash any structure - Ability to use tools on machinery - Kinetic Crusher projectile - Spraycans (capping, making graffiti) - Loading a syringe gun
15 lines
580 B
Plaintext
15 lines
580 B
Plaintext
/// Tests the ability to load syringe into a syringe gun
|
|
/datum/unit_test/load_syringe
|
|
|
|
/datum/unit_test/load_syringe/Run()
|
|
var/mob/living/carbon/human/consistent/chemist = EASY_ALLOCATE()
|
|
var/obj/item/gun/syringe/syringe_gun = EASY_ALLOCATE()
|
|
var/obj/item/reagent_containers/syringe/syringe = EASY_ALLOCATE()
|
|
|
|
chemist.put_in_active_hand(syringe, forced = TRUE)
|
|
chemist.put_in_inactive_hand(syringe_gun, forced = TRUE)
|
|
|
|
click_wrapper(chemist, syringe_gun)
|
|
|
|
TEST_ASSERT_EQUAL(syringe.loc, syringe_gun, "Syringe was not added to syringe gun when clicking on it to load it.")
|