Minor mprovement

This commit is contained in:
Gregory Trullemans 2023-06-18 11:27:26 +02:00
parent 8d81b8ed38
commit bfc831fdb4
1 changed files with 2 additions and 2 deletions

View File

@ -108,12 +108,12 @@ class Skill:
self.twisting = self.numeric_code[self.twisting_start_position:-1]
def __compute_quart_sommersault_rotation(self) -> None:
if self.rotation_quantity == 1 or self.rotation_quantity == 2:
if self.rotation_quantity <= 2:
if self.direction == FRONTWARD:
self.quart_summersault_rotation = self.numeric_code[1]
else:
self.quart_summersault_rotation = self.numeric_code[0]
elif self.rotation_quantity == 3 or self.rotation_quantity == 4:
elif self.rotation_quantity <= 4:
if self.direction == FRONTWARD:
self.quart_summersault_rotation = self.numeric_code[1:3]
else: