Fix gil cost estimation
authorLiza Carvelli <liza@carvel.li>
Sun, 10 Aug 2025 18:22:39 +0000 (20:22 +0200)
committerLiza Carvelli <liza@carvel.li>
Sun, 10 Aug 2025 18:22:39 +0000 (20:22 +0200)
Questionable/Functions/QuestFunctions.cs

index 30c3a3ad0ad20cad96824fa9e53e8f8f0e3a674a..70783c7587aebfbb3a7a6603d2fc362814dccfdb 100644 (file)
@@ -456,7 +456,7 @@ internal sealed unsafe class QuestFunctions
 
         int baseCost = quest.Info.Expansion == EExpansionVersion.ARealmReborn ? 300 : 1000;
         return quest.AllSteps().Where(x => x.Step.AetheryteShortcut != null)
-            .Sum(x => (int)(baseCost * cheapTeleports.GetValueOrDefault(x.Step.AethernetShortcut!.From, 1f)));
+            .Sum(x => (int)(baseCost * cheapTeleports.GetValueOrDefault(x.Step.AetheryteShortcut!.Value, 1f)));
     }
 
     public List<ElementId> GetPriorityQuests(bool onlyClassAndRoleQuests = false)