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
18 lines
805 B
Plaintext
18 lines
805 B
Plaintext
/// Tests that eyestabbing with combat mode on does damage to the eyes.
|
|
/datum/unit_test/eyestab
|
|
|
|
/datum/unit_test/eyestab/Run()
|
|
var/mob/living/carbon/human/consistent/attacker = EASY_ALLOCATE()
|
|
var/mob/living/carbon/human/consistent/victim = EASY_ALLOCATE()
|
|
var/obj/item/screwdriver/stabber = EASY_ALLOCATE()
|
|
|
|
attacker.zone_selected = BODY_ZONE_PRECISE_EYES
|
|
attacker.put_in_active_hand(stabber, forced = TRUE)
|
|
|
|
attacker.set_combat_mode(TRUE)
|
|
click_wrapper(attacker, victim)
|
|
TEST_ASSERT_NOTEQUAL(victim.getBruteLoss(), 0, "Victim should have taken some brute damage from an eyestab with combat mode on")
|
|
|
|
var/obj/item/organ/eyes/eyes = victim.get_organ_slot(ORGAN_SLOT_EYES)
|
|
TEST_ASSERT_NOTEQUAL(eyes.damage, 0, "Victim's eyes should have taken some damage from an eyestab with combat mode on")
|