Skip to content

Commit

Permalink
fix default humidity hex color in daemon/planet
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelprograms committed Aug 30, 2024
1 parent d1410c9 commit 3c805da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/daemon/planet.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ nosave private mapping __HumidityColorHex = ([
""+HUMIDITY_DRY: "#50FF00", // 80;255;0
""+HUMIDITY_DRYER: "#50FF00", // 245;245;17
""+HUMIDITY_DRYEST: "#FF8B11", // 255;139;17
"default": "#F10C00", // 241;12;0
"default": "#000064", // 0;0;100
]);
string query_humidity_color_hex (float humidity) {
if (humidity) {
Expand Down
2 changes: 1 addition & 1 deletion lib/daemon/planet.test.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ void test_biome_colors () {
}) :));

expect("humidity hex colors returned", (: ({
assert_equal(testOb->query_humidity_color_hex(UNDEFINED), "#F10C00"),
assert_equal(testOb->query_humidity_color_hex(UNDEFINED), "#000064"),
assert_equal(testOb->query_humidity_color_hex(HUMIDITY_DRYEST), "#FF8B11"),
assert_equal(testOb->query_humidity_color_hex(HUMIDITY_WETTER), "#1446FF"),
}) :));
Expand Down

0 comments on commit 3c805da

Please sign in to comment.