Add 'Programming/ProgLab2/' from commit '20f33961b8c264e4cdcac7e6cdd7a7bfb744cc93'
git-subtree-dir: Programming/ProgLab2 git-subtree-mainline:148a148266git-subtree-split:20f33961b8
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