[Adventure] Commander mode: "Owned" count on shop/reward cards should count all printings
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 88/100
Línea de trabajo
Comienza en forge-gui-mobile/src/forge/adventure/util/RewardActor.java, alrededor de la línea 344, donde se calcula el recuento de recompensas que ya posees. Usa CardPool.countByName(PaperCard) solo cuando AdventurePlayer.current().isCommanderMode() sea verdadero, conservando los recuentos por tirada en otros modos. Terminado significa que las tarjetas de la tienda y de recompensa cuentan cada tirada que ya posees por nombre en el modo Commander, y que la insignia existente New usa el recuento corregido.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Is your feature request related to a problem? Please describe.
In Adventure Commander mode, shop and reward cards show Owned: 0 (or the "New" badge) for a card I already own if the one on offer is a different printing. For example, a shop offers a Sol Ring and shows Owned: 0. I buy it, and my collection then shows 2 Sol Rings, because my first one came from another set.
Commander is singleton, so the useful question is "do I already have this card?", not "do I have this exact printing?" Shops and rewards regularly offer other printings: set-themed shops, enemy deck loot, boosters.
The count comes from RewardActor (line 344), which matches the exact printing:
int ownedCount = AdventurePlayer.current().getCollectionCards(true).count(reward.card);
Describe the solution you'd like
In Commander mode, count owned copies by card name. CardPool.countByName(PaperCard) already exists, so this could be a small change:
var pool = AdventurePlayer.current().getCollectionCards(true);
int ownedCount = AdventurePlayer.current().isCommanderMode()
? pool.countByName(reward.card)
: pool.count(reward.card);
The "New" badge is driven by the same value, so it would also stop showing for printings of cards you already own. Non-Commander Adventure keeps the current per-printing count. Auto-sell isn't touched, since it already has its own "Auto-sell variants of owned cards in Commander" option.
Describe alternatives you've considered
Always counting by name, in every mode. That's simpler, but players collecting specific printings or arts outside Commander might want the per-printing count.
Showing both, e.g. Owned: 0 (1 any printing). That's more informative, but busier on small screens.
A game setting/option that toggled the behavior between multiple possible counting modes.
Additional context
- Lenguaje dominante
- Java
- Estrellas
- 2.7k
- Forks
- 1.1k
- Merge medio
- 19 h 28 min
- PR fusionados (30 d)
- 316
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Card-Forge/forge
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Card-Forge/forge#13092 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 85/100
Card-Forge/forge#12877 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Card-Forge/forge#12710 ·
Los mantenedores suelen responder en 1 día
-
Shandalar "The Drunken Plea" quest completes prematurelyQuizá libre de nuevo @Simisays la tomó hace 37 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Card-Forge/forge#12306 · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
Card-Forge/forge#12206 ·
Los mantenedores suelen responder en 1 día
Todos los issues de Card-Forge/forge
Issues similares
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 92/100
HexaHexes/neoforge-mod-template#124 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
OpenLiberty/open-liberty#36410 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
erkamyaman/rust-anything#1153 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día