Skip to content

Commit

Permalink
Merge pull request #2593 from BibliothecaDAO/next
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus authored Dec 24, 2024
2 parents b2849c7 + 3b90c91 commit b2c0ce3
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 43 deletions.
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
},
"dependencies": {
"@bibliothecadao/eternum": "workspace:^",
"@cartridge/connector": "0.5.6",
"@cartridge/controller": "0.5.6",
"@cartridge/connector": "0.5.7",
"@cartridge/controller": "0.5.7",
"@dojoengine/core": "1.0.4-alpha.3.1.0",
"@dojoengine/create-burner": "1.0.4-alpha.3.1.0",
"@dojoengine/react": "1.0.4-alpha.3.1.0",
Expand Down
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
4 changes: 2 additions & 2 deletions landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"@ark-project/core": "3.0.0-beta.1",
"@ark-project/react": "2.0.0-beta.2",
"@bibliothecadao/eternum": "workspace:^",
"@cartridge/connector": "^0.5.6",
"@cartridge/controller": "^0.5.6",
"@cartridge/connector": "^0.5.7",
"@cartridge/controller": "^0.5.7",
"@dojoengine/core": "1.0.3-alpha.2",
"@dojoengine/create-burner": "1.0.3-alpha.2",
"@dojoengine/react": "1.0.3-alpha.2",
Expand Down
62 changes: 31 additions & 31 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b2c0ce3

Please sign in to comment.