Old border occasional wrong printings showing up
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
forge-core/src/main/java/forge/item/PaperCardPredicates.java、特に 67-92 行付近の printedInAnyEditions() を読みます。Badlands|30A の例を許可された 3ED エディションと照合し、その後、許可されていないエディションのカードオブジェクトは通過せず、許可された印刷版は通過することを確認します。allowedEditions が実際のカードのエディションをフィルタリングし、この述語を使用しないパスには影響しなければ完了です。
索引モデルが issue の本文から書いたものです。
説明
Dear devs, old border mod has an issue that can't be resolved in the config folder. It's with how allowedEditions is processed in
forge-core/src/main/java/forge/item/PaperCardPredicates.java (lines 67-92)
**Method: **printedInAnyEditions()
**Problem: **The predicate checks if the card name was printed in any allowed edition, then allows all printings of that card to pass - including printings from disallowed editions.
Example: Badlands|30A passes because Badlands exists in 3ED (allowed), but the actual card object is from 30A (not allowed).
**Fix: **We could change line 91 from:
return passes;
to:
return editions.contains(card.getEdition());
I think this fix shouldn't affect vanilla adventure because it doesn't use allowedEditions and so this predicate isn't called.
I've tried to solve it by inverting and using restrictedEditions instead, but then for some reason the PRM (Magic Online Promos) set forces its way in, even passed the restrictedEditions filter. And then there is a noticable lag when entering towns, maybe because the filter list is so long and I have to manually restrict a bunch more individual cards.
For old border and other planes mods, it would be preferential to use allowedEditions, because then we don't have to update config.json when a new set comes out.
Maybe there's a better solution I am not seeing.
Thanks for your help!
- 主要言語
- Java
- スター
- 2.7k
- フォーク
- 1.1k
- 平均マージ
- 1日 8時間
- マージ済み PR(30日)
- 344
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Card-Forge/forge のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
Card-Forge/forge#12877 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Card-Forge/forge#12710 ·
メンテナーはふだん 1 日以内に返信
-
Shandalar "The Drunken Plea" quest completes prematurely対応中かも @Simisays が 21 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Card-Forge/forge#12306 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
Card-Forge/forge#12206 ·
メンテナーはふだん 1 日以内に返信
-
Adventure keep
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Card-Forge/forge#10151 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
Card-Forge/forge の issue をすべて見る
似ている issue
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
commons-app/apps-android-commons#7341 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
NationalSecurityAgency/ghidra#10220 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
メンテナーはふだん 1 日以内に返信