Skip to content

Commit

Permalink
Fix market lords consumption for wonders
Browse files Browse the repository at this point in the history
  • Loading branch information
bob0005 committed Dec 24, 2024
1 parent 7b4e6a8 commit 60c6a2c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions client/src/dojo/modelManager/ResourceManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -204,14 +204,6 @@ export class ResourceManager {

let consumptionRate = Number(production.consumption_rate);

// Check if this is a Wonder producing Lords
const isWonder =
getComponentValue(this.setup.components.Realm, getEntityIdFromKeys([BigInt(this.entityId)]))?.has_wonder || false;

if (isWonder && resourceId === ResourcesIds.Lords) {
consumptionRate = consumptionRate * 0.1; // 10% of normal production rate for Wonders
}

const difference = Number(production.production_rate) - consumptionRate;
return [difference > 0, difference];
}
Expand Down

0 comments on commit 60c6a2c

Please sign in to comment.