buy_units {axisandallies} | R Documentation |
Buy Units
Description
Calculates the cost of a purchase during the purchase units phase
Usage
buy_units(
infantry = 0,
artillery = 0,
tanks = 0,
fighters = 0,
bombers = 0,
aaguns = 0,
complexes = 0,
submarines = 0,
destroyers = 0,
carriers = 0,
cruisers = 0,
battleships = 0
)
Arguments
infantry |
Number of infantry purchased, infantry cost three |
artillery |
Number of artillery purchased, artillery cost four |
tanks |
Number of tanks purchased, tanks cost five |
fighters |
Number of fighters purchased, fighters cost ten |
bombers |
Number of bombers purchased, bombers cost twelve |
aaguns |
Number of anti aircraft guns purchased, anti aircraft guns cost five |
complexes |
Number of industrial complexes purchased, industrial complexes cost fifteen |
submarines |
Number of submarines purchased, submarines cost six |
destroyers |
Number of destroyers purchased, destroyers cost eight |
carriers |
Number of aircraft carriers purchased, aircraft carriers cost fourteen |
cruisers |
Number of cruisers purchased, cruisers cost twelve |
battleships |
Number of battleships purchased, battleships cost twenty |
Value
Numerical cost of purchase
Examples
buy_units(infantry = 3, artillery = 1, tanks = 1, complexes = 1, submarines = 2)