is.scatter.hit: is target hit by scatter?

Description Usage Arguments Value Examples

View source: R/isscatterhit.R

Description

is target hit by scatter?

Usage

1
2
is.scatter.hit(weapon, short = 0, base = 30, max = 6, dice = sample(1:6,
  size = 2, replace = TRUE))

Arguments

weapon

length 2 list with elements stats and special. stats is a length three vector with named elements RNG, POW and AOE special is a character vector

short

single numeric with value 0 if the target was in range or a positive number indicating inches out of range (default 0)

base

single numeric indicating size of target base in mm (default 30)

max

single numeric indicating the maximum scatter of the shot (default 6)

dice

length 2 numeric vector specifing (distance, direction)

Value

single logical

Examples

1
2
is.scatter.hit(weapon = list(stats = c(RNG = 14, POW = 14, AOE = 3),
       special = c("arcing")))

CSJCampbell/WMTools documentation built on May 6, 2019, 9:26 a.m.