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

@@ -195,14 +195,14 @@ class Window_PokemonOption < Window_DrawableCommand
when EnumOption
if @options[index].values.length > 1
totalwidth = 0
@options[index].each_value do |value|
@options[index].values.each do |value|
totalwidth += self.contents.text_size(value).width
end
spacing = (rect.width - rect.x - optionwidth - totalwidth) / (@options[index].values.length - 1)
spacing = 0 if spacing < 0
xpos = optionwidth + rect.x
ivalue = 0
@options[index].each_value do |value|
@options[index].values.each do |value|
pbDrawShadowText(self.contents, xpos, rect.y, optionwidth, rect.height, value,
(ivalue == self[index]) ? SEL_VALUE_BASE_COLOR : self.baseColor,
(ivalue == self[index]) ? SEL_VALUE_SHADOW_COLOR : self.shadowColor)