1
mirror of https://github.com/thepeacockproject/Peacock synced 2025-02-10 05:24:28 +01:00

Remove The Caged Bull from h1 ()

* Remove caged bull from h1

* Explicitly fastClone FCgroups
This commit is contained in:
moonysolari 2023-02-28 20:21:58 -05:00 committed by GitHub
parent 9e15fcd4a2
commit 98c192f3a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,7 @@ import {
} from "../controller"
import { getUserData } from "../databaseHandler"
import { orderedETs } from "./elusiveTargets"
import { fastClone } from "components/utils"
function paginate<Element>(
elements: Element[],
@ -140,7 +141,17 @@ export class HitsCategoryService {
this.hitsCategories
.for("Featured")
.tap(tapName, (gameVersion, contracts) => {
for (const fcGroup of featuredContractGroups) {
const cagedBull = "ee0411d6-b3e7-4320-b56b-25c45d8a9d61"
const clonedGroups = fastClone(featuredContractGroups)
for (const fcGroup of clonedGroups) {
if (gameVersion === "h1" && fcGroup.includes(cagedBull)) {
fcGroup.splice(
fcGroup.findIndex((id) => id === cagedBull),
1,
)
}
contracts.push(...fcGroup)
}
})