Fixed Bug Bite/Pluck and Fling not enabling Belch/triggering Symbiosis when a berry is consumed

This commit is contained in:
Maruno17
2023-02-05 18:59:30 +00:00
parent c233841bb6
commit 4749bd5201
3 changed files with 18 additions and 8 deletions

View File

@@ -45,8 +45,8 @@ def drawSpot(bitmap, spotpattern, x, y, red, green, blue)
spot = spotpattern[yy]
width.times do |xx|
next if spot[xx] != 1
xOrg = (x + xx) << 1
yOrg = (y + yy) << 1
xOrg = (x + xx) * 2
yOrg = (y + yy) * 2
color = bitmap.get_pixel(xOrg, yOrg)
r = color.red + red
g = color.green + green
@@ -63,6 +63,7 @@ def drawSpot(bitmap, spotpattern, x, y, red, green, blue)
end
def pbSpindaSpots(pkmn, bitmap)
# NOTE: These spots are doubled in size when drawing them.
spot1 = [
[0, 0, 1, 1, 1, 1, 0, 0],
[0, 1, 1, 1, 1, 1, 1, 0],
@@ -123,6 +124,8 @@ def pbSpindaSpots(pkmn, bitmap)
c = (id >> 8) & 15
b = (id >> 4) & 15
a = (id) & 15
# NOTE: The coordinates below (b + 33, a + 25 and so on) are doubled when
# drawing the spot.
if pkmn.shiny?
drawSpot(bitmap, spot1, b + 33, a + 25, -75, -10, -150)
drawSpot(bitmap, spot2, d + 21, c + 24, -75, -10, -150)