Skip to content

CRIT: Favor time limit display broken - wrong field name #64

Description

@TheCodingDad-TisonK

Severity: CRITICAL

File: src/gui/NPCFavorManagementDialog.lua:232,237,252,258
Multiplayer: No
Fix Complexity: TRIVIAL
Confidence: 100% (source-verified)

Description

References favor.expiryTime — this field does not exist on favor objects. Actual field is favor.expirationGameTime (set in NPCFavorSystem.lua:209,1325).

Impact

getTimeRemainingText() always returns "No time limit" and getTimeUrgency() always returns 0 (green). Favor expiration timers are completely invisible to the player. The favor WILL expire, but the player has no UI indication.

Fix

Replace favor.expiryTime with favor.expirationGameTime at all 4 lines (232, 237, 252, 258).


Source: Consolidated Bug Review 2026-07-26, NPF-001

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingfixedIssue has been solvedin-progressBeing actively investigatednpcNPC system

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions