made class props readonly

Removed unused injections

Removed unnecessary .ToLower()
This commit is contained in:
Chomp
2025-06-09 11:47:49 +01:00
parent d36ac06eb1
commit d9132e5325
2 changed files with 5 additions and 7 deletions
@@ -829,12 +829,12 @@ public class RepeatableQuestController(
protected bool IsPmcLevelAllowedOnLocation(string location, int pmcLevel)
{
// All PMC levels are allowed for 'any' location requirement
if (location == ELocationName.any.ToString())
if (location == nameof(ELocationName.any))
{
return true;
}
var locationBase = _databaseService.GetLocation(location.ToLower())?.Base;
var locationBase = _databaseService.GetLocation(location)?.Base;
if (locationBase is null)
{
return true;