kidney bugfix
This commit is contained in:
parent
0f8bf2b1e2
commit
de807cae11
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue