mirror of
https://github.com/thepeacockproject/Peacock
synced 2025-02-10 05:24:28 +01:00
Remove The Caged Bull from h1 (#147)
* Remove caged bull from h1 * Explicitly fastClone FCgroups
This commit is contained in:
parent
9e15fcd4a2
commit
98c192f3a5
@ -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)
|
||||
}
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user