Changeset 5091


Ignore:
Timestamp:
Nov 21, 2011 3:03:17 PM (6 months ago)
Author:
Zoey76
Message:

BETA: Cleanup and code format for HelperBuffTable?.

  • Fixed typo in logger.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/unstable/L2J_Server_BETA/java/com/l2jserver/gameserver/datatables/HelperBuffTable.java

    r5083 r5091  
    3030/** 
    3131 * This class represents the Newbie Helper Buff list 
    32  * Author: Ayor 
     32 * @author Ayor 
    3333 */ 
    3434public class HelperBuffTable 
    3535{ 
    36          
    37         private static Logger _log = Logger.getLogger(HennaTable.class.getName()); 
     36        private static Logger _log = Logger.getLogger(HelperBuffTable.class.getName()); 
    3837         
    3938        /** 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         */ 
    4445        private int _magicClassLowestLevel = 100; 
    4546        private int _physicClassLowestLevel = 100; 
    4647         
    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         */ 
    4952        private int _magicClassHighestLevel = 1; 
    5053        private int _physicClassHighestLevel = 1; 
     
    97100        /** 
    98101         * Load the Newbie Helper Buff list from SQL Table helper_buff_list 
    99          * @param HelperBuffData  
    100          * @throws Exception  
     102         * @param HelperBuffData 
     103         * @throws Exception 
    101104         */ 
    102105        private void fillHelperBuffTable(ResultSet HelperBuffData) throws Exception 
     
    120123                        { 
    121124                                if (HelperBuffData.getInt("lower_level") < _physicClassLowestLevel) 
     125                                { 
    122126                                        _physicClassLowestLevel = HelperBuffData.getInt("lower_level"); 
     127                                } 
    123128                                 
    124129                                if (HelperBuffData.getInt("upper_level") > _physicClassHighestLevel) 
     130                                { 
    125131                                        _physicClassHighestLevel = HelperBuffData.getInt("upper_level"); 
     132                                } 
    126133                        } 
    127134                        else 
    128135                        { 
    129136                                if (HelperBuffData.getInt("lower_level") < _magicClassLowestLevel) 
     137                                { 
    130138                                        _magicClassLowestLevel = HelperBuffData.getInt("lower_level"); 
     139                                } 
    131140                                 
    132141                                if (HelperBuffData.getInt("upper_level") > _magicClassHighestLevel) 
     142                                { 
    133143                                        _magicClassHighestLevel = HelperBuffData.getInt("upper_level"); 
     144                                } 
    134145                        } 
    135146                        if ("true".equals(HelperBuffData.getString("forSummon"))) 
    136147                        { 
    137148                                if (HelperBuffData.getInt("lower_level") < _servitorLowestLevel) 
     149                                { 
    138150                                        _servitorLowestLevel = HelperBuffData.getInt("lower_level"); 
     151                                } 
    139152                                 
    140153                                if (HelperBuffData.getInt("upper_level") > _servitorHighestLevel) 
     154                                { 
    141155                                        _servitorHighestLevel = HelperBuffData.getInt("upper_level"); 
     156                                } 
    142157                        } 
    143158                        // Add this Helper Buff to the Helper Buff List 
     
    199214         
    200215        /** 
    201           @return Returns the servitorHighestLevel. 
     216         * @return Returns the servitorHighestLevel. 
    202217         */ 
    203218        public int getServitorHighestLevel() 
Note: See TracChangeset for help on using the changeset viewer.