Accounts and heroes
How accounts, personas, heroes, and wallets are modeled
An account is the login a player uses in the launcher. Each account owns one or more heroes, and each hero has its own class, equipment, statistics, and wallet balance.
Accounts
Accounts are created on the website. The launcher exchanges the login for a short session through the /launcher/session endpoint, so the game itself never asks for a password.
Heroes
A hero belongs to an army and a class. Equipment is stored in the hero statistics, which means an item from the wrong army can silently disappear from a slot. Check the army first when equipment looks empty.
Wallet
Every change of a balance is written as an entry in the wallet history. To grant currency, update the wallet and add the matching history entry in one transaction.
Edit balances only inside a transaction, and take a fresh backup first.
Related pages
- Command line for verifying accounts and kicking sessions.
- Database for connecting to PostgreSQL.