added a few more converters, Repeatables need testing
This commit is contained in:
@@ -430,7 +430,7 @@ public class RepeatableQuestGenerator(
|
||||
{
|
||||
Id = _hashUtil.Generate(),
|
||||
DynamicLocale = true,
|
||||
Target = location,
|
||||
Target = new ListOrT<string>(location, null),
|
||||
ConditionType = "Location"
|
||||
};
|
||||
}
|
||||
@@ -456,7 +456,7 @@ public class RepeatableQuestGenerator(
|
||||
{
|
||||
Id = _hashUtil.Generate(),
|
||||
DynamicLocale = true,
|
||||
Target = target, // e,g, "AnyPmc"
|
||||
Target = new ListOrT<string>(null, target), // e,g, "AnyPmc"
|
||||
Value = 1,
|
||||
ResetOnSessionEnd = false,
|
||||
EnemyHealthEffects = [],
|
||||
@@ -470,7 +470,7 @@ public class RepeatableQuestGenerator(
|
||||
|
||||
if (target.StartsWith("boss"))
|
||||
{
|
||||
killConditionProps.Target = "Savage";
|
||||
killConditionProps.Target = new ListOrT<string>(null, "Savage");
|
||||
killConditionProps.SavageRole = [target];
|
||||
}
|
||||
|
||||
@@ -812,7 +812,7 @@ public class RepeatableQuestGenerator(
|
||||
{
|
||||
Id = _hashUtil.Generate(),
|
||||
DynamicLocale = true,
|
||||
Target = locationTarget,
|
||||
Target = new ListOrT<string>(locationTarget, null),
|
||||
ConditionType = "Location"
|
||||
};
|
||||
|
||||
|
||||
@@ -437,7 +437,7 @@ public record QuestCondition
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // TODO: string[] | string
|
||||
}
|
||||
|
||||
[JsonPropertyName("value")]
|
||||
[JsonConverter(typeof(StringToNumberFactoryConverter))]
|
||||
@@ -511,11 +511,12 @@ public record QuestCondition
|
||||
}
|
||||
|
||||
[JsonPropertyName("dogtagLevel")]
|
||||
public object? DogtagLevel
|
||||
[JsonConverter(typeof(StringToNumberFactoryConverter))]
|
||||
public int? DogtagLevel
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // TODO: number | string
|
||||
}
|
||||
|
||||
[JsonPropertyName("traderId")]
|
||||
public string? TraderId
|
||||
@@ -525,18 +526,20 @@ public record QuestCondition
|
||||
}
|
||||
|
||||
[JsonPropertyName("maxDurability")]
|
||||
public object? MaxDurability
|
||||
[JsonConverter(typeof(StringToNumberFactoryConverter))]
|
||||
public double? MaxDurability
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // TODO: number | string
|
||||
}
|
||||
|
||||
[JsonPropertyName("minDurability")]
|
||||
public object? MinDurability
|
||||
[JsonConverter(typeof(StringToNumberFactoryConverter))]
|
||||
public double? MinDurability
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // TODO: number | string
|
||||
}
|
||||
|
||||
[JsonPropertyName("counter")]
|
||||
public QuestConditionCounter? Counter
|
||||
@@ -720,11 +723,12 @@ public record QuestConditionCounterCondition
|
||||
}
|
||||
|
||||
[JsonPropertyName("target")]
|
||||
public object? Target
|
||||
[JsonConverter(typeof(ListOrTConverterFactory))]
|
||||
public ListOrT<string>? Target
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // TODO: string[] | string
|
||||
}
|
||||
|
||||
[JsonPropertyName("completeInSeconds")]
|
||||
public int? CompleteInSeconds
|
||||
@@ -773,7 +777,7 @@ public record QuestConditionCounterCondition
|
||||
{
|
||||
get;
|
||||
set;
|
||||
} // TODO: number | string
|
||||
}
|
||||
|
||||
[JsonPropertyName("weapon")]
|
||||
public List<string>? Weapon
|
||||
|
||||
Reference in New Issue
Block a user