BattleMod
src.templates.battle.BattleMod
Bases: BaseTemplate
- A template modifier for Battle cards introduced in March of the Machine.
Adds
- Defense text in bottom right of the card.
- Flipside Power/Toughness text if reverse side is a creature.
- Might add support for Transform icon in the future, if other symbols are used.
Source code in src\templates\battle.py
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
Functions
defense_reference() -> Optional[ArtLayer]
Optional[ArtLayer]: Reference used to detect collision with the PT box.
Source code in src\templates\battle.py
95 96 97 98 99 100 |
|
is_layout_battle() -> bool
Source code in src\templates\battle.py
44 45 46 47 |
|
post_text_methods() -> list[Callable]
Rotate card sideways.
Source code in src\templates\battle.py
59 60 61 62 63 |
|
rules_text_and_pt_layers() -> None
Overwrite rules text to enforce vertical text nudge with defense shield collision.
Source code in src\templates\battle.py
106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 |
|
text_layer_defense() -> Optional[ArtLayer]
Battle defense number in bottom right corner.
Source code in src\templates\battle.py
86 87 88 89 |
|
text_layer_flipside_pt() -> Optional[ArtLayer]
Flipside power/toughness layer for front face Transform cards.
Source code in src\templates\battle.py
81 82 83 84 |
|
text_layer_methods() -> list[Callable]
Add Class text layers.
Source code in src\templates\battle.py
53 54 55 56 57 |
|
text_layer_name() -> Optional[ArtLayer]
Doesn't need to be shifted.
Source code in src\templates\battle.py
69 70 71 72 |
|
text_layer_rules() -> Optional[ArtLayer]
Supports noncreature and creature, with or without flipside PT.
Source code in src\templates\battle.py
74 75 76 77 78 79 |
|
text_layers_battle() -> None
Add and modify text layers required by Battle cards.
Source code in src\templates\battle.py
129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|