Exemplo n.º 1
0
 @Override
 protected boolean onStart() {
   L2PcInstance player = getEffected().getPlayer();
   if (player == null) return false;
   player._seeds[Seeds.valueOf(getStackType()).ordinal()]++;
   return true;
 }
Exemplo n.º 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;
   }
 }
Exemplo n.º 3
0
 public int getForce() {
   L2PcInstance player = getEffected().getPlayer();
   if (player == null) return 0;
   return player._seeds[Seeds.valueOf(getStackType()).ordinal()];
 }