Fixed multipler typo
This commit is contained in:
@@ -60,9 +60,9 @@ public class TraderController(
|
||||
}
|
||||
|
||||
// Adjust price by traderPriceMultiplier config property
|
||||
if (_traderConfig.TraderPriceMultipler != 1)
|
||||
if (_traderConfig.TraderPriceMultiplier != 1)
|
||||
{
|
||||
AdjustTraderItemPrices(trader, _traderConfig.TraderPriceMultipler);
|
||||
AdjustTraderItemPrices(trader, _traderConfig.TraderPriceMultiplier);
|
||||
}
|
||||
|
||||
// Create dict of pristine trader assorts on server start
|
||||
|
||||
@@ -830,10 +830,10 @@ public class RagfairOfferGenerator(
|
||||
}
|
||||
|
||||
/**
|
||||
* Randomise the durabiltiy values for an armors plates and soft inserts
|
||||
* Randomise the durability values for an armors plates and soft inserts
|
||||
* @param armorWithMods Armor item with its child mods
|
||||
* @param currentMultiplier Chosen multipler to use for current durability value
|
||||
* @param maxMultiplier Chosen multipler to use for max durability value
|
||||
* @param currentMultiplier Chosen multiplier to use for current durability value
|
||||
* @param maxMultiplier Chosen multiplier to use for max durability value
|
||||
*/
|
||||
protected void RandomiseArmorDurabilityValues(
|
||||
List<Item> armorWithMods,
|
||||
@@ -1024,17 +1024,17 @@ public class RagfairOfferGenerator(
|
||||
* Create a random currency-based barter scheme for an array of items
|
||||
* @param offerWithChildren Items on offer
|
||||
* @param isPackOffer Is the barter scheme being created for a pack offer
|
||||
* @param multipler What to multiply the resulting price by
|
||||
* @param multiplier What to multiply the resulting price by
|
||||
* @returns Barter scheme for offer
|
||||
*/
|
||||
protected List<BarterScheme> CreateCurrencyBarterScheme(
|
||||
List<Item> offerWithChildren,
|
||||
bool isPackOffer,
|
||||
double multipler = 1
|
||||
double multiplier = 1
|
||||
)
|
||||
{
|
||||
var currency = ragfairServerHelper.GetDynamicOfferCurrency();
|
||||
var price = ragfairPriceService.GetDynamicOfferPriceForOffer(offerWithChildren, currency, isPackOffer) * multipler;
|
||||
var price = ragfairPriceService.GetDynamicOfferPriceForOffer(offerWithChildren, currency, isPackOffer) * multiplier;
|
||||
|
||||
return
|
||||
[
|
||||
|
||||
@@ -919,7 +919,7 @@ public class HideoutHelper(
|
||||
SkillTypes.HideoutManagement,
|
||||
globalSkillsDb.HideoutManagement.ConsumptionReductionPerLevel ?? 0
|
||||
);
|
||||
var craftSkillTimeReductionMultipler = GetSkillBonusMultipliedBySkillLevel(
|
||||
var craftSkillTimeReductionMultiplier = GetSkillBonusMultipliedBySkillLevel(
|
||||
pmcData,
|
||||
SkillTypes.Crafting,
|
||||
globalSkillsDb.Crafting.CraftTimeReductionPerLevel ?? 0
|
||||
@@ -927,9 +927,9 @@ public class HideoutHelper(
|
||||
|
||||
// Never let bonus become 0
|
||||
var reductionBonus =
|
||||
hideoutManagementConsumptionBonus + craftSkillTimeReductionMultipler == 0
|
||||
hideoutManagementConsumptionBonus + craftSkillTimeReductionMultiplier == 0
|
||||
? 1
|
||||
: 1 - (hideoutManagementConsumptionBonus + craftSkillTimeReductionMultipler);
|
||||
: 1 - (hideoutManagementConsumptionBonus + craftSkillTimeReductionMultiplier);
|
||||
|
||||
return filterDrainRate * reductionBonus;
|
||||
}
|
||||
@@ -1277,7 +1277,7 @@ public class HideoutHelper(
|
||||
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
/// <param name="profileData">Player profile</param>
|
||||
/// <param name="pmcData">Player profile</param>
|
||||
/// <param name="productionTime">Time to complete hideout craft in seconds</param>
|
||||
/// <param name="skill">Skill bonus to get reduction from</param>
|
||||
/// <param name="amountPerLevel">Skill bonus amount to apply</param>
|
||||
@@ -1288,9 +1288,9 @@ public class HideoutHelper(
|
||||
SkillTypes skill,
|
||||
double amountPerLevel)
|
||||
{
|
||||
var skillTimeReductionMultipler = GetSkillBonusMultipliedBySkillLevel(pmcData, skill, amountPerLevel);
|
||||
var skillTimeReductionMultiplier = GetSkillBonusMultipliedBySkillLevel(pmcData, skill, amountPerLevel);
|
||||
|
||||
return productionTime * skillTimeReductionMultipler;
|
||||
return productionTime * skillTimeReductionMultiplier;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -485,8 +485,8 @@ public class ProfileHelper(
|
||||
/// <param name="pmcProfile">Player profile with skill</param>
|
||||
/// <param name="skill">Skill to add points to</param>
|
||||
/// <param name="pointsToAdd">Points to add</param>
|
||||
/// <param name="useSkillProgressRateMultipler">Skills are multiplied by a value in globals, default is off to maintain compatibility with legacy code</param>
|
||||
public void AddSkillPointsToPlayer(PmcData pmcProfile, SkillTypes skill, double? pointsToAdd, bool useSkillProgressRateMultipler = false)
|
||||
/// <param name="useSkillProgressRateMultiplier">Skills are multiplied by a value in globals, default is off to maintain compatibility with legacy code</param>
|
||||
public void AddSkillPointsToPlayer(PmcData pmcProfile, SkillTypes skill, double? pointsToAdd, bool useSkillProgressRateMultiplier = false)
|
||||
{
|
||||
var pointsToAddToSkill = pointsToAdd;
|
||||
|
||||
@@ -510,7 +510,7 @@ public class ProfileHelper(
|
||||
return;
|
||||
}
|
||||
|
||||
if (useSkillProgressRateMultipler)
|
||||
if (useSkillProgressRateMultiplier)
|
||||
{
|
||||
var skillProgressRate = _databaseService.GetGlobals().Configuration.SkillsSettings.SkillProgressRate;
|
||||
pointsToAddToSkill *= skillProgressRate;
|
||||
|
||||
@@ -123,7 +123,7 @@ public class QuestRewardHelper(
|
||||
var hideoutManagementSkill = _profileHelper.GetSkillFromProfile(pmcData, SkillTypes.HideoutManagement);
|
||||
|
||||
// 5100 becomes 0.51, add 1 to it, 1.51
|
||||
// We multiply the money reward bonuses by the hideout management skill multipler, giving the new result
|
||||
// We multiply the money reward bonuses by the hideout management skill multiplier, giving the new result
|
||||
var hideoutManagementBonusMultiplier = hideoutManagementSkill != null
|
||||
? 1 + hideoutManagementSkill.Progress / 1000
|
||||
: 1;
|
||||
|
||||
@@ -30,7 +30,7 @@ public class RepairHelper(
|
||||
/// <param name="isArmor">Is item being repaired a piece of armor</param>
|
||||
/// <param name="amountToRepair">how many unit of durability to repair</param>
|
||||
/// <param name="useRepairKit">Is item being repaired with a repair kit</param>
|
||||
/// <param name="traderQualityMultipler">Trader quality value from traders base json</param>
|
||||
/// <param name="traderQualityMultiplier">Trader quality value from traders base json</param>
|
||||
/// <param name="applyMaxDurabilityDegradation">should item have max durability reduced</param>
|
||||
public void UpdateItemDurability(
|
||||
Item itemToRepair,
|
||||
@@ -38,7 +38,7 @@ public class RepairHelper(
|
||||
bool isArmor,
|
||||
double amountToRepair,
|
||||
bool useRepairKit,
|
||||
double traderQualityMultipler,
|
||||
double traderQualityMultiplier,
|
||||
bool applyMaxDurabilityDegradation = true
|
||||
)
|
||||
{
|
||||
@@ -82,13 +82,13 @@ public class RepairHelper(
|
||||
itemToRepairDetails.Properties.ArmorMaterial.Value,
|
||||
useRepairKit,
|
||||
itemCurrentMaxDurability ?? 0,
|
||||
traderQualityMultipler
|
||||
traderQualityMultiplier
|
||||
)
|
||||
: GetRandomisedWeaponRepairDegradationValue(
|
||||
itemToRepairDetails.Properties,
|
||||
useRepairKit,
|
||||
itemCurrentMaxDurability ?? 0,
|
||||
traderQualityMultipler
|
||||
traderQualityMultiplier
|
||||
);
|
||||
|
||||
// Apply wear to durability
|
||||
@@ -114,13 +114,13 @@ public class RepairHelper(
|
||||
/// <param name="material">What material is the armor being repaired made of</param>
|
||||
/// <param name="isRepairKit">Was a repair kit used</param>
|
||||
/// <param name="armorMax">Max amount of durability item can have</param>
|
||||
/// <param name="traderQualityMultipler">Different traders produce different loss values</param>
|
||||
/// <param name="traderQualityMultiplier">Different traders produce different loss values</param>
|
||||
/// <returns>Amount to reduce max durability by</returns>
|
||||
protected double GetRandomisedArmorRepairDegradationValue(
|
||||
ArmorMaterial material,
|
||||
bool isRepairKit,
|
||||
double armorMax,
|
||||
double traderQualityMultipler
|
||||
double traderQualityMultiplier
|
||||
)
|
||||
{
|
||||
// Degradation value is based on the armor material
|
||||
@@ -138,7 +138,7 @@ public class RepairHelper(
|
||||
: armorMaterialSettings.MaxRepairDegradation;
|
||||
|
||||
var duraLossPercent = _randomUtil.GetDouble((double) minMultiplier, (double) maxMultiplier);
|
||||
var duraLossMultipliedByTraderMultiplier = duraLossPercent * armorMax * traderQualityMultipler;
|
||||
var duraLossMultipliedByTraderMultiplier = duraLossPercent * armorMax * traderQualityMultiplier;
|
||||
|
||||
return Math.Round(duraLossMultipliedByTraderMultiplier, 2);
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ public record CultistCircleSettings
|
||||
}
|
||||
|
||||
[JsonPropertyName("rewardPriceMultiplerMinMax")]
|
||||
public MinMax<double> RewardPriceMultiplerMinMax
|
||||
public MinMax<double> RewardPriceMultiplierMinMax
|
||||
{
|
||||
get;
|
||||
set;
|
||||
|
||||
@@ -45,7 +45,7 @@ public record TraderConfig : BaseConfig
|
||||
}
|
||||
|
||||
[JsonPropertyName("traderPriceMultipler")]
|
||||
public double TraderPriceMultipler
|
||||
public double TraderPriceMultiplier
|
||||
{
|
||||
get;
|
||||
set;
|
||||
|
||||
@@ -128,8 +128,8 @@ public class CircleOfCultistService(
|
||||
{
|
||||
// Get a randomised value to multiply the sacrificed rouble cost by
|
||||
var rewardAmountMultiplier = _randomUtil.GetDouble(
|
||||
(double) cultistCircleSettings.RewardPriceMultiplerMinMax.Min,
|
||||
(double) cultistCircleSettings.RewardPriceMultiplerMinMax.Max
|
||||
(double) cultistCircleSettings.RewardPriceMultiplierMinMax.Min,
|
||||
(double) cultistCircleSettings.RewardPriceMultiplierMinMax.Max
|
||||
);
|
||||
|
||||
// Adjust value generated by the players hideout management skill
|
||||
|
||||
@@ -994,7 +994,7 @@ public class FenceService(
|
||||
return;
|
||||
}
|
||||
|
||||
var multipler = current / itemTotalMax;
|
||||
var multiplier = current / itemTotalMax;
|
||||
|
||||
// Multiply item cost by desired multiplier
|
||||
var basePrice = barterSchemes[itemRoot.Id][0][0].Count;
|
||||
|
||||
@@ -178,7 +178,7 @@ public class InsuranceService(
|
||||
"SpecialSlot"
|
||||
);
|
||||
if (hasMarkOfUnheard)
|
||||
// Reduce return time by globals multipler value
|
||||
// Reduce return time by globals multiplier value
|
||||
{
|
||||
randomisedReturnTimeSeconds *= globals.Configuration.Insurance.CoefOfHavingMarkOfUnknown.Value;
|
||||
}
|
||||
|
||||
@@ -90,13 +90,13 @@ public class RaidTimeAdjustmentService(
|
||||
/// <summary>
|
||||
/// Adjust the loot multiplier values passed in to be a % of their original value
|
||||
/// </summary>
|
||||
/// <param name="mapLootMultiplers">Multipliers to adjust</param>
|
||||
/// <param name="mapLootMultipliers">Multipliers to adjust</param>
|
||||
/// <param name="loosePercent">Percent to change values to</param>
|
||||
protected void AdjustLootMultipliers(Dictionary<string, double> mapLootMultiplers, double? loosePercent)
|
||||
protected void AdjustLootMultipliers(Dictionary<string, double> mapLootMultipliers, double? loosePercent)
|
||||
{
|
||||
foreach (var location in mapLootMultiplers)
|
||||
foreach (var location in mapLootMultipliers)
|
||||
{
|
||||
mapLootMultiplers[location.Key] = _randomUtil.GetPercentOfValue(mapLootMultiplers[location.Key], loosePercent ?? 1);
|
||||
mapLootMultipliers[location.Key] = _randomUtil.GetPercentOfValue(mapLootMultipliers[location.Key], loosePercent ?? 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user