Skip to content

Commit

Permalink
JS one-line helper function for initializing effects
Browse files Browse the repository at this point in the history
  • Loading branch information
NeumimTo committed Mar 6, 2019
1 parent 78ea906 commit 7ecb1cb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Plugin/src/main/java/cz/neumimto/rpg/effects/EffectBase.java
Original file line number Diff line number Diff line change
Expand Up @@ -250,4 +250,11 @@ public boolean isTickingDisabled() {
public void setTickingDisabled(boolean tickingDisabled) {
this.tickingDisabled = tickingDisabled;
}

public void init(IEffectConsumer consumer, String name, long duration, long period) {
this.consumer = consumer;
this.name = name;
this.period = period;
this.duration = duration;
}
}

0 comments on commit 7ecb1cb

Please sign in to comment.