Skip to content

InventionTemplate

src.templates.normal.InventionTemplate

Bases: FullartMod, NormalTemplate

Kaladesh Invention template. Uses either Bronze or Silver frame layers depending on setting.

Source code in src\templates\normal.py
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
class InventionTemplate(FullartMod, NormalTemplate):
    """Kaladesh Invention template. Uses either Bronze or Silver frame layers depending on setting."""
    template_suffix = 'Masterpiece'

    # Static Properties
    is_land = False

    """
    * Frame Details
    """

    @auto_prop_cached
    def twins(self) -> str:
        """str: Pull twins color from settings. Silver or Bronze."""
        return str(CFG.get_setting(
            section="FRAME",
            key="Accent",
            default="Silver",
            is_bool=False
        ))

    @auto_prop_cached
    def background(self) -> str:
        """str: Reuse twins color pulled from settings."""
        return self.twins

Attributes

is_land = False

  • Frame Details

Functions

background() -> str

Source code in src\templates\normal.py
225
226
227
228
@auto_prop_cached
def background(self) -> str:
    """str: Reuse twins color pulled from settings."""
    return self.twins

twins() -> str

Source code in src\templates\normal.py
215
216
217
218
219
220
221
222
223
@auto_prop_cached
def twins(self) -> str:
    """str: Pull twins color from settings. Silver or Bronze."""
    return str(CFG.get_setting(
        section="FRAME",
        key="Accent",
        default="Silver",
        is_bool=False
    ))