Skip to content

Commit cfe4cfe

Browse files
authored
Rename hungry dragon to baby dragon (Pbatch#230)
1 parent 80b19a1 commit cfe4cfe

File tree

17 files changed

+11
-13
lines changed

17 files changed

+11
-13
lines changed

clashroyalebuildabot/actions/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
from .archers_action import ArchersAction
22
from .arrows_action import ArrowsAction
3+
from .baby_dragon_action import BabyDragonAction
34
from .bats_action import BatsAction
45
from .cannon_action import CannonAction
56
from .fireball_action import FireballAction
67
from .giant_action import GiantAction
78
from .goblin_barrel_action import GoblinBarrelAction
8-
from .hungry_dragon_action import HungryDragonAction
99
from .knight_action import KnightAction
1010
from .minions_action import MinionsAction
1111
from .minipekka_action import MinipekkaAction
@@ -21,7 +21,7 @@
2121
"FireballAction",
2222
"GiantAction",
2323
"GoblinBarrelAction",
24-
"HungryDragonAction",
24+
"BabyDragonAction",
2525
"KnightAction",
2626
"MinionsAction",
2727
"MinipekkaAction",

clashroyalebuildabot/actions/hungry_dragon_action.py clashroyalebuildabot/actions/baby_dragon_action.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from clashroyalebuildabot.actions.generic.action import Action
55

66

7-
class HungryDragonAction(Action):
8-
CARD = Cards.HUNGRY_DRAGON
7+
class BabyDragonAction(Action):
8+
CARD = Cards.BABY_DRAGON
99

1010
def calculate_score(self, state):
1111
for det in state.enemies:

clashroyalebuildabot/constants.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
Units.HEAL_SPIRIT,
169169
Units.HOG,
170170
Units.HOG_RIDER,
171-
Units.HUNGRY_DRAGON,
171+
Units.BABY_DRAGON,
172172
Units.HUNTER,
173173
Units.ICE_GOLEM,
174174
Units.ICE_SPIRIT,
-1.34 KB
Binary file not shown.
-935 Bytes
Binary file not shown.
-1.36 KB
Binary file not shown.
-1.36 KB
Binary file not shown.
-1.27 KB
Binary file not shown.
-1.3 KB
Binary file not shown.
-1.35 KB
Binary file not shown.
-1.15 KB
Binary file not shown.
-1.46 KB
Binary file not shown.
-1.34 KB
Binary file not shown.

clashroyalebuildabot/namespaces/cards.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ class _CardsNamespace:
2222
ARCHER_QUEEN: Card = Card("archer_queen", False, 5, [Units.ARCHER_QUEEN])
2323
ARCHERS: Card = Card("archers", False, 3, [Units.ARCHER])
2424
ARROWS: Card = Card("arrows", True, 3)
25+
BABY_DRAGON: Card = Card("baby_dragon", False, 4, [Units.BABY_DRAGON])
2526
BALLOON: Card = Card("balloon", False, 5, [Units.BALLOON])
2627
BANDIT: Card = Card("bandit", False, 3, [Units.BANDIT])
2728
BARBARIAN_BARREL: Card = Card(
@@ -112,9 +113,6 @@ class _CardsNamespace:
112113
GUARDS: Card = Card("guards", False, 3, [Units.GUARD])
113114
HEAL_SPIRIT: Card = Card("heal_spirit", False, 1, [Units.HEAL_SPIRIT])
114115
HOG_RIDER: Card = Card("hog_rider", False, 4, [Units.HOG_RIDER])
115-
HUNGRY_DRAGON: Card = Card(
116-
"hungry_dragon", False, 4, [Units.HUNGRY_DRAGON]
117-
)
118116
HUNTER: Card = Card("hunter", False, 4, [Units.HUNTER])
119117
ICE_GOLEM: Card = Card("ice_golem", False, 2, [Units.ICE_GOLEM])
120118
ICE_SPIRIT: Card = Card("ice_spirit", False, 1, [Units.ICE_SPIRIT])

clashroyalebuildabot/namespaces/units.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ class _UnitsNamespace:
5353
ARCHER_QUEEN: Unit = Unit(
5454
"archer_queen", UnitCategory.TROOP, Target.ALL, Transport.GROUND
5555
)
56+
BABY_DRAGON: Unit = Unit(
57+
"baby_dragon", UnitCategory.TROOP, Target.ALL, Transport.AIR
58+
)
5659
BALLOON: Unit = Unit(
5760
"balloon", UnitCategory.TROOP, Target.BUILDINGS, Transport.AIR
5861
)
@@ -190,9 +193,6 @@ class _UnitsNamespace:
190193
HOG_RIDER: Unit = Unit(
191194
"hog_rider", UnitCategory.TROOP, Target.BUILDINGS, Transport.GROUND
192195
)
193-
HUNGRY_DRAGON: Unit = Unit(
194-
"hungry_dragon", UnitCategory.TROOP, Target.ALL, Transport.AIR
195-
)
196196
HUNTER: Unit = Unit(
197197
"hunter", UnitCategory.TROOP, Target.ALL, Transport.GROUND
198198
)

main.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
from loguru import logger
88

99
from clashroyalebuildabot.actions import ArchersAction
10+
from clashroyalebuildabot.actions import BabyDragonAction
1011
from clashroyalebuildabot.actions import CannonAction
1112
from clashroyalebuildabot.actions import GoblinBarrelAction
12-
from clashroyalebuildabot.actions import HungryDragonAction
1313
from clashroyalebuildabot.actions import KnightAction
1414
from clashroyalebuildabot.actions import MinipekkaAction
1515
from clashroyalebuildabot.actions import MusketeerAction
@@ -41,10 +41,10 @@ def update_terminal_title():
4141
def main():
4242
actions = {
4343
ArchersAction,
44+
BabyDragonAction,
4445
CannonAction,
4546
GoblinBarrelAction,
4647
KnightAction,
47-
HungryDragonAction,
4848
MinipekkaAction,
4949
MusketeerAction,
5050
WitchAction,

0 commit comments

Comments
 (0)