docs: card hints usage improved

This commit is contained in:
Oleg Agafonov 2023-07-09 02:21:56 +04:00
parent a7d49e1f45
commit 4ae5ca8421
2 changed files with 6 additions and 4 deletions

View file

@ -11,10 +11,12 @@ import java.io.Serializable;
public interface Hint extends Serializable {
// It's a constant hint for cards/permanents (e.g. visible all the time)
// If you want to use a temporary hint for permanent then possible solutions availeable:
// 1. Add card hint to gained ability (ability create code);
//
// Another solutions are possible:
// 1. Add direct card hint to gained ability (ability create code);
// 2. Add constant text: InfoEffect.addInfoToPermanent
// 3. Add dynamic card hint: InfoEffect.addCardHintToPermanent
// 3. Add dynamic text: InfoEffect.addCardHintToPermanent
// 4. Add direct text to the rules: permanent.addInfo, card.addInfo
// TODO: add card hint for ActivateIfConditionActivatedAbility
// * remove my turn condition from cards construction

View file

@ -1121,7 +1121,7 @@ public final class CardUtil {
return rules;
}
// debug state
// additional effect's info from card.addInfo methods
rules.addAll(game.getState().getCardState(cardId).getInfo().values());
// ability hints