mirror of
https://github.com/DorkSquadRR/DorkNet.git
synced 2026-10-26 07:28:45 -07:00
feat: Implement quest reward chest functionality; enhance gift generation and consumption logic, update database schema, and add tests for new behavior
This commit is contained in:
@@ -93,4 +93,11 @@ public class GiftPackageEntity
|
||||
public DateTime? ConsumedAt { get; set; }
|
||||
|
||||
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||||
|
||||
/// <summary>When > 0, the exact StoreItem this gift grants on
|
||||
/// consume — used by quest-reward chests so consuming grants the
|
||||
/// right item regardless of kind (avatar / equipment / consumable)
|
||||
/// via <c>StoreService.GrantItemAsync</c>. 0 = legacy gift whose
|
||||
/// payload is derived from the wire fields above. Not on wire.</summary>
|
||||
public long SourceStoreItemId { get; set; }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user