import { startingArmy, recruit, startingTactics } from '@datamoc/mw_games/board';const board = startingTactics(6, 6, 'square');const army = startingArmy(100);recruit(army, board, { id: 'scout', owner: 'blue', x: 0, y: 0, hp: 6, maxHp: 6, actions: 2 }, 30);console.log(army.currency); // 70 - 100 minus the 30 cost Copy
import { startingArmy, recruit, startingTactics } from '@datamoc/mw_games/board';const board = startingTactics(6, 6, 'square');const army = startingArmy(100);recruit(army, board, { id: 'scout', owner: 'blue', x: 0, y: 0, hp: 6, maxHp: 6, actions: 2 }, 30);console.log(army.currency); // 70 - 100 minus the 30 cost
Example