Adds assist and assurance, fixes

This commit is contained in:
2022-09-09 20:09:56 +02:00
parent 05430c5e84
commit 365bdc8aec
57 changed files with 533 additions and 95 deletions

16
gen_7_scripts/src/moves/acrobatics.rs Normal file → Executable file
View File

@@ -1,20 +1,16 @@
use crate::script;
use core::any::Any;
use pkmn_lib_interface::app_interface::{ExecutingMove, Pokemon};
use pkmn_lib_interface::handling::{Script, ScriptCapabilities};
pub struct Acrobatics {}
impl Acrobatics {
pub const fn get_const_name() -> &'static str {
"acrobatics"
}
}
script!(Acrobatics, "acrobatics");
impl Script for Acrobatics {
fn new() -> Self {
Self {}
}
fn get_name() -> &'static str {
fn get_name(&self) -> &'static str {
Self::get_const_name()
}
@@ -37,4 +33,8 @@ impl Script for Acrobatics {
}
}
}
fn as_any(&self) -> &dyn Any {
self
}
}