Integrate debt management features into Falukant daemon: Added falukant_debtors module for handling debtor logic, including daily processing and SQL queries for managing debtors' status and actions. Updated FalukantFamilyWorker to incorporate debtor checks and error handling, enhancing financial interactions and family dynamics.
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
//! optional `004` + Backend-Stammdaten für Dienerschaft (`falukant_servants`),
|
||||
//! `005` Ehe öffentliche Stabilität + Hausfrieden (`household_tension_score`),
|
||||
//! `006` Liebschafts-Unterhalt 12× pro Spieltag (alle 2 h), 1 Spieltag = 1 Spieljahr.
|
||||
//! Schuldturm/Verzug/Pfändung: `falukant_debtors::run_daily` (siehe `docs/FALUKANT_DEBTORS_DAEMON.md`).
|
||||
//!
|
||||
//! WebSocket: `falukantUpdateFamily` (reason) + `falukantUpdateStatus` für betroffene Nutzer.
|
||||
|
||||
@@ -154,6 +155,9 @@ impl FalukantFamilyWorker {
|
||||
if self.servants_schema_ready {
|
||||
super::falukant_servants::run_daily(&self.base, &self.base.broker)?;
|
||||
}
|
||||
if let Err(e) = super::falukant_debtors::run_daily(&self.base, &self.base.broker) {
|
||||
eprintln!("[FalukantFamilyWorker] falukant_debtors::run_daily: {e}");
|
||||
}
|
||||
|
||||
let mut conn = self
|
||||
.base
|
||||
|
||||
Reference in New Issue
Block a user