mirror of
https://github.com/Rogiel/l2jserver2
synced 2026-01-27 21:22:48 +00:00
@@ -18,15 +18,15 @@ package script.template.actor.character;
|
||||
|
||||
import com.google.inject.Inject;
|
||||
import com.l2jserver.model.id.template.CharacterTemplateID;
|
||||
import com.l2jserver.model.id.template.factory.CharacterTemplateIDFactory;
|
||||
import com.l2jserver.model.id.template.provider.CharacterTemplateIDProvider;
|
||||
import com.l2jserver.model.world.L2Character;
|
||||
import com.l2jserver.model.world.character.CharacterClass;
|
||||
import com.l2jserver.util.dimensional.Point;
|
||||
|
||||
public class ${javaClassName}Template extends ${parent}Template {
|
||||
@Inject
|
||||
public ${javaClassName}Template(CharacterTemplateIDFactory factory) {
|
||||
super(factory.createID(${ClassId}.id), ${ClassId}, Point.fromXYZ(${x}, ${y}, ${z}));
|
||||
public ${javaClassName}Template(CharacterTemplateIDProvider provider) {
|
||||
super(provider.createID(${ClassId}.id), ${ClassId}, Point.fromXYZ(${x}, ${y}, ${z}));
|
||||
// ATTRIBUTES
|
||||
attributes.intelligence = ${_INT};
|
||||
attributes.strength = ${STR};
|
||||
@@ -46,6 +46,11 @@ public class ${javaClassName}Template extends ${parent}Template {
|
||||
attributes.moveSpeed = ${MOVE_SPD};
|
||||
attributes.maxWeigth = ${_LOAD};
|
||||
attributes.craft = ${canCraft};
|
||||
|
||||
this.maleCollisionRadius = ${M_COL_R};
|
||||
this.maleCollisionHeight = ${M_COL_H};
|
||||
this.femaleCollisionRadius = ${F_COL_R};
|
||||
this.femaleCollisionHeight = ${F_COL_H};
|
||||
}
|
||||
|
||||
protected ${javaClassName}Template(CharacterTemplateID id,
|
||||
|
||||
@@ -46,6 +46,11 @@ public class ${javaClassName}Template extends ${parent}Template {
|
||||
attributes.moveSpeed = ${MOVE_SPD};
|
||||
attributes.maxWeigth = ${_LOAD};
|
||||
attributes.craft = ${canCraft};
|
||||
|
||||
this.maleCollisionRadius = ${M_COL_R};
|
||||
this.maleCollisionHeight = ${M_COL_H};
|
||||
this.femaleCollisionRadius = ${F_COL_R};
|
||||
this.femaleCollisionHeight = ${F_COL_H};
|
||||
}
|
||||
|
||||
protected ${javaClassName}Template(CharacterTemplateID id,
|
||||
|
||||
Reference in New Issue
Block a user