DestinationSol
DestinationSol copied to clipboard
Asteroids break into smaller pieces and then into tiny rocks. Small pieces drop loot.
Description
Rubble created from destroying asteroid also now create smaller pieces when destroyed.
CreatesRubbleOnDestructioncomponent is not added for tiny rocks.DropsMoneyOnDestructioncomponent added to rubble also except the tiny rocks.
Testing
- Break the golden asteroid.
- Observe that it does not collapse into tiny pieces of rocks straight away. Instead, it acts like normal asteroids in the game.
- The smaller pieces when broken also drop loot.
P.S: The newly created pieces of asteroid do not break(fixed in #653). To test, add the health component to the rubble entities.
Pre Pull Request Checklist:
- [x] Code has been scanned with SonarLint
- [x] There are no errors present in the project
- [x] Code has been formatted and indented
- [x] Methods have appropriate Javadoc (How to write Javadoc)
@BenjaminAmos Thnkx for the review. I have made the corrections.
Rebased to develop