Skip to content

Commit

Permalink
change: make ALTN LAW alert more important than computer fault alert
Browse files Browse the repository at this point in the history
  • Loading branch information
Octol1ttle committed Apr 22, 2024
1 parent 09a8adf commit 9e7a080
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public boolean isTriggered() {

@Override
public @NotNull AlertSoundData getSoundData() {
return AlertSoundData.MASTER_WARNING;
return AlertSoundData.MASTER_CAUTION;
}

@Override
Expand All @@ -31,7 +31,7 @@ public int render(TextRenderer textRenderer, DrawContext context, int x, int y,
if (ComputerRegistry.isFaulted(computer.getClass())) {
i += DrawHelper.drawHighlightedText(textRenderer, context,
Text.translatable("alerts.flightassistant.fault.computers." + computer.getId()), x, y,
FAConfig.indicator().warningColor, highlight
FAConfig.indicator().cautionColor, highlight
);
y += 10;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ public boolean isTriggered() {

@Override
public @NotNull AlertSoundData getSoundData() {
return AlertSoundData.MASTER_CAUTION;
return AlertSoundData.MASTER_WARNING;
}

@Override
public int render(TextRenderer textRenderer, DrawContext context, int x, int y, boolean highlight) {
return DrawHelper.drawHighlightedText(textRenderer, context,
Text.translatable("alerts.flightassistant.fault.computers.flight_prot"), x, y,
FAConfig.indicator().cautionColor, highlight
FAConfig.indicator().warningColor, highlight
);
}
}

0 comments on commit 9e7a080

Please sign in to comment.