Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,11 @@ public record StockMarketEntry(Company company, double price, double changeMoney
private static final Pattern BUY_PRICE_PATTERN = compile("EK-Preis: (?<price>-?\\d+\\.\\d+)\\$");

public @Nullable Color getColor() {
// check if company is insolvent
if (this.price <= 0) {
return null;
}

// check if price is below or equal to min value
if (this.price <= this.company.getMinValue()) {
return BLUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,12 @@ protected AbstractContainerScreenMixin(Component title) {
extractStockMarketHighlight(graphics, mouseX, mouseY, a);
extractStockMarketLegend(graphics, mouseX, mouseY, a);
}
case "Telefon" -> {
case "ʜᴀɴᴅʏ » üʙᴇʀsɪᴄʜᴛ" -> {
if (storage.isStockMarketCommandRunning()) {
clickOnItemWithName("Apps", gameMode);
clickOnItemWithName("ᴀᴘᴘs", gameMode);
}
}
case "App-Menü" -> {
case "ʜᴀɴᴅʏ » ᴀᴘᴘ-ᴍᴇɴü" -> {
if (storage.isStockMarketCommandRunning()) {
clickOnItemWithName("Aktien", gameMode);
}
Expand Down