attack: Conduct a land attack

Description Usage Arguments Details Value Examples

View source: R/attack.R

Description

For every land unit attacking, use roll_dice() to calculate the number of "hits" on defending units. Each attacking unit makes a successful hit on different roll results (see details). This function is passed to hits() and used in land_battle().

Usage

1

Arguments

units

A list created by land_units().

Details

For each artillery unit present, one attacking infantry unit makes successful hits on rolls of 2 or lower rather than just 1.

Value

A list of logical vectors with hit results for each unit attacking.

Examples

1
land_units(i = 6, a = 2, t = 1) %>% attack()

kiernann/aaa documentation built on Feb. 10, 2020, 1:23 a.m.