Rewrote various AI switching checks

This commit is contained in:
Maruno17
2023-03-25 23:26:34 +00:00
parent 138d41f7bc
commit 0bb0fb4a26
6 changed files with 316 additions and 116 deletions

View File

@@ -47,18 +47,21 @@ class Pokemon
end
alias totalpp total_pp
def function_code; return GameData::Move.get(@id).function_code; end
def power; return GameData::Move.get(@id).power; end
def type; return GameData::Move.get(@id).type; end
def category; return GameData::Move.get(@id).category; end
def accuracy; return GameData::Move.get(@id).accuracy; end
def effect_chance; return GameData::Move.get(@id).effect_chance; end
def target; return GameData::Move.get(@id).target; end
def priority; return GameData::Move.get(@id).priority; end
def flags; return GameData::Move.get(@id).flags; end
def name; return GameData::Move.get(@id).name; end
def description; return GameData::Move.get(@id).description; end
def hidden_move?; return GameData::Move.get(@id).hidden_move?; end
def function_code; return GameData::Move.get(@id).function_code; end
def power; return GameData::Move.get(@id).power; end
def type; return GameData::Move.get(@id).type; end
def category; return GameData::Move.get(@id).category; end
def physical_move?; return GameData::Move.get(@id).physical?; end
def special_move?; return GameData::Move.get(@id).special?; end
def status_move?; return GameData::Move.get(@id).status?; end
def accuracy; return GameData::Move.get(@id).accuracy; end
def effect_chance; return GameData::Move.get(@id).effect_chance; end
def target; return GameData::Move.get(@id).target; end
def priority; return GameData::Move.get(@id).priority; end
def flags; return GameData::Move.get(@id).flags; end
def name; return GameData::Move.get(@id).name; end
def description; return GameData::Move.get(@id).description; end
def hidden_move?; return GameData::Move.get(@id).hidden_move?; end
# @deprecated This method is slated to be removed in v22.
def base_damage