File size: 986 Bytes
463f868
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
from engine.game.game_state import initialize_game


def _find_id(game, cno):
    for k, v in game.member_db.items():
        if v.card_no == cno:
            return k
    return None


game = initialize_game(deck_type="training")

cards = [
    "PL!-PR-007-PR",
    "PL!-PR-009-PR",
    "PL!N-bp3-017-N",
    "PL!N-bp4-004-R",
    "PL!N-bp4-004-SEC",
    "PL!N-bp4-005-P",
    "PL!N-bp4-005-R",
    "PL!S-bp3-012-N",
    "PL!S-bp3-017-N",
    "PL!-bp3-002-P",
    "PL!-bp3-002-R",
    "PL!N-bp3-023-N",
    "PL!N-bp4-004-P",
    "PL!N-bp4-004-P+",
    "PL!N-bp4-004-R+",
    "PL!N-bp4-001-R+",
]

for cno in cards:
    cid = _find_id(game, cno)
    if cid:
        card = game.member_db[cid]
        print(f"{cno}: Ability0 Conditions={len(card.abilities[0].conditions)}")
        if len(card.abilities) > 1:
            print(f"{cno}: Ability1 Conditions={len(card.abilities[1].conditions)}")
    else:
        print(f"{cno}: NOT FOUND")