fix: add missing weapon_dpp and weapon_cost_per_hour parameters to start_session

- Added for backward compatibility with main_window.py
- These parameters are accepted but not used in the clean HUD
- Fixes TypeError when starting session
This commit is contained in:
LemonNexus 2026-02-09 22:41:49 +00:00
parent cd5f03c002
commit f9b4d9a44b
1 changed files with 2 additions and 0 deletions

View File

@ -530,6 +530,8 @@ class HUDOverlay(QWidget):
def start_session(self, weapon: str = "Unknown", armor: str = "None", def start_session(self, weapon: str = "Unknown", armor: str = "None",
fap: str = "None", loadout: str = "Default", fap: str = "None", loadout: str = "Default",
weapon_dpp: Decimal = Decimal('0.0'),
weapon_cost_per_hour: Decimal = Decimal('0.0'),
cost_per_shot: Decimal = Decimal('0.0'), cost_per_shot: Decimal = Decimal('0.0'),
cost_per_hit: Decimal = Decimal('0.0'), cost_per_hit: Decimal = Decimal('0.0'),
cost_per_heal: Decimal = Decimal('0.0')) -> None: cost_per_heal: Decimal = Decimal('0.0')) -> None: