mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
Fixed Heavy Ball's catch rate calculation being inaccurate, added Obstruct to some moves' blacklists
This commit is contained in:
@@ -986,19 +986,14 @@ module Compiler
|
||||
list[index, 0] = new_events if new_events.length > 0
|
||||
changed = true
|
||||
elsif script[/^\s*pbTrainerBattle\((.+)\)\s*$/]
|
||||
echoln ""
|
||||
echoln $1
|
||||
battle_params = split_string_with_quotes($1) # Split on commas
|
||||
echoln battle_params
|
||||
trainer1 = "#{battle_params[0]}, #{battle_params[1]}"
|
||||
trainer1 += ", #{battle_params[4]}" if battle_params[4] && battle_params[4] != "nil"
|
||||
list[index].parameters[1] = "TrainerBattle.start(#{trainer1})"
|
||||
old_indent = list[index].indent
|
||||
new_events = []
|
||||
if battle_params[2] && !battle_params[2].empty? && battle_params[2] != "nil"
|
||||
echoln battle_params[2]
|
||||
speech = battle_params[2].gsub(/^\s*_I\(\s*"\s*/, "").gsub(/\"\s*\)\s*$/, "")
|
||||
echoln speech
|
||||
push_comment(new_events, "EndSpeech: #{speech.strip}", old_indent)
|
||||
end
|
||||
if battle_params[3] && battle_params[3][/true/]
|
||||
|
||||
Reference in New Issue
Block a user