Minor new additions for v20 (#147)

* Moved TMs/ TRs and HMs into their own handlers
* Improved Plugin Error Message
* Added sound effect when picking berries
* Allow player to always see quantity when buying items
* Trainers now require a Mega Ring item in their items (in trainers.txt) to Mega Evolve
This commit is contained in:
Golisopod-User
2021-12-30 00:06:26 +05:30
committed by GitHub
parent fb29f19a28
commit 13cc9790ce
11 changed files with 81 additions and 46 deletions

View File

@@ -421,10 +421,8 @@ end
def pbMoveTutorChoose(move, movelist = nil, bymachine = false, oneusemachine = false)
ret = false
move = GameData::Move.get(move).id
if movelist != nil && movelist.is_a?(Array)
movelist.length.times do |i|
movelist[i] = GameData::Move.get(movelist[i]).id
end
if movelist.is_a?(Array)
movelist.map! { |m| GameData::Move.get(m).id }
end
pbFadeOutIn {
movename = GameData::Move.get(move).name