Files
Bubberstation/code/modules/unit_tests/syringe_gun.dm
MrMelbert 34d35c6048 Adds a bunch of interaction related unit tests (#88210)
## 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
2024-11-27 11:38:43 -07:00

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.")