0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Removed New Beginning quest requirement from prestige via code instead of manual json edit

This commit is contained in:
Chomp 2025-02-08 18:54:21 +00:00
parent 0c459c3d17
commit b1a2f2d2c5
3 changed files with 4976 additions and 6189 deletions

File diff suppressed because it is too large Load Diff

View File

@ -29,6 +29,21 @@
"target": "5c51aac186f77432ea65c552",
"visibilityConditions": []
},
{
"availableAfter": 0,
"conditionType": "Quest",
"dispersion": 0,
"dynamicLocale": false,
"globalQuestCounterId": "",
"id": "6761fe66b41bc1e8222b5b6e",
"index": 2,
"parentId": "",
"status": [
4
],
"target": "6761f28a022f60bb320f3e95",
"visibilityConditions": []
},
{
"compareMethod": ">=",
"conditionType": "Skill",
@ -244,7 +259,7 @@
"isHidden": false,
"items": [
{
"_id": "6793f638fc630e99950ed5c7",
"_id": "67a5cccf9e8c49896c0a3fc4",
"_tpl": "6759bb94b8913ff13e049669",
"upd": {
"SpawnedInSession": true,
@ -252,7 +267,7 @@
}
}
],
"target": "6793f638fc630e99950ed5c7",
"target": "67a5cccf9e8c49896c0a3fc4",
"type": "Item",
"unknown": false,
"value": 1
@ -274,7 +289,7 @@
"isHidden": false,
"items": [
{
"_id": "6793f638fc630e99950ed5c9",
"_id": "67a5cccf9e8c49896c0a3fc6",
"_tpl": "67614b542eb91250020f2b86",
"upd": {
"SpawnedInSession": true,
@ -282,7 +297,7 @@
}
}
],
"target": "6793f638fc630e99950ed5c9",
"target": "67a5cccf9e8c49896c0a3fc6",
"type": "Item",
"unknown": false,
"value": 1
@ -680,7 +695,7 @@
"isHidden": false,
"items": [
{
"_id": "6793f638fc630e99950ed5cb",
"_id": "67a5cccf9e8c49896c0a3fc8",
"_tpl": "674d90b55704568fe60bc8f5",
"upd": {
"SpawnedInSession": true,
@ -688,7 +703,7 @@
}
}
],
"target": "6793f638fc630e99950ed5cb",
"target": "67a5cccf9e8c49896c0a3fc8",
"type": "Item",
"unknown": false,
"value": 1
@ -816,7 +831,7 @@
"isHidden": false,
"items": [
{
"_id": "6793f638fc630e99950ed5cd",
"_id": "67a5cccf9e8c49896c0a3fca",
"_tpl": "6759e07e4ff23436160d7fed",
"upd": {
"SpawnedInSession": true,
@ -824,7 +839,7 @@
}
}
],
"target": "6793f638fc630e99950ed5cd",
"target": "67a5cccf9e8c49896c0a3fca",
"type": "Item",
"unknown": false,
"value": 1
@ -880,7 +895,7 @@
"isHidden": false,
"items": [
{
"_id": "6793f638fc630e99950ed5cf",
"_id": "67a5cccf9e8c49896c0a3fcc",
"_tpl": "67614b6b47c71ea3d40256d7",
"upd": {
"SpawnedInSession": true,
@ -888,7 +903,7 @@
}
}
],
"target": "6793f638fc630e99950ed5cf",
"target": "67a5cccf9e8c49896c0a3fcc",
"type": "Item",
"unknown": false,
"value": 1

View File

@ -112,6 +112,8 @@ export class PostDbLoadService {
this.cloneExistingCraftsAndAddNew();
this.removeNewBeginningRequirementFromPrestige();
this.removePraporTestMessage();
this.validateQuestAssortUnlocksExist();
@ -132,6 +134,15 @@ export class PostDbLoadService {
this.addCustomItemPresetsToGlobals();
}
protected removeNewBeginningRequirementFromPrestige() {
const prestigeDb = this.databaseService.getTemplates().prestige;
for (const prestige of prestigeDb.elements) {
prestige.conditions = prestige.conditions.filter(
(condition) => condition.target !== "6761ff17cdc36bd66102e9d0",
);
}
}
protected unlockHideoutLootCrateCrafts() {
const hideoutLootBoxCraftIds = [
"66582be04de4820934746cea",