DnD_5e.tactics.attack_tactics package
Module contents
- class DnD_5e.tactics.attack_tactics.AttackTactic(**kwargs)[source]
Bases:
TacticSubclass of
Tacticused for selectingAttacks
- class DnD_5e.tactics.attack_tactics.DamageTypeTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackthat has the given damage type
- class DnD_5e.tactics.attack_tactics.DamageVulnerabilityTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackthat has a damage type that the target is vulnerable to
- class DnD_5e.tactics.attack_tactics.DamageNoImmuneTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attacksuch that none of that attack’s damage is a type that the target is immune to
- class DnD_5e.tactics.attack_tactics.DamageNoResistanceTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attacksuch that none of that attack’s damage is a type that the target is resistant to
- class DnD_5e.tactics.attack_tactics.LowRangeTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackthat has nonzero range lower than the threshold
- class DnD_5e.tactics.attack_tactics.HighRangeTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackthat has range higher than the threshold
- class DnD_5e.tactics.attack_tactics.LowMeleeRangeTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackthat has nonzero melee range lower than the threshold
- class DnD_5e.tactics.attack_tactics.HighMeleeRangeTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackthat has range higher than the threshold
- class DnD_5e.tactics.attack_tactics.HasAdvTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackthat has advantage
- class DnD_5e.tactics.attack_tactics.HasDisAdvTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackthat has disadvantage. I don’t know why you would do this, but now you can.
- class DnD_5e.tactics.attack_tactics.HasNoDisadvTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackthat does not have disadvantage
- class DnD_5e.tactics.attack_tactics.HighestMaxHitTactic(**kwargs)[source]
Bases:
MaxTactic,AttackTacticSelect the
Attackwith the highest maximum to-hit value (e.g., with an attack modifier of 10)
- class DnD_5e.tactics.attack_tactics.HighMaxHitTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith a maximum to-hit value higher than the threshold
- class DnD_5e.tactics.attack_tactics.MaxHitACTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith a maximum to-hit value greater than or equal to the target’s AC
- class DnD_5e.tactics.attack_tactics.HighestAvgHitTactic(**kwargs)[source]
Bases:
MaxTactic,AttackTacticSelect the
Attackwith the highest average to-hit value
- class DnD_5e.tactics.attack_tactics.HighAvgHitTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith an average to-hit value higher than threshold
- class DnD_5e.tactics.attack_tactics.AvgHitACHighTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith an average to-hit value greater than or equal to the target’s AC
- class DnD_5e.tactics.attack_tactics.HighestMaxDamageTactic(**kwargs)[source]
Bases:
MaxTactic,AttackTacticSelect the
Attackwith the highest maximum damage
- class DnD_5e.tactics.attack_tactics.HighMaxDamageTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith maximum damage above the threshold
- class DnD_5e.tactics.attack_tactics.MaxDamageHPHighTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith a maximum damage value greater than or equal to the target’s current hp
- class DnD_5e.tactics.attack_tactics.LowMaxDamageTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith maximum damage below the threshold
- class DnD_5e.tactics.attack_tactics.MaxDamageHPLowTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith a maximum damage value lower than the target’s current hp
- class DnD_5e.tactics.attack_tactics.HighestMinDamageTactic(**kwargs)[source]
Bases:
MaxTactic,AttackTacticSelect the
Attackwith the highest minimum damage
- class DnD_5e.tactics.attack_tactics.HighMinDamageTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith minimum damage above the threshold
- class DnD_5e.tactics.attack_tactics.MinDamageHPHighTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith a minimum damage value greater than or equal to the target’s current hp
- class DnD_5e.tactics.attack_tactics.LowMinDamageTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith minimum damage below the threshold
- class DnD_5e.tactics.attack_tactics.MinDamageHPLowTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith a maximum damage value lower than or the target’s current hp
- class DnD_5e.tactics.attack_tactics.HighestAvgDamageTactic(**kwargs)[source]
Bases:
MaxTactic,AttackTacticSelect the
Attackwith the highest average damage
- class DnD_5e.tactics.attack_tactics.HighAvgDamageTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith average damage above the threshold
- class DnD_5e.tactics.attack_tactics.AvgDamageHPHighTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith a maximum damage value greater than or equal to the target’s current hp
- class DnD_5e.tactics.attack_tactics.LowAvgDamageTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith average damage below the threshold
- class DnD_5e.tactics.attack_tactics.AvgDamageHPLowTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith an average damage value lower than the target’s current hp
- class DnD_5e.tactics.attack_tactics.DprMaxTactic(**kwargs)[source]
Bases:
MaxTactic,AttackTacticSelect the
Attackwith the highest dpr for the target (dpr is probability to hit * average damage)
- class DnD_5e.tactics.attack_tactics.DprHighTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith dpr (probability to hit the target * average damage) higher than threshold
- class DnD_5e.tactics.attack_tactics.DprHpHighTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith dpr (probability to hit the target * average damage) higher than the target’s current hp- check_condition(item, **kwargs) bool[source]
Check whether the given Attack has a dpr (probability to hit the target’s ac * average damage) greater than or equal to the target’s current hp
- Parameters:
item (
Attack) – the Attack we are looking at- Returns:
True if the condition is met, False otherwise
- class DnD_5e.tactics.attack_tactics.DprLowTactic(**kwargs)[source]
Bases:
ThresholdTactic,ConditionTactic,AttackTacticSelect the
Attackwith dpr (probability to hit the target * average damage) lower than threshold
- class DnD_5e.tactics.attack_tactics.DprHpLowTactic(**kwargs)[source]
Bases:
ConditionTactic,AttackTacticSelect the
Attackwith dpr (probability to hit the target * average damage) lower than the target’s current hp