Route the game's `money.delta` events into the web banking system so a player's personal bank account tracks their in-game wallet. - New `processMoneyEvent` (src/lib/arma-bridge/money.ts) applies a parsed money delta to the player's personal account: debits go to the unit treasury (or leave if no treasury), refunds hit the treasury first and fall back to a plain deposit, and rewards/grants deposit directly. - Wire the handler into ArmaSyncEvents and add a `POST /api/arma/v1/balances` route (get_balances) that returns personal balances for Steam IDs, omitting unlinked IDs so the game keeps its own stored value. - Events dedupe by serverId+eventId so a retried delivery never double-charges, and the whole path never throws. |
||
|---|---|---|
| .. | ||
| arma/v1 | ||
| game-tick/notify | ||
| health | ||
| impersonation | ||
| map-features | ||
| map-import | ||
| mission-reminder | ||
| realtime | ||
| surveys/pending | ||
| version | ||