Skip to content

five-on-it / packages/ai/src/police-budget / budgetStep

Function: budgetStep() ​

budgetStep(book, actors, crimes): BudgetNews

Defined in: packages/ai/src/police-budget.ts:125

One tick of the budget (see the module documentation): the actors put out since the last tick paid for, the crimes against the police drained, the refill; run dry or refilled.

Parameters ​

book ​

BudgetBook

actors ​

number

crimes ​

readonly Crime[]

Returns ​

BudgetNews