Change property naming to be more consistent (#578)
This commit is contained in:
@@ -1154,10 +1154,10 @@ public class FenceService(
|
||||
{
|
||||
foreach (var requiredSlot in softInsertSlots)
|
||||
{
|
||||
var modItemDbDetails = itemHelper.GetItem(requiredSlot.Props.Filters.First().Plate.Value).Value;
|
||||
var modItemDbDetails = itemHelper.GetItem(requiredSlot.Properties.Filters.First().Plate.Value).Value;
|
||||
|
||||
var durabilityValues = GetRandomisedArmorDurabilityValues(modItemDbDetails, traderConfig.Fence.ArmorMaxDurabilityPercentMinMax);
|
||||
var plateTpl = requiredSlot.Props.Filters.First().Plate ?? string.Empty; // "Plate" property appears to be the 'default' item for slot
|
||||
var plateTpl = requiredSlot.Properties.Filters.First().Plate ?? string.Empty; // "Plate" property appears to be the 'default' item for slot
|
||||
if (plateTpl.IsEmpty)
|
||||
// Some bsg plate properties are empty, skip mod
|
||||
{
|
||||
@@ -1205,7 +1205,7 @@ public class FenceService(
|
||||
{
|
||||
foreach (var plateSlot in plateSlots)
|
||||
{
|
||||
var plateTpl = plateSlot.Props.Filters.First().Plate;
|
||||
var plateTpl = plateSlot.Properties.Filters.First().Plate;
|
||||
if (plateTpl == null || plateTpl.Value.IsEmpty)
|
||||
// Bsg data lacks a default plate, skip randomising for this mod
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user