From 85900724e5c1cef20b0fee6a96c984a56e48d3fa Mon Sep 17 00:00:00 2001 From: Chomp Date: Fri, 21 Feb 2025 15:07:41 +0000 Subject: [PATCH] Fixed `multipler` typo --- Libraries/Core/Controllers/TraderController.cs | 4 ++-- Libraries/Core/Generators/RagfairOfferGenerator.cs | 12 ++++++------ Libraries/Core/Helpers/HideoutHelper.cs | 12 ++++++------ Libraries/Core/Helpers/ProfileHelper.cs | 6 +++--- Libraries/Core/Helpers/QuestRewardHelper.cs | 2 +- Libraries/Core/Helpers/RepairHelper.cs | 14 +++++++------- Libraries/Core/Models/Spt/Config/HideoutConfig.cs | 2 +- Libraries/Core/Models/Spt/Config/TraderConfig.cs | 2 +- Libraries/Core/Services/CircleOfCultistService.cs | 4 ++-- Libraries/Core/Services/FenceService.cs | 2 +- Libraries/Core/Services/InsuranceService.cs | 2 +- .../Core/Services/RaidTimeAdjustmentService.cs | 8 ++++---- 12 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Libraries/Core/Controllers/TraderController.cs b/Libraries/Core/Controllers/TraderController.cs index 43cbdad0..5ef5e1e7 100644 --- a/Libraries/Core/Controllers/TraderController.cs +++ b/Libraries/Core/Controllers/TraderController.cs @@ -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 diff --git a/Libraries/Core/Generators/RagfairOfferGenerator.cs b/Libraries/Core/Generators/RagfairOfferGenerator.cs index 41edcec1..a2428e0a 100644 --- a/Libraries/Core/Generators/RagfairOfferGenerator.cs +++ b/Libraries/Core/Generators/RagfairOfferGenerator.cs @@ -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 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 CreateCurrencyBarterScheme( List 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 [ diff --git a/Libraries/Core/Helpers/HideoutHelper.cs b/Libraries/Core/Helpers/HideoutHelper.cs index 1d311b64..3455422e 100644 --- a/Libraries/Core/Helpers/HideoutHelper.cs +++ b/Libraries/Core/Helpers/HideoutHelper.cs @@ -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( /// /// - /// Player profile + /// Player profile /// Time to complete hideout craft in seconds /// Skill bonus to get reduction from /// Skill bonus amount to apply @@ -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; } /// diff --git a/Libraries/Core/Helpers/ProfileHelper.cs b/Libraries/Core/Helpers/ProfileHelper.cs index e73975ac..8a1540c1 100644 --- a/Libraries/Core/Helpers/ProfileHelper.cs +++ b/Libraries/Core/Helpers/ProfileHelper.cs @@ -485,8 +485,8 @@ public class ProfileHelper( /// Player profile with skill /// Skill to add points to /// Points to add - /// Skills are multiplied by a value in globals, default is off to maintain compatibility with legacy code - public void AddSkillPointsToPlayer(PmcData pmcProfile, SkillTypes skill, double? pointsToAdd, bool useSkillProgressRateMultipler = false) + /// Skills are multiplied by a value in globals, default is off to maintain compatibility with legacy code + 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; diff --git a/Libraries/Core/Helpers/QuestRewardHelper.cs b/Libraries/Core/Helpers/QuestRewardHelper.cs index 728f6a4a..f4b5c26e 100644 --- a/Libraries/Core/Helpers/QuestRewardHelper.cs +++ b/Libraries/Core/Helpers/QuestRewardHelper.cs @@ -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; diff --git a/Libraries/Core/Helpers/RepairHelper.cs b/Libraries/Core/Helpers/RepairHelper.cs index 96e65063..a92a7117 100644 --- a/Libraries/Core/Helpers/RepairHelper.cs +++ b/Libraries/Core/Helpers/RepairHelper.cs @@ -30,7 +30,7 @@ public class RepairHelper( /// Is item being repaired a piece of armor /// how many unit of durability to repair /// Is item being repaired with a repair kit - /// Trader quality value from traders base json + /// Trader quality value from traders base json /// should item have max durability reduced 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( /// What material is the armor being repaired made of /// Was a repair kit used /// Max amount of durability item can have - /// Different traders produce different loss values + /// Different traders produce different loss values /// Amount to reduce max durability by 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); } diff --git a/Libraries/Core/Models/Spt/Config/HideoutConfig.cs b/Libraries/Core/Models/Spt/Config/HideoutConfig.cs index a961245c..5f540eb6 100644 --- a/Libraries/Core/Models/Spt/Config/HideoutConfig.cs +++ b/Libraries/Core/Models/Spt/Config/HideoutConfig.cs @@ -127,7 +127,7 @@ public record CultistCircleSettings } [JsonPropertyName("rewardPriceMultiplerMinMax")] - public MinMax RewardPriceMultiplerMinMax + public MinMax RewardPriceMultiplierMinMax { get; set; diff --git a/Libraries/Core/Models/Spt/Config/TraderConfig.cs b/Libraries/Core/Models/Spt/Config/TraderConfig.cs index 562a49d2..2b0d553e 100644 --- a/Libraries/Core/Models/Spt/Config/TraderConfig.cs +++ b/Libraries/Core/Models/Spt/Config/TraderConfig.cs @@ -45,7 +45,7 @@ public record TraderConfig : BaseConfig } [JsonPropertyName("traderPriceMultipler")] - public double TraderPriceMultipler + public double TraderPriceMultiplier { get; set; diff --git a/Libraries/Core/Services/CircleOfCultistService.cs b/Libraries/Core/Services/CircleOfCultistService.cs index cb2e1018..71d2d98a 100644 --- a/Libraries/Core/Services/CircleOfCultistService.cs +++ b/Libraries/Core/Services/CircleOfCultistService.cs @@ -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 diff --git a/Libraries/Core/Services/FenceService.cs b/Libraries/Core/Services/FenceService.cs index 41c1b389..0c951043 100644 --- a/Libraries/Core/Services/FenceService.cs +++ b/Libraries/Core/Services/FenceService.cs @@ -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; diff --git a/Libraries/Core/Services/InsuranceService.cs b/Libraries/Core/Services/InsuranceService.cs index 69b60e96..aa0d0008 100644 --- a/Libraries/Core/Services/InsuranceService.cs +++ b/Libraries/Core/Services/InsuranceService.cs @@ -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; } diff --git a/Libraries/Core/Services/RaidTimeAdjustmentService.cs b/Libraries/Core/Services/RaidTimeAdjustmentService.cs index 6ec29b99..675b0a90 100644 --- a/Libraries/Core/Services/RaidTimeAdjustmentService.cs +++ b/Libraries/Core/Services/RaidTimeAdjustmentService.cs @@ -90,13 +90,13 @@ public class RaidTimeAdjustmentService( /// /// Adjust the loot multiplier values passed in to be a % of their original value /// - /// Multipliers to adjust + /// Multipliers to adjust /// Percent to change values to - protected void AdjustLootMultipliers(Dictionary mapLootMultiplers, double? loosePercent) + protected void AdjustLootMultipliers(Dictionary 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); } }