Fixed addGifterBotToMaps not adjusting existing gifter spawns

This commit is contained in:
Chomp
2025-04-01 12:19:06 +01:00
parent b5dafb59e2
commit 6c101de930
2 changed files with 7 additions and 2 deletions
@@ -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
View File
@@ -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>