1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-02-23 03:35:25 +01:00

Add new entitlements, remove EG items

(cherry picked from commit f9a48d00939d8a0a5b25b105ca93c6308329a771)
This commit is contained in:
AnthonyFuller 2023-01-26 23:02:30 +00:00
parent 1a15f4cf71
commit 9e3dabdef0
3 changed files with 52 additions and 0 deletions

@ -20,11 +20,13 @@ import { getVersionedConfig } from "./configSwizzleManager"
import type { GameVersion, Unlockable } from "./types/types"
import {
brokenItems,
CONCRETEART_UNLOCKABLES,
DELUXE_UNLOCKABLES,
EXECUTIVE_UNLOCKABLES,
H1_GOTY_UNLOCKABLES,
H1_REQUIEM_UNLOCKABLES,
H2_RACCOON_STINGRAY_UNLOCKABLES,
MAKESHIFT_UNLOCKABLES,
SIN_ENVY_UNLOCKABLES,
SIN_GLUTTONY_UNLOCKABLES,
SIN_GREED_UNLOCKABLES,
@ -121,10 +123,16 @@ export function createInventory(
return false
}
if (unlockContainer.Unlockable.Type === "evergreenmastery") {
return false
}
// This way of doing entitlements is a mess, redo this! - AF
if (gameVersion === "h3") {
if (WINTERSPORTS_UNLOCKABLES.includes(id)) {
return (
e.includes("afa4b921503f43339c360d4b53910791") ||
e.includes("84a1a6fda4fb48afbb78ee9b2addd475") || // WoA Deluxe
e.includes("1829590")
)
}
@ -133,6 +141,7 @@ export function createInventory(
return (
e.includes("6408de14f7dc46b9a33adcf6cbc4d159") ||
e.includes("afa4b921503f43339c360d4b53910791") ||
e.includes("84a1a6fda4fb48afbb78ee9b2addd475") || // WoA Deluxe
e.includes("1829590")
)
}
@ -155,6 +164,7 @@ export function createInventory(
if (H2_RACCOON_STINGRAY_UNLOCKABLES.includes(id)) {
return (
e.includes("afa4b921503f43339c360d4b53910791") ||
e.includes("84a1a6fda4fb48afbb78ee9b2addd475") || // WoA Deluxe
e.includes("1829590")
)
}
@ -180,6 +190,7 @@ export function createInventory(
if (DELUXE_UNLOCKABLES.includes(id)) {
return (
e.includes("bc610b36c75442299edcbe99f6f0fb60") ||
e.includes("84a1a6fda4fb48afbb78ee9b2addd475") || // WoA Deluxe
e.includes("1829591")
)
}
@ -250,6 +261,21 @@ export function createInventory(
)
}
// The following two must be confirmed, epic entitlements may be in the wrong order! - AF
if (MAKESHIFT_UNLOCKABLES.includes(id)) {
return (
e.includes("08d2bc4d20754191b6c488541d2b4fa1") ||
e.includes("2184791")
)
}
if (CONCRETEART_UNLOCKABLES.includes(id)) {
return (
e.includes("a1e9a63fa4f3425aa66b9b8fa3c9cc35") ||
e.includes("2184790")
)
}
return true
})

@ -197,6 +197,26 @@ export const TRINITY_UNLOCKABLES = [
"PROP_CONTAINER_SUITCASE_DEATH",
]
export const MAKESHIFT_UNLOCKABLES = [
"FIREARMS_HERO_PISTOL_MAKESHIFT",
"FIREARMS_HERO_SHOTGUN_MAKESHIFT",
"FIREARMS_HERO_RIFLE_MAKESHIFT",
"FIREARMS_HERO_SMG_TAC_SMG_MAKESHIFT",
"FIREARMS_HERO_SNIPER_MAKESHIFT",
"PROP_MELEE_KATANA_MAKESHIFT",
"TOKEN_OUTFIT_HERO_MAKESHIFT",
]
export const CONCRETEART_UNLOCKABLES = [
"FIREARMS_HERO_PISTOL_CONCRETEART",
"FIREARMS_HERO_SHOTGUN_CONCRETEART",
"FIREARMS_HERO_RIFLE_CONCRETEART",
"FIREARMS_HERO_SMG_TAC_SMG_CONCRETEART",
"FIREARMS_HERO_SNIPER_CONCRETEART",
"PROP_MELEE_BASEBALLBAT_CONCRETEART",
"TOKEN_OUTFIT_HERO_CONCRETEART",
]
export const brokenItems = [
// duped dart gun (thanks IOI)
"835ad050-6d19-4e94-80b1-f5cec9815ba3",

@ -71,6 +71,12 @@ export const H3_EPIC_ENTITLEMENTS = [
"9e936ed2507a473db6f53ad24d2da587",
// SINWRATH:
"0403062df0d347619c8dcf043c65c02e",
// WOADELUXE:
"84a1a6fda4fb48afbb78ee9b2addd475",
// MAKESHIFT:
"08d2bc4d20754191b6c488541d2b4fa1",
// CONCRETEART:
"a1e9a63fa4f3425aa66b9b8fa3c9cc35",
]
export const H2_STEAM_ENTITLEMENTS = [