mirror of
https://github.com/magefree/mage.git
synced 2025-12-24 20:41:58 -08:00
[DMC] Implement Rohgahh, Kher Keep Overlord (#9477)
This commit is contained in:
parent
d1e139b947
commit
afc32be642
3 changed files with 84 additions and 10 deletions
|
|
@ -243,16 +243,14 @@ public final class CardRendererUtils {
|
|||
|
||||
// boost colorizing
|
||||
if (value != null) {
|
||||
int current = value.getValue();
|
||||
int origin = value.getModifiedBaseValue();
|
||||
if (origin != 0) {
|
||||
if (current < origin) {
|
||||
return textLight ? CARD_TEXT_COLOR_BAD_LIGHT : CARD_TEXT_COLOR_BAD_DARK;
|
||||
} else if (current > origin) {
|
||||
return textLight ? CARD_TEXT_COLOR_GOOD_LIGHT : CARD_TEXT_COLOR_GOOD_DARK;
|
||||
} else {
|
||||
return defaultColor;
|
||||
}
|
||||
int currentValue = value.getValue();
|
||||
int baseValue = value.getModifiedBaseValue();
|
||||
if (currentValue < baseValue) {
|
||||
return textLight ? CARD_TEXT_COLOR_BAD_LIGHT : CARD_TEXT_COLOR_BAD_DARK;
|
||||
} else if (currentValue > baseValue) {
|
||||
return textLight ? CARD_TEXT_COLOR_GOOD_LIGHT : CARD_TEXT_COLOR_GOOD_DARK;
|
||||
} else {
|
||||
return defaultColor;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue