Changeset 5091
- Timestamp:
- Nov 21, 2011 3:03:17 PM (6 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/unstable/L2J_Server_BETA/java/com/l2jserver/gameserver/datatables/HelperBuffTable.java
r5083 r5091 30 30 /** 31 31 * This class represents the Newbie Helper Buff list 32 * Author:Ayor32 * @author Ayor 33 33 */ 34 34 public class HelperBuffTable 35 35 { 36 37 private static Logger _log = Logger.getLogger(HennaTable.class.getName()); 36 private static Logger _log = Logger.getLogger(HelperBuffTable.class.getName()); 38 37 39 38 /** The table containing all Buff of the Newbie Helper */ 40 private List<L2HelperBuff> _helperBuff; 41 42 /** The player level since Newbie Helper can give the fisrt buff <BR> 43 * Used to generate message : "Come back here when you have reached level ...") */ 39 private final List<L2HelperBuff> _helperBuff; 40 41 /** 42 * The player level since Newbie Helper can give the fisrt buff <BR> 43 * Used to generate message : "Come back here when you have reached level ...") 44 */ 44 45 private int _magicClassLowestLevel = 100; 45 46 private int _physicClassLowestLevel = 100; 46 47 47 /** The player level above which Newbie Helper won't give any buff <BR> 48 * Used to generate message : "Only novice character of level ... or less can receive my support magic.") */ 48 /** 49 * The player level above which Newbie Helper won't give any buff <BR> 50 * Used to generate message : "Only novice character of level ... or less can receive my support magic.") 51 */ 49 52 private int _magicClassHighestLevel = 1; 50 53 private int _physicClassHighestLevel = 1; … … 97 100 /** 98 101 * Load the Newbie Helper Buff list from SQL Table helper_buff_list 99 * @param HelperBuffData 100 * @throws Exception 102 * @param HelperBuffData 103 * @throws Exception 101 104 */ 102 105 private void fillHelperBuffTable(ResultSet HelperBuffData) throws Exception … … 120 123 { 121 124 if (HelperBuffData.getInt("lower_level") < _physicClassLowestLevel) 125 { 122 126 _physicClassLowestLevel = HelperBuffData.getInt("lower_level"); 127 } 123 128 124 129 if (HelperBuffData.getInt("upper_level") > _physicClassHighestLevel) 130 { 125 131 _physicClassHighestLevel = HelperBuffData.getInt("upper_level"); 132 } 126 133 } 127 134 else 128 135 { 129 136 if (HelperBuffData.getInt("lower_level") < _magicClassLowestLevel) 137 { 130 138 _magicClassLowestLevel = HelperBuffData.getInt("lower_level"); 139 } 131 140 132 141 if (HelperBuffData.getInt("upper_level") > _magicClassHighestLevel) 142 { 133 143 _magicClassHighestLevel = HelperBuffData.getInt("upper_level"); 144 } 134 145 } 135 146 if ("true".equals(HelperBuffData.getString("forSummon"))) 136 147 { 137 148 if (HelperBuffData.getInt("lower_level") < _servitorLowestLevel) 149 { 138 150 _servitorLowestLevel = HelperBuffData.getInt("lower_level"); 151 } 139 152 140 153 if (HelperBuffData.getInt("upper_level") > _servitorHighestLevel) 154 { 141 155 _servitorHighestLevel = HelperBuffData.getInt("upper_level"); 156 } 142 157 } 143 158 // Add this Helper Buff to the Helper Buff List … … 199 214 200 215 /** 201 @return Returns the servitorHighestLevel.216 * @return Returns the servitorHighestLevel. 202 217 */ 203 218 public int getServitorHighestLevel()
Note: See TracChangeset
for help on using the changeset viewer.
