Replaced get_character(0) with get_self

This commit is contained in:
Maruno17
2021-12-15 22:10:53 +00:00
parent eec29709ac
commit b5ee1b211d
5 changed files with 14 additions and 12 deletions

View File

@@ -309,7 +309,7 @@ Events.onSpritesetCreate += proc { |_sender, e|
#===============================================================================
def pbBerryPlant
interp = pbMapInterpreter
this_event = interp.get_character(0)
this_event = interp.get_self
berry_plant = interp.getVariable
if !berry_plant
berry_plant = BerryPlantData.new
@@ -460,7 +460,7 @@ def pbPickBerry(berry, qty = 1)
else
pbMessage(_INTL("The soil returned to its soft and loamy state."))
end
this_event = pbMapInterpreter.get_character(0)
this_event = pbMapInterpreter.get_self
pbSetSelfSwitch(this_event.id, "A", true)
return true
end