ProgLab2/pass
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package moves;
|
||||
|
||||
import ru.ifmo.se.pokemon.*;
|
||||
|
||||
public final class RockSlide extends PhysicalMove {
|
||||
public RockSlide() {
|
||||
super(Type.ROCK, 75, 0.9);
|
||||
}
|
||||
|
||||
@Override protected void applyOppEffects(Pokemon p) {
|
||||
if (Math.random() < 0.3) {
|
||||
Effect.flinch(p);
|
||||
}
|
||||
}
|
||||
|
||||
@Override protected String describe() {
|
||||
return "скидывает булыжник";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user