Last change
on this file since 3d64884 was 8edd04e, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
Make the decompiled game code compile successfully
|
-
Property mode
set to
100644
|
File size:
467 bytes
|
Rev | Line | |
---|
[8edd04e] | 1 | package main;
|
---|
| 2 |
|
---|
| 3 | public class Confuse extends TimedEffect {
|
---|
| 4 |
|
---|
| 5 | public Confuse(TargetType target, long duration) {
|
---|
| 6 | super(EffectType.Confuse, target, duration);
|
---|
| 7 | }
|
---|
| 8 |
|
---|
| 9 | public Confuse(Confuse e) {
|
---|
| 10 | super(e);
|
---|
| 11 | }
|
---|
| 12 |
|
---|
| 13 | public Confuse copy() {
|
---|
| 14 | return new Confuse(this);
|
---|
| 15 | }
|
---|
| 16 |
|
---|
| 17 | public void applyEffect(Object o) {
|
---|
| 18 | ((Creature)o).addEffect(this);
|
---|
| 19 | ((Creature)o).confused++;
|
---|
| 20 | }
|
---|
| 21 |
|
---|
| 22 | public void cancelEffect(Object o) {
|
---|
| 23 | ((Creature)o).confused--;
|
---|
| 24 | }
|
---|
| 25 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.