Deconstructed dictionaries to improve readability

This commit is contained in:
Chomp
2025-06-27 23:21:44 +01:00
parent 6f4bbe02fe
commit d2267847a8
12 changed files with 76 additions and 72 deletions
@@ -497,10 +497,10 @@ public class InsuranceController(
_mathUtil,
_cloner
);
foreach (var attachmentTpl in weightedAttachmentByPrice)
foreach (var (itemTpl, price) in weightedAttachmentByPrice)
{
attachmentsProbabilityArray.Add(
new ProbabilityObject<string, double?>(attachmentTpl.Key, attachmentTpl.Value, null)
new ProbabilityObject<string, double?>(itemTpl, price, null)
);
}