Awesome Wood.

This commit is contained in:
2025-01-30 02:14:02 -05:00
parent 98b340379b
commit ae797f91b5

View File

@@ -261,13 +261,13 @@ namespace CaveGame::Client {
int plank_row = ((int)Math::Floor(wy/5));
int plank_row_idx = plank_row % 5;
int plank_length_modulus = 0;
int plank_length_modulus = 14;
if (plank_row_idx == 0) plank_length_modulus = 0;
if (plank_row_idx == 1) plank_length_modulus = 3;
if (plank_row_idx == 2) plank_length_modulus = 6;
if (plank_row_idx == 3) plank_length_modulus = 9;
if (plank_row_idx == 4) plank_length_modulus = 12;
if (plank_row_idx == 0) plank_length_modulus = 16;
if (plank_row_idx == 1) plank_length_modulus = 19;
if (plank_row_idx == 2) plank_length_modulus = 21;
if (plank_row_idx == 3) plank_length_modulus = 25;
if (plank_row_idx == 4) plank_length_modulus = 27;
// Looks good for brick.
@@ -277,7 +277,8 @@ namespace CaveGame::Client {
uint8_t base_b = 135 - shift;
//if (wy % 5 == 0 || ((Math::RoundInt(wy/5)*5)+wx) % 9 == 0) { //&& (y_remainder == 0)) {
if (wy % 5 == 0 || (wx+(plank_row*5)) % 19 == 0) { //&& (y_remainder == 0)) {
//if (wy % 5 == 0 || (wx+(plank_row*5)) % 19 == 0) { //&& (y_remainder == 0)) {
if (wy % 5 == 0 || (wx+(plank_row*5)) % plank_length_modulus == 0) {
base_r -= 50;
base_g -= 45;
base_b -= 40;