Skip to content

Commit

Permalink
Changelog. Uppercase FLIGHT discipline.
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel-panhaleux committed Sep 15, 2024
1 parent cdcf2b3 commit 0f707a5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
Changelog
=========

3.13 (unreleased)
4.0 (unreleased)
-----------------

- Nothing changed yet.
- New rulings format. Now an object list with useful replacement hints.
- Rulings now sourced from https://github.com/vtes-biased/vtes-rulings
- FLIGHT "discipline" is now always showing as upper-case


3.12 (2024-07-20)
Expand Down
7 changes: 4 additions & 3 deletions krcg/cards.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ class Card(utils.i18nMixin, utils.NamedMixin):
# these are not disciplines but treat them that way
"striga": "str",
"maleficia": "mal",
"flight": "flight",
"flight": "FLIGHT",
"vision": "viz", # avoid collision with visceratika
# standard list
"judgment": "jud",
Expand Down Expand Up @@ -1372,15 +1372,16 @@ def _handle_disciplines(self, card) -> None:
"""Helper handling card disciplines."""
for discipline in card.disciplines:
self.discipline[discipline].add(card)
self.discipline[discipline.lower()].add(card)
if discipline != "FLIGHT":
self.discipline[discipline.lower()].add(card)
if not card.disciplines:
self.discipline["none"].add(card)
elif card.library and len(card.disciplines) > 1:
self.discipline["multi"].add(card)
else:
self.discipline["mono"].add(card)
if "[FLIGHT]" in card.card_text:
self.discipline["flight"].add(card)
self.discipline["FLIGHT"].add(card)
if card.combo:
self.discipline["combo"].add(card)
if card.multidisc:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_vtes.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def test_search_dimensions():
"DAI",
"DEM",
"DOM",
"FLIGHT",
"FOR",
"MEL",
"MYT",
Expand Down Expand Up @@ -109,7 +110,6 @@ def test_search_dimensions():
"def",
"dem",
"dom",
"flight",
"for",
"inn",
"jud",
Expand Down

0 comments on commit 0f707a5

Please sign in to comment.