Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename hungry dragon to baby dragon #230

Merged
merged 1 commit into from
Sep 8, 2024
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: 2 additions & 2 deletions clashroyalebuildabot/actions/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -21,7 +21,7 @@
"FireballAction",
"GiantAction",
"GoblinBarrelAction",
"HungryDragonAction",
"BabyDragonAction",
"KnightAction",
"MinionsAction",
"MinipekkaAction",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion clashroyalebuildabot/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Binary file removed clashroyalebuildabot/images/digits/0.jpg
Binary file not shown.
Binary file removed clashroyalebuildabot/images/digits/1.jpg
Binary file not shown.
Binary file removed clashroyalebuildabot/images/digits/2.jpg
Binary file not shown.
Binary file removed clashroyalebuildabot/images/digits/3.jpg
Binary file not shown.
Binary file removed clashroyalebuildabot/images/digits/4.jpg
Binary file not shown.
Binary file removed clashroyalebuildabot/images/digits/5.jpg
Binary file not shown.
Binary file removed clashroyalebuildabot/images/digits/6.jpg
Binary file not shown.
Binary file removed clashroyalebuildabot/images/digits/7.jpg
Binary file not shown.
Binary file removed clashroyalebuildabot/images/digits/8.jpg
Binary file not shown.
Binary file removed clashroyalebuildabot/images/digits/9.jpg
Binary file not shown.
4 changes: 1 addition & 3 deletions clashroyalebuildabot/namespaces/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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])
Expand Down
6 changes: 3 additions & 3 deletions clashroyalebuildabot/namespaces/units.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down Expand Up @@ -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
)
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -41,10 +41,10 @@ def update_terminal_title():
def main():
actions = {
ArchersAction,
BabyDragonAction,
CannonAction,
GoblinBarrelAction,
KnightAction,
HungryDragonAction,
MinipekkaAction,
MusketeerAction,
WitchAction,
Expand Down