Exposed repeatable replacement cost chance values in config
This commit is contained in:
@@ -139,7 +139,7 @@ public class RepeatableQuestController(
|
||||
repeatablesOfTypeInProfile.ChangeRequirement[newRepeatableQuest.Id] = new ChangeRequirement
|
||||
{
|
||||
ChangeCost = newRepeatableQuest.ChangeCost,
|
||||
ChangeStandingCost = _randomUtil.GetArrayValue([0, 0.01])
|
||||
ChangeStandingCost = _randomUtil.GetArrayValue(repeatableConfig.StandingChangeCost)
|
||||
};
|
||||
|
||||
// Check if we should charge player for replacing quest
|
||||
@@ -464,7 +464,7 @@ public class RepeatableQuestController(
|
||||
new ChangeRequirement
|
||||
{
|
||||
ChangeCost = quest.ChangeCost,
|
||||
ChangeStandingCost = _randomUtil.GetArrayValue([0, 0.01]) // Randomise standing loss to replace
|
||||
ChangeStandingCost = _randomUtil.GetArrayValue(repeatableConfig.StandingChangeCost) // Randomise standing loss to replace
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
@@ -311,6 +311,16 @@ public record RepeatableQuestConfig
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Reputation standing price for replacing a repeatable
|
||||
/// </summary>
|
||||
[JsonPropertyName("standingChangeCost")]
|
||||
public IList<double>? StandingChangeCost
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
|
||||
public record RewardScaling
|
||||
|
||||
Reference in New Issue
Block a user