config/loans.lua. Players borrow from configurable tiers, pay on a schedule, and build a credit score that decides which tiers they can request.
Loan tiers
Payments
Payments are taken from the personal account when due, for offline players too. After downtime they run in order.
The total stays open after a missed payment, and payments continue past the planned end until it is paid or the loan defaults.
Pay Loan offers the next payment ahead of time, or everything at once. Paying everything waives
earlyPayoffDiscount percent of the open interest and gives a score bonus.
Cancel Loan works for cancelMinutes after taking the loan, if nothing was paid yet: the player returns the amount plus cancelFeePercent. Set cancelMinutes = 0 to turn it off.
Credit score
minCredit decides who can request it. Unpaid City Hall bills and taxes can lower the score too: see City Hall.