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

feat: implement darxo spawn/upgrade policy #12

Draft
wants to merge 1 commit into
base: development
Choose a base branch
from

Conversation

Darxo
Copy link

@Darxo Darxo commented Nov 20, 2023

This PR implements the following two rules:

  • A UnitBlock can only spawn the weakest already present Unit
  • A UnitBlock will only upgrade the weakest already present Unit

Those rules are implemented by the following changes in the code:

  • When the last unit of a type is upgraded, it is deleted from the block during this SpawnProcess
  • When trying to upgrade, only the weakest available unit is checked for. If that can't upgrade then this block can't upgrade

Todo:

  • Gate these changes behind a bool setting so that they can be tried around with in praxis

I did a handful of test generations and it looks like the changes work as I envision them.

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

Successfully merging this pull request may close these issues.

1 participant