형님들 템 착용시 메세지 뜨는거...
if (getItem().getName().equalsIgnoreCase("대 마법사의 모자")) {
int 대미지감소 = 0;
int sp = 0;
switch (getEnLevel()) {
case 0:
case 1:
case 2:
case 3:
case 4:
break;
case 5:
sp = 1;
대미지감소 = 1;
break;
case 6:
sp = 2;
대미지감소 = 2;
break;
case 7:
sp = 3;
대미지감소 = 3;
break;
case 8:
sp = 4;
대미지감소 = 4;
break;
case 9:
sp = 5;
대미지감소 = 5;
break;
case 10:
sp = 6;
대미지감소 = 6;
break;
}
if (equipped) {
cha.setDynamicSp(cha.getDynamicSp() + sp);
cha.setDynamicReduction(cha.getDynamicReduction() + 대미지감소);
if (대미지감소 > 0)
ChattingController.toChatting(cha, String.format("%s: sp+%d, 대미지감소+%d", getItem().getName(), sp,대미지감소), Lineage.CHATTING_MODE_MESSAGE);
} else {
cha.setDynamicSp(cha.getDynamicSp() - sp);
cha.setDynamicReduction(cha.getDynamicReduction() - 대미지감소);
왜...적용은 되는데 메세지는 안뜰까요,,,
이거만 따로 띄어서 "test" 문자열만뜨게ㅐ 해봐요