feat(combat): add dying stabilization and Improved Critical
This commit is contained in:
@@ -351,6 +351,8 @@ def test_scripted_2v2_transcript() -> None:
|
||||
14, 1, # R1 gob-2 hits orc-2 for 1
|
||||
17, 2, 3, # R1 orc-2 hits gob-2 for 2+3+4=9
|
||||
19, 11, 2, # R2 gob-1 crits orc-1: 19 threatens, 11 confirms, 2*2=4
|
||||
14, # R2 orc-1 dying check: 14+1-1=14 >= 10 -> stabilized
|
||||
5, # R2 gob-2 dying check: 5+1-3=3 < 10 -> fails, bleeds to -4
|
||||
15, 1, 4, # R2 orc-2 hits gob-1 for 1+4+4=9
|
||||
]
|
||||
engine = make_engine(queue, states)
|
||||
@@ -369,6 +371,11 @@ def test_scripted_2v2_transcript() -> None:
|
||||
"round 1 orc-2: gob-2 down",
|
||||
"round 2 gob-1: short sword vs orc-1 d20=19+2=21 AC 13 -> CRIT 4 damage (3->-1)",
|
||||
"round 2 gob-1: orc-1 down",
|
||||
"round 2 orc-1: stabilized (d20(14) + CON(1) - 1 = 14 vs DC 10)",
|
||||
(
|
||||
"round 2 gob-2: dying — Constitution check d20(5) + CON(1) - 3 = 3 vs DC 10 "
|
||||
"failed, loses 1 hp (hp -3 -> -4)"
|
||||
),
|
||||
"round 2 orc-2: charge (3,4)->(2,4)->(1,3)",
|
||||
"round 2 orc-2: charge vs gob-1 d20=15+7=22 AC 16 -> HIT 9 damage (6->-3)",
|
||||
"round 2 orc-2: gob-1 down",
|
||||
@@ -447,8 +454,10 @@ def test_nearest_enemy_targeting_and_full_rounds() -> None:
|
||||
7, # R1 orc-1 misses
|
||||
8, # R1 orc-2 misses
|
||||
12, 6, # R2 gob downs orc-1
|
||||
3, # R2 orc-1 dying check: 3+1-4=0 < 10 -> fails, bleeds to -5
|
||||
9, # R2 orc-2 misses
|
||||
11, 3, # R3 gob hits orc-2 for 3
|
||||
4, # R3 orc-1 dying check: 4+1-5=0 < 10 -> fails, bleeds to -6
|
||||
12, 4, # R3 orc-2 hits gob for 4
|
||||
12, 6, # R4 gob downs orc-2
|
||||
]
|
||||
@@ -465,8 +474,16 @@ def test_nearest_enemy_targeting_and_full_rounds() -> None:
|
||||
"round 1 orc-2: short sword vs gob d20=8+2=10 AC 13 -> MISS",
|
||||
"round 2 gob: short sword vs orc-1 d20=12+2=14 AC 13 -> HIT 6 damage (2->-4)",
|
||||
"round 2 gob: orc-1 down",
|
||||
(
|
||||
"round 2 orc-1: dying — Constitution check d20(3) + CON(1) - 4 = 0 vs DC 10 "
|
||||
"failed, loses 1 hp (hp -4 -> -5)"
|
||||
),
|
||||
"round 2 orc-2: short sword vs gob d20=9+2=11 AC 13 -> MISS",
|
||||
"round 3 gob: short sword vs orc-2 d20=11+2=13 AC 13 -> HIT 3 damage (6->3)",
|
||||
(
|
||||
"round 3 orc-1: dying — Constitution check d20(4) + CON(1) - 5 = 0 vs DC 10 "
|
||||
"failed, loses 1 hp (hp -5 -> -6)"
|
||||
),
|
||||
"round 3 orc-2: short sword vs gob d20=12+2=14 AC 13 -> HIT 4 damage (6->2)",
|
||||
"round 4 gob: short sword vs orc-2 d20=12+2=14 AC 13 -> HIT 6 damage (3->-3)",
|
||||
"round 4 gob: orc-2 down",
|
||||
|
||||
Reference in New Issue
Block a user