Fixed addGifterBotToMaps not adjusting existing gifter spawns
This commit is contained in:
@@ -1024,12 +1024,16 @@ public class SeasonalEventService(
|
||||
if (!maps.TryGetValue(gifterMapSettings.Map, out var mapData))
|
||||
{
|
||||
_logger.Warning($"AddGifterBotToMaps() Map not found {gifterMapSettings.Map}");
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
// Dont add gifter to map twice
|
||||
if (mapData.Base.BossLocationSpawn.Any(boss => boss.BossName == "gifter"))
|
||||
// Don't add gifter to map twice
|
||||
var existingGifter = mapData.Base.BossLocationSpawn.FirstOrDefault(boss => boss.BossName == "gifter");
|
||||
if (existingGifter is not null)
|
||||
{
|
||||
existingGifter.BossChance = gifterMapSettings.SpawnChance;
|
||||
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Gifter/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=ragfair/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=scav/@EntryIndexedValue">True</s:Boolean>
|
||||
<s:Boolean x:Key="/Default/UserDictionary/Words/=Tarkov/@EntryIndexedValue">True</s:Boolean>
|
||||
|
||||
Reference in New Issue
Block a user