defend: Conduct a land defense

Description Usage Arguments Details Value Examples

View source: R/defend.R

Description

For every land unit defending, use roll_dice() to calculate the number of "hits" on attacking units. Each defending 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

Value

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

Examples

1
land_units(i = 10, f = 1) %>% defend()

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