PkmnLib_rs/tests/data/scripts/moves/test.rn

14 lines
284 B
Plaintext

mod moves {
struct TestMove;
impl TestMove {
pub fn change_speed(self, choice, speed) {
println(`change_speed: ${choice.speed()}`);
println(`user level: ${choice.user().level()}`);
println(`owner: ${self.owner.level()}`);
speed += 100;
}
}
}