You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CustomBottleRelic renders an icon of the bottle relic at the top-right of associated cards using the patch in RenderRelicOnCard, which patches AbstractCard::renderCard to achieve the effect. However, there are several inconsistencies with the base game:
The base game uses a scale factor of card.drawScale * Settings.scale * 1.5F, where RenderRelicOnCard is currently using card.drawScale * 0.8F. See below screenshot from master deck view, left 2 cards using base game relics and right card using a CustomBottleRelic:
As of writing, the base game only sometimes renders the relic icon at the top-right corner of the card (ie, the base game does it in fewer places than BaseMod, in particular, not in the player's hand). The places where the base game currently renders the relic icons are:
CardGroup::renderMasterDeck
CardGroup::renderMasterDeckExceptOneCard
CardGroup::renderShowBottled
CardGroup::renderExceptOneCardShowBottled
MasterDeckViewScreen::render
GridCardSelectScreen::render
I noted a few other inconsistencies where it felt less obvious whether BaseMod should be adding corresponding logic for custom bottle relics; all of these are things that I think a basic bottle relic would need, but either you'd need to extend the CustomBottleRelic interface for them or there might be less-basic bottle relics that wouldn't want them:
The base game recalculates bottle relic descriptions when corresponding cards are upgraded (see AbstractPlayer::bottledCardUpgradeCheck) (would probably need to add setDescriptionAfterLoad to CustomBottleRelic to accomodate this)
The base game includes the bottled fields as part of makeStatEquivalentCopy
DollysMirror and Duplicator reset the "is in bottle" fields of base game duplicated cards to false, diverging from the usual behavior of makeStatEquivalentCopy.
FountainOfCurseRemoval omits curses bottled in base-game relics
The text was updated successfully, but these errors were encountered:
CustomBottleRelic
renders an icon of the bottle relic at the top-right of associated cards using the patch in RenderRelicOnCard, which patchesAbstractCard::renderCard
to achieve the effect. However, there are several inconsistencies with the base game:The base game uses a scale factor of
card.drawScale * Settings.scale * 1.5F
, whereRenderRelicOnCard
is currently usingcard.drawScale * 0.8F
. See below screenshot from master deck view, left 2 cards using base game relics and right card using aCustomBottleRelic
:As of writing, the base game only sometimes renders the relic icon at the top-right corner of the card (ie, the base game does it in fewer places than BaseMod, in particular, not in the player's hand). The places where the base game currently renders the relic icons are:
CardGroup::renderMasterDeck
CardGroup::renderMasterDeckExceptOneCard
CardGroup::renderShowBottled
CardGroup::renderExceptOneCardShowBottled
MasterDeckViewScreen::render
GridCardSelectScreen::render
I noted a few other inconsistencies where it felt less obvious whether BaseMod should be adding corresponding logic for custom bottle relics; all of these are things that I think a basic bottle relic would need, but either you'd need to extend the
CustomBottleRelic
interface for them or there might be less-basic bottle relics that wouldn't want them:AbstractPlayer::bottledCardUpgradeCheck
) (would probably need to addsetDescriptionAfterLoad
toCustomBottleRelic
to accomodate this)makeStatEquivalentCopy
DollysMirror
andDuplicator
reset the "is in bottle" fields of base game duplicated cards to false, diverging from the usual behavior ofmakeStatEquivalentCopy
.FountainOfCurseRemoval
omits curses bottled in base-game relicsThe text was updated successfully, but these errors were encountered: