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

Combat system rework #50

Merged
merged 2 commits into from
Mar 9, 2018
Merged

Combat system rework #50

merged 2 commits into from
Mar 9, 2018

Conversation

mys
Copy link
Contributor

@mys mys commented Mar 4, 2018

Completely rework of combat system:

  • 1v1 instead of grouped ships fights
  • true random shots
  • armor does not regenerate each turn (bugfix)
  • shields does break for each ship instead of "summarized shield"
  • bounced shot if attack power less than 1% of enemy shield
  • ships can explode if less than 70% of initial armor each round
  • attack power does not range random +/-20% anymore. The randomness is high enough
  • combat reports does not cut randomly (bugfix)
  • optimization of arrays to Ds\Map and Ds\Vector (up to 10x less resources/time)
  • tested on up to 500k units battle with success (1 core cpu, <128MB ram usage). For bigger battles the better server is needed or improve combat engine optimization.

Code require php-ds extension for array optimization. Instructions in README

Fixes jkroepke/2Moons#334

@mys mys merged commit 94f0e49 into steemnova:master Mar 9, 2018
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.

Battle system bug
1 participant