1
0
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:
RaidMax
2021-03-23 16:01:48 -05:00
parent c6db9a8493
commit 4179e8b428
6 changed files with 74 additions and 14 deletions

View File

@ -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;
}
}