[DMC] Implement Rohgahh, Kher Keep Overlord (#9477)

This commit is contained in:
PurpleCrowbar 2022-09-08 00:45:15 +01:00 committed by GitHub
parent d1e139b947
commit afc32be642
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 84 additions and 10 deletions

View file

@ -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;
}
}