activateHeadbutt: Perform activation by headbutting

Description Usage Arguments Value Examples

View source: R/activation.R

Description

Perform activation by headbutting

Usage

1
2
3
activateHeadbutt(warjack, target = list(stats = c(DEF = 12, ARM = 18, BASE =
  50)), boost_hit = TRUE, boost_damage = TRUE, foc = 3, kd = FALSE,
  dist = 6, dice = sample(1:6, size = 30, replace = TRUE))

Arguments

warjack

list active warjack object with elements stats, range, melee and special

target

list target warjack object with elements stats and special stats has elements

  1. DEF single numeric NB should include effect of being knocked down (no adjustment here due to possible effect of other modifiers)

  2. ARM single numeric armour value

  3. BASE single numeric diameter of base (mm)

boost_hit

single logical boost attack roll?

boost_damage

single logical boost damage roll?

foc

single numeric

kd

single logical is target knocked down?

dist

single numeric distance between bases (default 6)

dice

numeric vector

Value

single numeric

Examples

1
2
3
4
5
6
7
8
blueleader <- list(stats = c(SPD = 5, MAT = 7, RAT = 5),
        range = list(),
        melee = list('quake hammer' = list(stats = c(RNG = 2, PAS = 18),
                special = c("crit knockdown")),
            'open fist' = list(stats = c(RNG = 0.5, PAS = 14), special = character(0))))
    WMTools:::activateHeadbutt(blueleader, target = list(stats = list(DEF = 13, ARM = 13, BASE = 30)),
        boost_hit = TRUE, boost_damage = TRUE, foc = 3,
        dice = c(1, 5, 4, 1, 1, 2))

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