Define bodypart constants for efficiency
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
namespace SPTarkov.Server.Core.Constants;
|
||||
|
||||
public static class BodyParts
|
||||
{
|
||||
public const string Head = "Head";
|
||||
public const string LeftArm = "LeftArm";
|
||||
public const string RightArm = "RightArm";
|
||||
public const string Chest = "Chest";
|
||||
public const string Stomach = "Stomach";
|
||||
public const string LeftLeg = "LeftLeg";
|
||||
public const string RightLeg = "RightLeg";
|
||||
|
||||
// quest data
|
||||
public const string Legs = "Legs";
|
||||
public const string Arms = "Arms";
|
||||
}
|
||||
@@ -12,6 +12,7 @@ using SPTarkov.Server.Core.Utils;
|
||||
using SPTarkov.Server.Core.Utils.Cloners;
|
||||
using SPTarkov.Server.Core.Utils.Collections;
|
||||
using SPTarkov.Server.Core.Utils.Json;
|
||||
using BodyParts = SPTarkov.Server.Core.Constants.BodyParts;
|
||||
|
||||
namespace SPTarkov.Server.Core.Generators;
|
||||
|
||||
@@ -36,26 +37,26 @@ public class RepeatableQuestGenerator(
|
||||
private static readonly Dictionary<string, List<string>> _bodyPartsToClient = new()
|
||||
{
|
||||
{
|
||||
"Arms", [
|
||||
"LeftArm",
|
||||
"RightArm"
|
||||
BodyParts.Arms, [
|
||||
BodyParts.LeftArm,
|
||||
BodyParts.RightArm
|
||||
]
|
||||
},
|
||||
{
|
||||
"Legs", [
|
||||
"LeftLeg",
|
||||
"RightLeg"
|
||||
BodyParts.Legs, [
|
||||
BodyParts.LeftLeg,
|
||||
BodyParts.RightLeg
|
||||
]
|
||||
},
|
||||
{
|
||||
"Head", [
|
||||
"Head"
|
||||
BodyParts.Head, [
|
||||
BodyParts.Head
|
||||
]
|
||||
},
|
||||
{
|
||||
"Chest", [
|
||||
"Chest",
|
||||
"Stomach"
|
||||
BodyParts.Chest, [
|
||||
BodyParts.Chest,
|
||||
BodyParts.Stomach
|
||||
]
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user