test suite: mob attack chain (#28440)

* test suite: mob attack chain

* 100% random zone probability in tests
This commit is contained in:
warriorstar-orion
2025-02-20 15:03:21 +00:00
committed by GitHub
parent 0c48363fd1
commit 6359d3f41b
10 changed files with 189 additions and 4 deletions
+3 -1
View File
@@ -211,7 +211,9 @@
// Do not use this if someone is intentionally trying to hit a specific body part.
// Use get_zone_with_miss_chance() for that.
/proc/ran_zone(zone, probability = 80)
#ifdef GAME_TESTS
probability = 100
#endif
zone = check_zone(zone)
if(prob(probability))