Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions coc/miscmodels.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,6 @@ def __init__(self, *, data, client):

async def save(self, filepath, size=None) -> int:
"""
|coro|

Save this badge as a file-like object.

Parameters
Expand Down Expand Up @@ -461,8 +459,6 @@ def __init__(self, *, data, client):

async def save(self, filepath: str, size: Optional[str] = None) -> int:
"""
|coro|

Save this icon as a file-like object.

Parameters
Expand Down
106 changes: 53 additions & 53 deletions coc/troop.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,59 +16,59 @@
class Troop(DataContainer):
"""Represents a Troop object as returned by the API, optionally filled with game data.

+----------------------------------+-------------------+
| Name | Type |
+----------------------------------+-------------------+
| :attr:`Troop.id` | :class:`int` |
+----------------------------------+-------------------+
| :attr:`Troop.name` | str |
+----------------------------------+-------------------+
| :attr:`Troop.range` | int |
+----------------------------------+-------------------+
| :attr:`Troop.dps` | int |
+----------------------------------+-------------------+
| :attr:`Troop.hitpoints` | int |
+----------------------------------+-------------------+
| :attr:`Troop.ground_target` | bool |
+----------------------------------+-------------------+
| :attr:`Troop.speed` | int |
+----------------------------------+-------------------+
| :attr:`Troop.upgrade_cost` | int |
+----------------------------------+-------------------+
| :attr:`Troop.upgrade_resource` | :class:`Resource` |
+----------------------------------+-------------------+
| :attr:`Troop.upgrade_time` | :class:`TimeDelta` |
+----------------------------------+-------------------+
| :attr:`Troop.training_cost` | int |
+----------------------------------+-------------------+
| :attr:`Troop.training_resource` | :class:`Resource` |
+----------------------------------+-------------------+
| :attr:`Troop.training_time` | :class:`TimeDelta` |
+----------------------------------+-------------------+
| :attr:`Troop.is_elixir_troop` | :class:`bool` |
+----------------------------------+-------------------+
| :attr:`Troop.is_dark_troop` | :class:`bool` |
+----------------------------------+-------------------+
| :attr:`Troop.is_siege_machine` | :class:`bool` |
+----------------------------------+-------------------+
| :attr:`Troop.is_super_troop` | :class:`bool` |
+----------------------------------+-------------------+
| :attr:`Troop.cooldown` | :class:`TimeDelta` |
+----------------------------------+-------------------+
| :attr:`Troop.duration` | :class:`TimeDelta` |
+----------------------------------+-------------------+
| :attr:`Troop.min_original_level` | int |
+----------------------------------+-------------------+
| :attr:`Troop.original_troop` | :class:`Troop` |
+----------------------------------+-------------------+
| :attr:`Troop.is_loaded` | bool |
+----------------------------------+-------------------+
| :attr:`Troop.level` | int |
+----------------------------------+-------------------+
| :attr:`Troop.max_level` | int |
+----------------------------------+-------------------+
| :attr:`Troop.village` | str |
+----------------------------------+-------------------+
+----------------------------------+--------------------+
| Name | Type |
+----------------------------------+--------------------+
| :attr:`Troop.id` | :class:`int` |
+----------------------------------+--------------------+
| :attr:`Troop.name` | str |
+----------------------------------+--------------------+
| :attr:`Troop.range` | int |
+----------------------------------+--------------------+
| :attr:`Troop.dps` | int |
+----------------------------------+--------------------+
| :attr:`Troop.hitpoints` | int |
+----------------------------------+--------------------+
| :attr:`Troop.ground_target` | bool |
+----------------------------------+--------------------+
| :attr:`Troop.speed` | int |
+----------------------------------+--------------------+
| :attr:`Troop.upgrade_cost` | int |
+----------------------------------+--------------------+
| :attr:`Troop.upgrade_resource` | :class:`Resource` |
+----------------------------------+--------------------+
| :attr:`Troop.upgrade_time` | :class:`TimeDelta` |
+----------------------------------+--------------------+
| :attr:`Troop.training_cost` | int |
+----------------------------------+--------------------+
| :attr:`Troop.training_resource` | :class:`Resource` |
+----------------------------------+--------------------+
| :attr:`Troop.training_time` | :class:`TimeDelta` |
+----------------------------------+--------------------+
| :attr:`Troop.is_elixir_troop` | :class:`bool` |
+----------------------------------+--------------------+
| :attr:`Troop.is_dark_troop` | :class:`bool` |
+----------------------------------+--------------------+
| :attr:`Troop.is_siege_machine` | :class:`bool` |
+----------------------------------+--------------------+
| :attr:`Troop.is_super_troop` | :class:`bool` |
+----------------------------------+--------------------+
| :attr:`Troop.cooldown` | :class:`TimeDelta` |
+----------------------------------+--------------------+
| :attr:`Troop.duration` | :class:`TimeDelta` |
+----------------------------------+--------------------+
| :attr:`Troop.min_original_level` | int |
+----------------------------------+--------------------+
| :attr:`Troop.original_troop` | :class:`Troop` |
+----------------------------------+--------------------+
| :attr:`Troop.is_loaded` | bool |
+----------------------------------+--------------------+
| :attr:`Troop.level` | int |
+----------------------------------+--------------------+
| :attr:`Troop.max_level` | int |
+----------------------------------+--------------------+
| :attr:`Troop.village` | str |
+----------------------------------+--------------------+

Attributes
----------
Expand Down
Loading