Complex sentence: If all enemies have had their HP deplete to zero, instead, the player will achieve victory and receive a rank based on their performance in battle.
Split into simpler sentences: If all enemies have had their HP deplete to zero, instead, the battle will end in victory for the player. Once the player has won, they will be given a rank based on their performance in battle.