Mods
This commit is contained in:
		
							
								
								
									
										10
									
								
								arguments.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								arguments.md
									
									
									
									
									
								
							| @@ -159,3 +159,13 @@ Make the arguments document and exit | ||||
| Default: False | ||||
|  | ||||
| Action: store_true | ||||
|  | ||||
| --- | ||||
|  | ||||
| ### score | ||||
|  | ||||
| Show the score on triumph or hits instead of the total of each | ||||
|  | ||||
| Default: False | ||||
|  | ||||
| Action: store_true | ||||
|   | ||||
| @@ -74,11 +74,19 @@ class Ant: | ||||
|         status = self.status | ||||
|  | ||||
|         if self.method == Method.triumph: | ||||
|             total = f"({self.triumph} total)" | ||||
|             if Args.score: | ||||
|                 total = f"(Score: {self.get_score()})" | ||||
|             else: | ||||
|                 total = f"({self.triumph} total)" | ||||
|  | ||||
|             status = f"{Config.triumph_icon} {Config.triumph_message} {total}" | ||||
|  | ||||
|         elif self.method == Method.hit: | ||||
|             total = f"({self.hits} total)" | ||||
|             if Args.score: | ||||
|                 total = f"(Score: {self.get_score()})" | ||||
|             else: | ||||
|                 total = f"({self.hits} total)" | ||||
|  | ||||
|             status = f"{Config.hit_icon} {Config.hit_message} {total}" | ||||
|  | ||||
|         elif self.method == Method.think: | ||||
|   | ||||
| @@ -26,6 +26,7 @@ class Args: | ||||
|     normal_minutes: float = 0.0 | ||||
|     slow_minutes: float = 0.0 | ||||
|     argdoc: bool = False | ||||
|     score: bool = False | ||||
|  | ||||
|     @staticmethod | ||||
|     def prepare() -> None: | ||||
| @@ -56,6 +57,7 @@ class Args: | ||||
|             "normal_minutes", | ||||
|             "slow_minutes", | ||||
|             "argdoc", | ||||
|             "score", | ||||
|         ] | ||||
|  | ||||
|         for n_item in normals: | ||||
|   | ||||
| @@ -166,3 +166,9 @@ class ArgSpec: | ||||
|             action="store_true", | ||||
|             info="Make the arguments document and exit", | ||||
|         ) | ||||
|  | ||||
|         ArgSpec.add_argument( | ||||
|             "score", | ||||
|             action="store_true", | ||||
|             info="Show the score on triumph or hits instead of the total of each", | ||||
|         ) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Auric Vente
					Auric Vente