mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-10 15:20:48 -05:00
properly pass game name to game string config finder.
add weapon prefix to weapon name parser for (iw5). add some iw3 game strings
This commit is contained in:
@ -48,7 +48,8 @@ namespace Stats.Client
|
||||
}
|
||||
|
||||
// remove the _mp suffix
|
||||
var filtered = splitWeaponName.Where(part => part != configForGame.WeaponSuffix);
|
||||
var filtered = splitWeaponName
|
||||
.Where(part => part != configForGame.WeaponSuffix && part != configForGame.WeaponPrefix);
|
||||
var baseName = splitWeaponName.First();
|
||||
var attachments = new List<string>();
|
||||
|
||||
@ -67,8 +68,6 @@ namespace Stats.Client
|
||||
}).ToList()
|
||||
};
|
||||
|
||||
// _logger.LogDebug("Parsed weapon info {@info}", weaponInfo);
|
||||
|
||||
return weaponInfo;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user