Description Usage Arguments Value Examples
Perform a Ranged Attack
1 2 3 4 |
warjack |
list attacker warjack object with elements stats, range and melee and special |
which |
single integer specify ranged weapon to use |
target |
list target warjack object with elements stats and special stats has elements
|
boost_hit |
single logical |
boost_damage |
single logical |
foc |
single numeric number of focus |
kd |
single logical is the target knocked down?
(default |
dist |
numeric vector distance between bases (default 6) |
dice |
numeric vector (default |
pos |
single numeric |
recycle |
single logical should dice be recycled for
each value of dist? (default |
named vector with elements
damage amount of damage inflicted
focus remaining focus following attack
knocked down is the target knocked down? 0: No, 1: Yes
position which die to use next
hit was the target hit? 0: No, 1: Yes
1 2 3 4 5 6 7 8 9 | redbandit <- list(stats = c(SPD = 4, MAT = 6, RAT = 4, DEF = 10, ARM = 20, BASE = 50),
range = list(bombard = list(
stats = c(RNG = 14, POW = 14, AOE = 3),
special = c("arcing"))),
melee = list(axe = list(stats = c(RNG = 0.5, PAS = 12),
special = c("crit amp"))))
shot(redbandit, which = 1, target = redbandit,
boost_hit = TRUE, boost_damage = TRUE, foc = 3, dist = 10,
dice = c(1, 5, 4, 1, 1, 2))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.