fix(rules): scale dirty trick duration and drop nauseated
PF1e (APG Dirty Trick): "This condition lasts for 1 round. For every 5 by which your attack exceeds your opponent's CMD, the penalty lasts 1 additional round" — rounds_left = 1 + margin//5. The RAW condition list (blinded, dazzled, deafened, entangled, shaken, sickened) does not include nauseated, so it is removed from TrickCondition. README updated. Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -148,7 +148,7 @@ if TYPE_CHECKING:
|
||||
from pf1e_simulator.rng import Rng
|
||||
from pf1e_simulator.spells import SpellSpec
|
||||
|
||||
TrickCondition = Literal["dazzled", "blinded", "deafened", "entangled", "nauseated"]
|
||||
TrickCondition = Literal["dazzled", "blinded", "deafened", "entangled"]
|
||||
|
||||
ReadyTrigger = Literal[
|
||||
"enemy_enters_reach", "enemy_casts", "enemy_attacks", "enemy_hits_ally"
|
||||
@@ -263,6 +263,7 @@ _AID_ANOTHER_BONUS = 2 # PF1e: a successful aid grants +2 (next attack or AC)
|
||||
_RUN_SPEED_FACTOR = 4 # PF1e: running is a full-round action at 4x speed
|
||||
_OVERRUN_PRONE_MARGIN = 5 # PF1e: overrun knocks prone only on a 5+ CMB margin
|
||||
_BULL_RUSH_EXTRA_PER_MARGIN = 5 # PF1e: +5 ft push per 5 points above CMD
|
||||
_DIRTY_TRICK_EXTRA_ROUND_MARGIN = 5 # PF1e APG: +1 round per 5 points above CMD
|
||||
_TRIP_RETALIATION_MARGIN = 10 # PF1e: trip failing by 10+ knocks the attacker prone
|
||||
_MANEUVER_MAX_SIZE_DIFF = 2 # PF1e: 2+ size categories larger = unmaneuverable
|
||||
_SAVE_DESCRIPTOR_CONDITIONS = frozenset({
|
||||
@@ -4450,17 +4451,21 @@ class CombatEngine:
|
||||
return
|
||||
condition_name = trick_condition or "dazzled"
|
||||
condition = CONDITIONS_BY_NAME[condition_name]
|
||||
# PF1e (APG Dirty Trick): "This condition lasts for 1 round. For
|
||||
# every 5 by which your attack exceeds your opponent's CMD, the
|
||||
# penalty lasts 1 additional round."
|
||||
rounds = 1 + max(0, m.total - m.target_cmd) // _DIRTY_TRICK_EXTRA_ROUND_MARGIN
|
||||
target.active_conditions.append(
|
||||
ActiveCondition(
|
||||
condition=condition,
|
||||
rounds_left=1,
|
||||
rounds_left=rounds,
|
||||
source="maneuver: dirty trick",
|
||||
)
|
||||
)
|
||||
self._log(
|
||||
f"round {self._current_round} {state.combatant.id}: dirty trick vs "
|
||||
f"{target.combatant.id} d20={m.roll}+{m.attacker_cmb}={m.total} "
|
||||
f"CMD {m.target_cmd} -> SUCCESS ({condition_name})"
|
||||
f"CMD {m.target_cmd} -> SUCCESS ({condition_name} {rounds}r)"
|
||||
)
|
||||
|
||||
def _maneuver_steal(
|
||||
|
||||
Reference in New Issue
Block a user