Allow zero amount debit and credit operations #112
No reviewers
Labels
No labels
bug
confirmed
critical
discussion
documentation
enhancement
game design
needs cadhan to fix tests
suggestion
support
tests
UI
under the rug
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
owenryan/carbonopoly!112
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "cadhan/debit_credit_fix"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Zero balance scenarios no longer will crash by allowing debit(0) and credit(0) to be zero operations. Several square effects use Math.min(amount, balance) and will pass 0 when a player has no money. The previous debit and credit methods would throw errors on 0, which would have caused crashes.
requested review from @40441512, @40446360, @40439721, @40444856, @40441188, and @40457809
assigned to @40435022
approved this merge request
mentioned in commit
6801c28043