mirror of
https://github.com/Rogiel/l2jserver2
synced 2025-12-06 15:33:00 +00:00
@@ -16,11 +16,11 @@ public class AdenaItemTemplate extends ItemTemplate implements Stackable<Item> {
|
||||
|
||||
@Override
|
||||
public void stack(Item... object) {
|
||||
final Item item1 = object[0];
|
||||
if (object.length >= 2) {
|
||||
for (int i = 1; i < object.length; i++) {
|
||||
// TODO set item amount
|
||||
}
|
||||
}
|
||||
// final Item item1 = object[0];
|
||||
// if (object.length >= 2) {
|
||||
// for (int i = 1; i < object.length; i++) {
|
||||
// // TODO set item amount
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4,9 +4,7 @@ import com.l2jserver.model.id.template.ItemTemplateID;
|
||||
import com.l2jserver.model.template.ArmorTemplate;
|
||||
import com.l2jserver.model.template.capability.Enchantable;
|
||||
import com.l2jserver.model.template.capability.Penalty;
|
||||
import com.l2jserver.model.world.capability.Castable;
|
||||
import com.l2jserver.model.world.capability.Equiper;
|
||||
import com.l2jserver.model.world.capability.Levelable;
|
||||
|
||||
public abstract class AbstractGradeAArmorTemplate extends ArmorTemplate
|
||||
implements Enchantable, Penalty {
|
||||
@@ -21,12 +19,12 @@ public abstract class AbstractGradeAArmorTemplate extends ArmorTemplate
|
||||
|
||||
@Override
|
||||
public void penalty(Equiper user) {
|
||||
if (!(user instanceof Levelable) && !(user instanceof Castable))
|
||||
return;
|
||||
final Levelable levelable = (Levelable) user;
|
||||
final Castable castable = (Castable) user;
|
||||
if (levelable.getLevel() < 20) {
|
||||
|
||||
}
|
||||
// if (!(user instanceof Levelable) && !(user instanceof Castable))
|
||||
// return;
|
||||
// final Levelable levelable = (Levelable) user;
|
||||
// final Castable castable = (Castable) user;
|
||||
// if (levelable.getLevel() < 20) {
|
||||
//
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import com.l2jserver.model.world.capability.Attacker;
|
||||
public class TestWeaponTemplate extends WeaponTemplate {
|
||||
private static final int DAMAGE_PHYSICAL = 10;
|
||||
private static final int DAMAGE_MAGICAL = 10;
|
||||
@SuppressWarnings("unused")
|
||||
private static final int MAX_ENCHANT_LEVEL = 10;
|
||||
|
||||
public TestWeaponTemplate() {
|
||||
|
||||
Reference in New Issue
Block a user