fixes and minor improvements

This commit is contained in:
catarrh committed 2026-07-26 03:17:09 +03:00
1 parent ba794804e3
commit 682a8106b5
2 files changed
+3 -6

No files matched your search

+2 -2
View File
@@ -89,7 +89,7 @@ export const EXPLOSION_TYPES = {
},
clip(explosion, terrain) {
const {x, y, cr} = explosion;
drawDirt(terrain, x, y, cr);
drawDirt(terrain, x, y, cr, terrain.color);
},
damage(explosion, player) {}
},
@@ -139,7 +139,7 @@ export const EXPLOSION_TYPES = {
const {x, y, cr, osc, pattern} = explosion;
let row = [];
for (let cx=0; cx<=1+cr*2; cx++) {
for (let cx=0; cx < 1+cr*2; cx++) {
row.push(randomInt(0, 3) === 0);
}
pattern.push(row);