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

Simple Batteries #473

Open
2 of 5 tasks
Tracked by #256
Indy2222 opened this issue Jun 7, 2023 · 0 comments
Open
2 of 5 tasks
Tracked by #256

Simple Batteries #473

Indy2222 opened this issue Jun 7, 2023 · 0 comments
Labels
Milestone

Comments

@Indy2222
Copy link
Collaborator

Indy2222 commented Jun 7, 2023

As a step towards initial support for energy in the game, lets implement batteries:

  • Every unit & building has a battery. The battery has maximum capacity in Joules and current energy level in Joules.
  • The battery discharges at a constant rate (a constant in the code).
  • Movement of unit is blocked once the energy goes to 0.
  • Attacking is blocked once the energy goes below X (a constant in the code).
  • Manufacturing is blocked once the energy goes below Y (a constant in the code).

Note that charging is not handled as part of this issue.

@Indy2222 Indy2222 added this to the Version 0.1 milestone Jun 7, 2023
Indy2222 pushed a commit that referenced this issue Jun 17, 2023
This implements the first step towards energy (#473).
github-merge-queue bot pushed a commit that referenced this issue Jun 26, 2023
Implements part of #397. Adds on to #483 and works towards #473.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant