kidney bugfix

This commit is contained in:
Nekonico 2025-01-18 19:27:58 -08:00 committed by GitHub
parent 0f8bf2b1e2
commit de807cae11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 16 additions and 0 deletions

View File

@ -2095,6 +2095,10 @@ elements.kidney = {
hitPixel.speed++
pixel.pee += 1
}
if (elements[hitPixel.element].isKidney === true && Math.random() < 0.25 && pixel.pee) {
hitPixel.pee += 1
pixel.pee -= 1
}
}
else if (pixel.pee > 4 && Math.random() > 0.95) {
if (Math.random() > 0.8) {
@ -2108,6 +2112,10 @@ elements.kidney = {
hitPixel.speed++
pixel.pee += 1
}
if (elements[hitPixel.element].isKidney === true && Math.random() < 0.25 && pixel.pee) {
hitPixel.pee += 1
pixel.pee -= 1
}
}
else if (pixel.pee > 4 && Math.random() > 0.95) {
if (Math.random() > 0.8) {
@ -2121,6 +2129,10 @@ elements.kidney = {
hitPixel.speed++
pixel.pee += 1
}
if (elements[hitPixel.element].isKidney === true && Math.random() < 0.25 && pixel.pee) {
hitPixel.pee += 1
pixel.pee -= 1
}
}
else if (pixel.pee > 4 && Math.random() > 0.95) {
if (Math.random() > 0.8) {
@ -2134,6 +2146,10 @@ elements.kidney = {
hitPixel.speed++
pixel.pee += 1
}
if (elements[hitPixel.element].isKidney === true && Math.random() < 0.25 && pixel.pee) {
hitPixel.pee += 1
pixel.pee -= 1
}
}
else if (pixel.pee > 4 && Math.random() > 0.95) {
if (Math.random() > 0.8) {