mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-10 09:22:49 +00:00
@@ -16,13 +16,15 @@
|
||||
*/
|
||||
package com.l2jserver.util.calculator;
|
||||
|
||||
import com.l2jserver.model.world.Actor;
|
||||
|
||||
/**
|
||||
* This function performs a division: <blockquote><code>chain value /
|
||||
* value</code></blockquote>
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public class DivisionFunction extends AbstractFunction<CalculatorContext> {
|
||||
public class DivisionFunction<O extends Actor> extends AbstractFunction<O> {
|
||||
/**
|
||||
* The value
|
||||
*/
|
||||
@@ -34,7 +36,7 @@ public class DivisionFunction extends AbstractFunction<CalculatorContext> {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void calculate(CalculatorContext ctx) {
|
||||
public void calculate(O actor, CalculatorContext ctx) {
|
||||
ctx.result /= this.value;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user