From 5c81c9eb6525313d14dd2bb49ad7ce2dfa2132ad Mon Sep 17 00:00:00 2001 From: LDericher <40151420+ldericher@users.noreply.github.com> Date: Mon, 18 Jul 2022 14:13:18 +0000 Subject: [PATCH] fix for opus 15+ --- fftcgtool/opus.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fftcgtool/opus.py b/fftcgtool/opus.py index c3eb852..ac09419 100644 --- a/fftcgtool/opus.py +++ b/fftcgtool/opus.py @@ -23,7 +23,16 @@ class Opus(Cards): if opus_id.isnumeric(): name = f"Opus {opus_id} ({self.__language.short})" self.__number = opus_id - params = {"set": [f"Opus {roman.toRoman(int(opus_id)).upper()}"]} + + if (opus_id := int(opus_id)) <= 14: + params = {"set": [f"Opus {roman.toRoman(opus_id).upper()}"]} + + else: + opus_map = { + 15: "Crystal Dominion", + 16: "Emissaries of Light", + } + params = {"set": [opus_map[opus_id]]} elif opus_id == "chaos": name = f"Boss Deck Chaos ({self.__language.short})"