mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-08 08:23:11 +00:00
@@ -16,13 +16,15 @@
|
||||
*/
|
||||
package com.l2jserver.util.calculator;
|
||||
|
||||
import com.l2jserver.model.world.Actor;
|
||||
|
||||
/**
|
||||
* This function performs a multiplication: <blockquote><code>chain value *
|
||||
* (value / 100)</code></blockquote>
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
public class PercentFunction extends MultiplicationFunction {
|
||||
public class PercentFunction<O extends Actor> extends MultiplicationFunction<O> {
|
||||
/**
|
||||
* The value
|
||||
*/
|
||||
|
||||
@@ -21,11 +21,10 @@ import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.CharacterTemplateID;
|
||||
import com.l2jserver.model.id.template.provider.CharacterTemplateIDProvider;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.world.character.CharacterClass;
|
||||
|
||||
/**
|
||||
* TODO this should use an {@link ItemTemplateIDProvider}!
|
||||
* This class is an JAXB Adapter for {@link CharacterTemplateIDProvider}
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
|
||||
@@ -23,7 +23,7 @@ import com.l2jserver.model.id.template.ItemTemplateID;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
|
||||
/**
|
||||
* TODO this should use an {@link ItemTemplateIDProvider}!
|
||||
* This class is an JAXB Adapter for {@link ItemTemplateIDProvider}
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
@@ -43,7 +43,7 @@ public class ItemTemplateIDAdapter extends XmlAdapter<Integer, ItemTemplateID> {
|
||||
public ItemTemplateID unmarshal(Integer v) throws Exception {
|
||||
if (v == 0)
|
||||
return null;
|
||||
if(provider == null)
|
||||
if (provider == null)
|
||||
return new ItemTemplateID(v, null);
|
||||
return provider.createID(v);
|
||||
}
|
||||
|
||||
@@ -20,11 +20,10 @@ import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.NPCTemplateID;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.id.template.provider.NPCTemplateIDProvider;
|
||||
|
||||
/**
|
||||
* TODO this should use an {@link ItemTemplateIDProvider}!
|
||||
* This class is an JAXB Adapter for {@link NPCTemplateIDProvider}
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
|
||||
@@ -20,11 +20,10 @@ import javax.xml.bind.annotation.adapters.XmlAdapter;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.TeleportationTemplateID;
|
||||
import com.l2jserver.model.id.template.provider.ItemTemplateIDProvider;
|
||||
import com.l2jserver.model.id.template.provider.TeleportationTemplateIDProvider;
|
||||
|
||||
/**
|
||||
* TODO this should use an {@link ItemTemplateIDProvider}!
|
||||
* This class is an JAXB Adapter for {@link TeleportationTemplateIDProvider}
|
||||
*
|
||||
* @author <a href="http://www.rogiel.com">Rogiel</a>
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user