summary refs log tree commit diff stats
path: root/src/game.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2022-03-16 20:23:40 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2022-03-16 20:23:40 -0400
commitc75c9a7170eee423d4b8c654867e1f3d7e1e84bc (patch)
tree534b2afe390776dc71a759c54d0c78246e163520 /src/game.cpp
parent8e430782771d1f2980b367daf17d809d5805b7e4 (diff)
downloadether-c75c9a7170eee423d4b8c654867e1f3d7e1e84bc.tar.gz
ether-c75c9a7170eee423d4b8c654867e1f3d7e1e84bc.tar.bz2
ether-c75c9a7170eee423d4b8c654867e1f3d7e1e84bc.zip
signs are more common and also quieter
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game.cpp b/src/game.cpp index 5838528..088ab4d 100644 --- a/src/game.cpp +++ b/src/game.cpp
@@ -276,7 +276,7 @@ void Game::recalculateRender() {
276 if (isTileSetOrNotLit(map, x-1, y+1)) renderDesc |= (1 << 1); 276 if (isTileSetOrNotLit(map, x-1, y+1)) renderDesc |= (1 << 1);
277 if (isTileSetOrNotLit(map, x-1, y )) renderDesc |= (1 << 0); 277 if (isTileSetOrNotLit(map, x-1, y )) renderDesc |= (1 << 0);
278 278
279 if (renderDesc == 0 && map.at(x,y).sign) { 279 if (/*renderDesc == 0 && */map.at(x,y).sign) {
280 map.at(x,y).renderId = TilesetIndex(24, 13); 280 map.at(x,y).renderId = TilesetIndex(24, 13);
281 } else if (std::bernoulli_distribution(0.05)(rng)) { 281 } else if (std::bernoulli_distribution(0.05)(rng)) {
282 static const std::vector<int> furnishings { 282 static const std::vector<int> furnishings {
@@ -286,7 +286,7 @@ void Game::recalculateRender() {
286 TilesetIndex(21, 3), 286 TilesetIndex(21, 3),
287 TilesetIndex(22, 3)}; 287 TilesetIndex(22, 3)};
288 288
289 if (renderDesc == 0 && !(x == player_x && y == player_y) && std::bernoulli_distribution(0.2)(rng)) { 289 if (/*renderDesc == 0 &&*/ !(x == player_x && y == player_y) && std::bernoulli_distribution(0.005)(rng)) {
290 map.at(x,y).renderId = TilesetIndex(24, 13); 290 map.at(x,y).renderId = TilesetIndex(24, 13);
291 map.at(x,y).sign = true; 291 map.at(x,y).sign = true;
292 } else { 292 } else {