Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

energyCapacityAvailable not checking controller owner #39

Closed
pbrink231 opened this issue Jun 22, 2017 · 3 comments
Closed

energyCapacityAvailable not checking controller owner #39

pbrink231 opened this issue Jun 22, 2017 · 3 comments

Comments

@pbrink231
Copy link

pbrink231 commented Jun 22, 2017

I have a room with a single spawn and no extensions owned by me. It has several hostile extensions.

running command
Game.rooms.W44N83.energyCapacityAvailable
gives a value of 550.

This should check if controller.owner == structure.owner
line 286
engine/src/game/game.js

The correct value for energyCapacityAvailable should be 300 for a single spawn.

@o4kapuk
Copy link
Contributor

o4kapuk commented Aug 23, 2017

See #47

@sparr
Copy link
Contributor

sparr commented Sep 27, 2017

@pbrink231 #47 was merged, could you close this issue please?

@sparr
Copy link
Contributor

sparr commented Nov 1, 2017

@artch could you close this please?

@artch artch closed this as completed Nov 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants