(adjust-probabilities-with-feel-no-pain wound-probabilites feel-no-pain)
(calculate-distribution-probability max-value
occurence-probability
distribution)
(get-critical-wound-probability &
{:keys [anti reroll?]
:or {anti 0 reroll? false}})
(get-hit-probabilities &
{:keys [attacks skill sustained lethal? reroll-attack?
attack-mod]
:or {attacks 1
skill 4
sustained 0
lethal? false
reroll-attack? false
attack-mod 0}})
(get-lethal-wounds-occurence-probability-map distribution
range
lethal-hits
occurence-probability)
(get-passed-wound-probability save-probability wounds wound-probability)
(get-probabilities-for &
{:keys [attacks skill strength ap damage anti toughness
save invul-save wounds feel-no-pain sustained
lethal? devastating? reroll-wound? reroll-attack?
attack-mod wound-mod save-mod points]
:or {feel-no-pain 0
attacks 1
reroll-attack? false
anti 0
toughness 4
skill 4
save-mod 0
wound-mod 0
save 6
points -1
lethal? false
devastating? false
wounds 1
damage 1
reroll-wound? false
attack-mod 0
strength 4
sustained 0
invul-save 0
ap 0}})
(get-wound-probability
strength
toughness
&
{:keys [wound-mod anti reroll? consider-critical?]
:or {wound-mod 0 anti 0 reroll? false consider-critical? true}})
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close