freezing buff

This commit is contained in:
Laetitia (O-01-67) 2023-03-08 14:51:16 -05:00 committed by GitHub
parent 400887157e
commit 833bf4cb34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2430,7 +2430,8 @@ if(!enabledMods.includes(libraryMod)) {
var magmaTempHigh = Math.max(...Object.values(elements[magmaName]._magmaCoolingPassToElement.meltingPoints));
if(pixel.wet && !pixel.frozen && pixel.temp < 0) {
if(Math.random() < (pixel.wet / 40)) { //if unfrozen, crack apart (freezing damage) with small chance, and then mark survivors as frozen
if(Math.random() < (pixel.wet / 25)) { //if unfrozen, crack apart (freezing damage) with small chance, and then mark survivors as frozen
//console.log("freezing");
explodeAt(pixel.x,pixel.y,2,"ice");
if(!pixel) { //if deleted
return;