فهرست منبع

Updating TraitType to H5.

Adry85 7 سال پیش
والد
کامیت
e92cf28bbc

+ 2 - 2
src/main/java/com/l2jserver/gameserver/model/items/type/WeaponType.java

@@ -48,7 +48,7 @@ public enum WeaponType implements ItemType
 	private final TraitType _traitType;
 	
 	/**
-	 * Constructor of the L2WeaponType.
+	 * Constructor of the WeaponType.
 	 * @param traitType
 	 */
 	private WeaponType(TraitType traitType)
@@ -67,7 +67,7 @@ public enum WeaponType implements ItemType
 	}
 	
 	/**
-	 * @return L2TraitType the type of the WeaponType
+	 * @return TraitType the type of the WeaponType
 	 */
 	public TraitType getTraitType()
 	{

+ 14 - 8
src/main/java/com/l2jserver/gameserver/model/stats/TraitType.java

@@ -23,7 +23,7 @@ package com.l2jserver.gameserver.model.stats;
  */
 public enum TraitType
 {
-	UNK_0(0, 0),
+	NONE(0, 0),
 	SWORD(1, 1),
 	BLUNT(2, 1),
 	DAGGER(3, 1),
@@ -51,21 +51,27 @@ public enum TraitType
 	CONSTRUCT_WEAKNESS(25, 2),
 	DEATH(26, 3),
 	VALAKAS(27, 2),
-	UNK_28(28, 2),
-	UNK_29(29, 3),
+	ANESTHESIA(28, 2),
+	CRITICAL_POISON(29, 3),
 	ROOT_PHYSICALLY(30, 3),
-	UNK_31(31, 3),
+	ROOT_MAGICALLY(31, 3),
 	RAPIER(32, 1),
 	CROSSBOW(33, 1),
 	ANCIENTSWORD(34, 1),
 	TURN_STONE(35, 3),
 	GUST(36, 3),
 	PHYSICAL_BLOCKADE(37, 3),
-	UNK_38(38, 3),
-	UNK_39(39, 3),
-	UNK_40(40, 3),
+	TARGET(38, 3),
+	PHYSICAL_WEAKNESS(39, 3),
+	MAGICAL_WEAKNESS(40, 3),
 	DUALDAGGER(41, 1),
-	NONE(42, 0);
+	DEMONIC_WEAKNESS(42, 2), // CT26_P4
+	DIVINE_WEAKNESS(43, 2),
+	ELEMENTAL_WEAKNESS(44, 2),
+	FAIRY_WEAKNESS(45, 2),
+	HUMAN_WEAKNESS(46, 2),
+	HUMANOID_WEAKNESS(47, 2),
+	UNDEAD_WEAKNESS(48, 2);
 	
 	private final int _id;
 	private final int _type; // 1 = weapon, 2 = weakness, 3 = resistance