Spaces:
Sleeping
Sleeping
File size: 539 Bytes
9bd4ce5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | from compiler.parser_v2 import AbilityParserV2
parser = AbilityParserV2()
text = "{{toujyou.png|登場}}手札を1枚控え室に置いてもよい:相手のステージにいるコスト4以下のメンバーを2人までウェイトにする。"
abilities = parser.parse(text)
for ab in abilities:
print(f"Trigger: {ab.trigger}")
for eff in ab.effects:
print(f" Effect Type: {eff.effect_type}")
print(f" Target: {eff.target}")
print(f" Value: {eff.value}")
print(f" Params: {eff.params}")
|