Fixed invalid generation of repeatables
This commit is contained in:
@@ -722,7 +722,7 @@ public class RepeatableQuestGenerator(
|
|||||||
DynamicLocale = true,
|
DynamicLocale = true,
|
||||||
VisibilityConditions = [],
|
VisibilityConditions = [],
|
||||||
GlobalQuestCounterId = "",
|
GlobalQuestCounterId = "",
|
||||||
Target = new ListOrT<string>([], itemTpl),
|
Target = new ListOrT<string>([itemTpl], null),
|
||||||
Value = value,
|
Value = value,
|
||||||
MinDurability = minDurability,
|
MinDurability = minDurability,
|
||||||
MaxDurability = 100,
|
MaxDurability = 100,
|
||||||
@@ -881,7 +881,7 @@ public class RepeatableQuestGenerator(
|
|||||||
// var locationTarget = questTypePool.pool.Pickup.locations[locationKey];
|
// var locationTarget = questTypePool.pool.Pickup.locations[locationKey];
|
||||||
|
|
||||||
var findCondition = quest.Conditions.AvailableForFinish.FirstOrDefault(x => x.ConditionType == "FindItem");
|
var findCondition = quest.Conditions.AvailableForFinish.FirstOrDefault(x => x.ConditionType == "FindItem");
|
||||||
findCondition.Target = new ListOrT<string>([], itemTypeToFetchWithCount.ItemType);
|
findCondition.Target = new ListOrT<string>([itemTypeToFetchWithCount.ItemType], null);
|
||||||
findCondition.Value = itemCountToFetch;
|
findCondition.Value = itemCountToFetch;
|
||||||
|
|
||||||
var counterCreatorCondition = quest.Conditions.AvailableForFinish.FirstOrDefault(
|
var counterCreatorCondition = quest.Conditions.AvailableForFinish.FirstOrDefault(
|
||||||
|
|||||||
Reference in New Issue
Block a user