Add missing weapons to WeaponType enum, fix assort comments (!292)

Added RSh-12 and 40mm GLs to WeaponTypes.ts
Fixed incorrect comments on assort functions

Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/292
Co-authored-by: Brent <wiggyvidyadev@gmail.com>
Co-committed-by: Brent <wiggyvidyadev@gmail.com>
This commit is contained in:
Brent 2024-04-16 07:34:08 +00:00 committed by chomp
parent 1cb6859f2f
commit c2b376e697
2 changed files with 9 additions and 2 deletions

View File

@ -45,7 +45,7 @@ export class AssortHelper
return traderAssorts; return traderAssorts;
} }
// Iterate over all assorts, removing items that don't fulfil the requirements // Iterate over all assorts, removing items that haven't yet been unlocked by quests (ASSORTMENT_UNLOCK)
for (const assortId in traderAssorts.loyal_level_items) for (const assortId in traderAssorts.loyal_level_items)
{ {
// Get quest id that unlocks assort + statuses quest can be in to show assort // Get quest id that unlocks assort + statuses quest can be in to show assort
@ -116,7 +116,7 @@ export class AssortHelper
return assort; return assort;
} }
// Remove items not unlocked from quest status change (ASSORTMENT_UNLOCK) // Remove items restricted by loyalty levels above those reached by the player
for (const itemId in assort.loyal_level_items) for (const itemId in assort.loyal_level_items)
{ {
if (assort.loyal_level_items[itemId] > pmcProfile.TradersInfo[traderId].loyaltyLevel) if (assort.loyal_level_items[itemId] > pmcProfile.TradersInfo[traderId].loyaltyLevel)

View File

@ -1,6 +1,7 @@
export enum Weapons127x55 export enum Weapons127x55
{ {
ASH_12 = "5cadfbf7ae92152ac412eeef", ASH_12 = "5cadfbf7ae92152ac412eeef",
RSH_12 = "633ec7c2a6918cb895019c6c",
} }
export enum Weapons86x70 export enum Weapons86x70
@ -208,3 +209,9 @@ export enum Weapons68x51
{ {
MCX_SPEAR = "65290f395ae2ae97b80fdf2d", MCX_SPEAR = "65290f395ae2ae97b80fdf2d",
} }
export enum Weapons40x46
{
M32A1 = "6275303a9f372d6ea97f9ec7",
FN40GL = "5e81ebcd8e146c7080625e15",
}