DestinationSol icon indicating copy to clipboard operation
DestinationSol copied to clipboard

Asteroids break into smaller pieces and then into tiny rocks. Small pieces drop loot.

Open Mystic-Slice opened this issue 3 years ago • 2 comments

Description

Rubble created from destroying asteroid also now create smaller pieces when destroyed. CreatesRubbleOnDestruction component is not added for tiny rocks. DropsMoneyOnDestruction component 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)

Mystic-Slice avatar Mar 02 '22 17:03 Mystic-Slice

@BenjaminAmos Thnkx for the review. I have made the corrections.

Mystic-Slice avatar Mar 03 '22 03:03 Mystic-Slice

Rebased to develop

Mystic-Slice avatar Mar 04 '22 01:03 Mystic-Slice