using Core.Models.Spt.Config; using Core.Models.Utils; using Core.Utils; using Core.Utils.Cloners; using SptCommon.Annotations; namespace Core.Helpers; [Injectable] public class RepeatableQuestHelper( ISptLogger _logger ) { /// /// Get the relevant elimination config based on the current players PMC level /// /// Level of PMC character /// Main repeatable config /// EliminationConfig public EliminationConfig? GetEliminationConfigByPmcLevel(int pmcLevel, RepeatableQuestConfig repeatableConfig) { return repeatableConfig.QuestConfig.Elimination.FirstOrDefault( x => pmcLevel >= x.LevelRange.Min && pmcLevel <= x.LevelRange.Max ); } }