to_save: Save against wound roll

Description Usage Arguments Value Examples

View source: R/to_save.R

Description

After a successful wound, the defender gets an opportunity to save and prevent that wound.

Usage

1
to_save(n, sv, ap = 0, invul = FALSE)

Arguments

n

integer scalar number of wounds

sv

integer scalar minimum save value (e.g. SM marine has SV 3+).

ap

integer scalar armor piercing value of wound; negative and positive values accepted e.g. AP -3 and AP 3 are equivalent (default 0).

invul

logical scalar is the save an invulnerability save? default FALSE.

Value

integer scalar number of failed saves

Examples

1
2
# SM tactical marine saves against a boltgun hit.
to_save(n = 1, sv = 3, ap = 0)

psmits/mathhammr documentation built on May 14, 2019, 5:16 a.m.