Assign different paycheck amounts to each job (#29682)

This commit is contained in:
warriorstar-orion
2025-07-23 17:28:07 +00:00
committed by GitHub
parent e198177ec0
commit 9f5bf6f747
12 changed files with 60 additions and 6 deletions
+2
View File
@@ -306,6 +306,8 @@ SUBSYSTEM_DEF(economy)
amount_to_pay -= deduction
amount_to_pay = max(amount_to_pay, 0)
account.pay_check_deductions = null
if(!amount_to_pay)
continue
station_db.credit_account(account, amount_to_pay, "Payday", "NAS Trurl Payroll", FALSE)
if(account.account_type == ACCOUNT_TYPE_PERSONAL)
if(LAZYLEN(account.associated_nanobank_programs))