Exemple #1
0
 @Override
 protected boolean onStart() {
   L2PcInstance player = getEffected().getPlayer();
   if (player == null) return false;
   player._seeds[Seeds.valueOf(getStackType()).ordinal()]++;
   return true;
 }
Exemple #2
0
 @Override
 protected void onExit() {
   L2PcInstance player = getEffected().getPlayer();
   if (player == null) return;
   if (_exitEffector == null || _exitEffector == getEffector()) {
     player._seeds[Seeds.valueOf(getStackType()).ordinal()] = 0;
   }
 }
Exemple #3
0
 public int getForce() {
   L2PcInstance player = getEffected().getPlayer();
   if (player == null) return 0;
   return player._seeds[Seeds.valueOf(getStackType()).ordinal()];
 }