Fixed incorrect filtering of bad cultist circle rewards
This commit is contained in:
parent
3f05400c87
commit
b0cfa682c0
@ -358,7 +358,7 @@ export class CircleOfCultistService {
|
|||||||
// Next stage exists, gather up requirements and add to pool
|
// Next stage exists, gather up requirements and add to pool
|
||||||
const itemRequirements = this.getItemRequirements(nextStageDbData.requirements);
|
const itemRequirements = this.getItemRequirements(nextStageDbData.requirements);
|
||||||
for (const rewardToAdd of itemRequirements) {
|
for (const rewardToAdd of itemRequirements) {
|
||||||
if (!itemRewardBlacklist.includes(rewardToAdd.templateId)) {
|
if (itemRewardBlacklist.includes(rewardToAdd.templateId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -373,7 +373,7 @@ export class CircleOfCultistService {
|
|||||||
for (const recipe of this.getPlayerAccessibleRecipes(playerUnlockedRecipes, allRecipes)) {
|
for (const recipe of this.getPlayerAccessibleRecipes(playerUnlockedRecipes, allRecipes)) {
|
||||||
const itemRequirements = this.getItemRequirements(recipe.requirements);
|
const itemRequirements = this.getItemRequirements(recipe.requirements);
|
||||||
for (const requirement of itemRequirements) {
|
for (const requirement of itemRequirements) {
|
||||||
if (!itemRewardBlacklist.includes(requirement.templateId)) {
|
if (itemRewardBlacklist.includes(requirement.templateId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -390,7 +390,7 @@ export class CircleOfCultistService {
|
|||||||
// Find the item requirements from each craft
|
// Find the item requirements from each craft
|
||||||
const itemRequirements = this.getItemRequirements(craft.Requirements);
|
const itemRequirements = this.getItemRequirements(craft.Requirements);
|
||||||
for (const requirement of itemRequirements) {
|
for (const requirement of itemRequirements) {
|
||||||
if (!itemRewardBlacklist.includes(requirement.templateId)) {
|
if (itemRewardBlacklist.includes(requirement.templateId)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -403,7 +403,7 @@ export class CircleOfCultistService {
|
|||||||
// Add custom rewards from config
|
// Add custom rewards from config
|
||||||
if (cultistCircleConfig.additionalRewardItemPool.length > 0) {
|
if (cultistCircleConfig.additionalRewardItemPool.length > 0) {
|
||||||
for (const additionalReward of cultistCircleConfig.additionalRewardItemPool) {
|
for (const additionalReward of cultistCircleConfig.additionalRewardItemPool) {
|
||||||
if (!itemRewardBlacklist.includes(additionalReward)) {
|
if (itemRewardBlacklist.includes(additionalReward)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user