Fixed seasonal event quests not appearing

This commit is contained in:
Chomp
2025-06-08 21:28:20 +01:00
parent 3d7eaca32a
commit 445c7c2c1e
2 changed files with 10 additions and 15 deletions
@@ -91,28 +91,28 @@
},
"675031be899713ccad00060c": {
"name": "Christmas Dinner",
"season": "christmas",
"season": "Christmas",
"startTimestamp": 1701388800000,
"endTimestamp": 1703980800000,
"yearly": true
},
"675031d3884e1da4a90b3bc9": {
"name": "Chilly",
"season": "christmas",
"season": "Christmas",
"startTimestamp": 1701388800000,
"endTimestamp": 1703980800000,
"yearly": true
},
"6750320e23fc8fd9cc087d14": {
"name": "Holiday Beyond the Means",
"season": "christmas",
"season": "Christmas",
"startTimestamp": 1701388800000,
"endTimestamp": 1703980800000,
"yearly": true
},
"67503247622398376d0b57cd": {
"name": "Khorovod",
"season": "christmas",
"season": "Christmas",
"startTimestamp": 1701388800000,
"endTimestamp": 1703980800000,
"yearly": true
@@ -175,14 +175,14 @@
},
"670404a2ea1caa8f2e0be106": {
"name": "Dont Believe Your Eyes",
"season": "halloween",
"season": "Halloween",
"startTimestamp": 1341615600000,
"endTimestamp": "",
"yearly": true
},
"67190f6c1b3f4964d90d71e9": {
"name": "Global Threat",
"season": "halloween",
"season": "Halloween",
"startTimestamp": 1341615600000,
"endTimestamp": "",
"yearly": true
@@ -196,14 +196,14 @@
},
"675031e1f300496cc4104450": {
"name": "Hide in Plain Sight",
"season": "christmas",
"season": "Christmas",
"startTimestamp": 1701388800000,
"endTimestamp": 1703980800000,
"yearly": true
},
"675031f57775aada6b0f96a1": {
"name": "Cheer up",
"season": "christmas",
"season": "Christmas",
"startTimestamp": 1701388800000,
"endTimestamp": 1703980800000,
"yearly": true
@@ -225,17 +225,12 @@ public class SeasonalEventService(
/// Look up quest in configs/quest.json
/// </summary>
/// <param name="questId">Quest to look up</param>
/// <param name="event">event type (Christmas/Halloween/None)</param>
/// <param name="eventType">event type (Christmas/Halloween/None)</param>
/// <returns>true if related</returns>
public bool IsQuestRelatedToEvent(string questId, SeasonalEventType eventType)
{
var eventQuestData = _questConfig.EventQuests.GetValueOrDefault(questId, null);
if (eventQuestData?.Season == eventType)
{
return true;
}
return false;
return eventQuestData?.Season == eventType;
}
/// <summary>