Solved a deadlock case within character stat locks that would sometimes tangle up during stat update dispatch operations. Fixed skill animation being unproperly casted when a mob tries to use a skill even though it couldn't possibly use from its current skillset. Fixed a bug with EXP gain (on where the solo player is on a party) where the EXP would appear in yellow even after soloing a mob. Added packet logging. Happy Easter, folks!
48 lines
1.2 KiB
Java
48 lines
1.2 KiB
Java
/*
|
|
* To change this license header, choose License Headers in Project Properties.
|
|
* To change this template file, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package constants;
|
|
|
|
/*
|
|
* Thanks to GabrielSin (EllinMS) - gabrielsin@playellin.net
|
|
* Ellin
|
|
* MapleStory Server
|
|
* CharsetConstants
|
|
*/
|
|
|
|
public class CharsetConstants {
|
|
|
|
public static MapleLanguageType MAPLE_TYPE = MapleLanguageType.LANGUAGE_US;
|
|
|
|
public enum MapleLanguageType {
|
|
LANGUAGE_PT_BR(1, "ISO-8859-1"),
|
|
LANGUAGE_US(2, "US-ASCII");
|
|
final byte type;
|
|
final String ascii;
|
|
|
|
private MapleLanguageType(int type, String ascii) {
|
|
this.type = (byte) type;
|
|
this.ascii = ascii;
|
|
}
|
|
|
|
public String getAscii() {
|
|
return ascii;
|
|
}
|
|
|
|
public byte getType() {
|
|
return type;
|
|
}
|
|
|
|
public static MapleLanguageType getByType(byte type) {
|
|
for (MapleLanguageType l : MapleLanguageType.values()) {
|
|
if (l.getType() == type) {
|
|
return l;
|
|
}
|
|
}
|
|
return LANGUAGE_PT_BR;
|
|
}
|
|
}
|
|
} |