diff --git a/clashroyalebuildabot/actions/__init__.py b/clashroyalebuildabot/actions/__init__.py index 2a828c2..5203dce 100644 --- a/clashroyalebuildabot/actions/__init__.py +++ b/clashroyalebuildabot/actions/__init__.py @@ -1,11 +1,11 @@ from .archers_action import ArchersAction from .arrows_action import ArrowsAction +from .baby_dragon_action import BabyDragonAction from .bats_action import BatsAction from .cannon_action import CannonAction from .fireball_action import FireballAction from .giant_action import GiantAction from .goblin_barrel_action import GoblinBarrelAction -from .hungry_dragon_action import HungryDragonAction from .knight_action import KnightAction from .minions_action import MinionsAction from .minipekka_action import MinipekkaAction @@ -21,7 +21,7 @@ "FireballAction", "GiantAction", "GoblinBarrelAction", - "HungryDragonAction", + "BabyDragonAction", "KnightAction", "MinionsAction", "MinipekkaAction", diff --git a/clashroyalebuildabot/actions/hungry_dragon_action.py b/clashroyalebuildabot/actions/baby_dragon_action.py similarity index 87% rename from clashroyalebuildabot/actions/hungry_dragon_action.py rename to clashroyalebuildabot/actions/baby_dragon_action.py index 2043541..8f69778 100644 --- a/clashroyalebuildabot/actions/hungry_dragon_action.py +++ b/clashroyalebuildabot/actions/baby_dragon_action.py @@ -4,8 +4,8 @@ from clashroyalebuildabot.actions.generic.action import Action -class HungryDragonAction(Action): - CARD = Cards.HUNGRY_DRAGON +class BabyDragonAction(Action): + CARD = Cards.BABY_DRAGON def calculate_score(self, state): for det in state.enemies: diff --git a/clashroyalebuildabot/constants.py b/clashroyalebuildabot/constants.py index de4b544..c0f4f12 100644 --- a/clashroyalebuildabot/constants.py +++ b/clashroyalebuildabot/constants.py @@ -168,7 +168,7 @@ Units.HEAL_SPIRIT, Units.HOG, Units.HOG_RIDER, - Units.HUNGRY_DRAGON, + Units.BABY_DRAGON, Units.HUNTER, Units.ICE_GOLEM, Units.ICE_SPIRIT, diff --git a/clashroyalebuildabot/images/cards/hungry_dragon.jpg b/clashroyalebuildabot/images/cards/baby_dragon.jpg similarity index 100% rename from clashroyalebuildabot/images/cards/hungry_dragon.jpg rename to clashroyalebuildabot/images/cards/baby_dragon.jpg diff --git a/clashroyalebuildabot/images/digits/0.jpg b/clashroyalebuildabot/images/digits/0.jpg deleted file mode 100644 index 8e6e78b..0000000 Binary files a/clashroyalebuildabot/images/digits/0.jpg and /dev/null differ diff --git a/clashroyalebuildabot/images/digits/1.jpg b/clashroyalebuildabot/images/digits/1.jpg deleted file mode 100644 index 1229136..0000000 Binary files a/clashroyalebuildabot/images/digits/1.jpg and /dev/null differ diff --git a/clashroyalebuildabot/images/digits/2.jpg b/clashroyalebuildabot/images/digits/2.jpg deleted file mode 100644 index 418ed34..0000000 Binary files a/clashroyalebuildabot/images/digits/2.jpg and /dev/null differ diff --git a/clashroyalebuildabot/images/digits/3.jpg b/clashroyalebuildabot/images/digits/3.jpg deleted file mode 100644 index 8e0fa2d..0000000 Binary files a/clashroyalebuildabot/images/digits/3.jpg and /dev/null differ diff --git a/clashroyalebuildabot/images/digits/4.jpg b/clashroyalebuildabot/images/digits/4.jpg deleted file mode 100644 index 7f3ed04..0000000 Binary files a/clashroyalebuildabot/images/digits/4.jpg and /dev/null differ diff --git a/clashroyalebuildabot/images/digits/5.jpg b/clashroyalebuildabot/images/digits/5.jpg deleted file mode 100644 index bdcb9e6..0000000 Binary files a/clashroyalebuildabot/images/digits/5.jpg and /dev/null differ diff --git a/clashroyalebuildabot/images/digits/6.jpg b/clashroyalebuildabot/images/digits/6.jpg deleted file mode 100644 index c89c0d2..0000000 Binary files a/clashroyalebuildabot/images/digits/6.jpg and /dev/null differ diff --git a/clashroyalebuildabot/images/digits/7.jpg b/clashroyalebuildabot/images/digits/7.jpg deleted file mode 100644 index 0af1ea2..0000000 Binary files a/clashroyalebuildabot/images/digits/7.jpg and /dev/null differ diff --git a/clashroyalebuildabot/images/digits/8.jpg b/clashroyalebuildabot/images/digits/8.jpg deleted file mode 100644 index 99f999f..0000000 Binary files a/clashroyalebuildabot/images/digits/8.jpg and /dev/null differ diff --git a/clashroyalebuildabot/images/digits/9.jpg b/clashroyalebuildabot/images/digits/9.jpg deleted file mode 100644 index a8210b6..0000000 Binary files a/clashroyalebuildabot/images/digits/9.jpg and /dev/null differ diff --git a/clashroyalebuildabot/namespaces/cards.py b/clashroyalebuildabot/namespaces/cards.py index d665beb..0f3d2f8 100644 --- a/clashroyalebuildabot/namespaces/cards.py +++ b/clashroyalebuildabot/namespaces/cards.py @@ -22,6 +22,7 @@ class _CardsNamespace: ARCHER_QUEEN: Card = Card("archer_queen", False, 5, [Units.ARCHER_QUEEN]) ARCHERS: Card = Card("archers", False, 3, [Units.ARCHER]) ARROWS: Card = Card("arrows", True, 3) + BABY_DRAGON: Card = Card("baby_dragon", False, 4, [Units.BABY_DRAGON]) BALLOON: Card = Card("balloon", False, 5, [Units.BALLOON]) BANDIT: Card = Card("bandit", False, 3, [Units.BANDIT]) BARBARIAN_BARREL: Card = Card( @@ -112,9 +113,6 @@ class _CardsNamespace: GUARDS: Card = Card("guards", False, 3, [Units.GUARD]) HEAL_SPIRIT: Card = Card("heal_spirit", False, 1, [Units.HEAL_SPIRIT]) HOG_RIDER: Card = Card("hog_rider", False, 4, [Units.HOG_RIDER]) - HUNGRY_DRAGON: Card = Card( - "hungry_dragon", False, 4, [Units.HUNGRY_DRAGON] - ) HUNTER: Card = Card("hunter", False, 4, [Units.HUNTER]) ICE_GOLEM: Card = Card("ice_golem", False, 2, [Units.ICE_GOLEM]) ICE_SPIRIT: Card = Card("ice_spirit", False, 1, [Units.ICE_SPIRIT]) diff --git a/clashroyalebuildabot/namespaces/units.py b/clashroyalebuildabot/namespaces/units.py index a170c9d..157e86d 100644 --- a/clashroyalebuildabot/namespaces/units.py +++ b/clashroyalebuildabot/namespaces/units.py @@ -53,6 +53,9 @@ class _UnitsNamespace: ARCHER_QUEEN: Unit = Unit( "archer_queen", UnitCategory.TROOP, Target.ALL, Transport.GROUND ) + BABY_DRAGON: Unit = Unit( + "baby_dragon", UnitCategory.TROOP, Target.ALL, Transport.AIR + ) BALLOON: Unit = Unit( "balloon", UnitCategory.TROOP, Target.BUILDINGS, Transport.AIR ) @@ -190,9 +193,6 @@ class _UnitsNamespace: HOG_RIDER: Unit = Unit( "hog_rider", UnitCategory.TROOP, Target.BUILDINGS, Transport.GROUND ) - HUNGRY_DRAGON: Unit = Unit( - "hungry_dragon", UnitCategory.TROOP, Target.ALL, Transport.AIR - ) HUNTER: Unit = Unit( "hunter", UnitCategory.TROOP, Target.ALL, Transport.GROUND ) diff --git a/main.py b/main.py index 04d8e86..d2c16eb 100644 --- a/main.py +++ b/main.py @@ -7,9 +7,9 @@ from loguru import logger from clashroyalebuildabot.actions import ArchersAction +from clashroyalebuildabot.actions import BabyDragonAction from clashroyalebuildabot.actions import CannonAction from clashroyalebuildabot.actions import GoblinBarrelAction -from clashroyalebuildabot.actions import HungryDragonAction from clashroyalebuildabot.actions import KnightAction from clashroyalebuildabot.actions import MinipekkaAction from clashroyalebuildabot.actions import MusketeerAction @@ -41,10 +41,10 @@ def update_terminal_title(): def main(): actions = { ArchersAction, + BabyDragonAction, CannonAction, GoblinBarrelAction, KnightAction, - HungryDragonAction, MinipekkaAction, MusketeerAction, WitchAction,