Fixed NPC level and champion titles.
This commit is contained in:
@ -41,6 +41,7 @@ import com.l2jserver.gameserver.datatables.EventDroplist.DateDrop;
|
||||
import com.l2jserver.gameserver.datatables.ItemTable;
|
||||
import com.l2jserver.gameserver.enums.ChatType;
|
||||
import com.l2jserver.gameserver.enums.InstanceType;
|
||||
import com.l2jserver.gameserver.enums.Team;
|
||||
import com.l2jserver.gameserver.instancemanager.CursedWeaponsManager;
|
||||
import com.l2jserver.gameserver.instancemanager.PcCafePointsManager;
|
||||
import com.l2jserver.gameserver.instancemanager.WalkingManager;
|
||||
@ -1707,6 +1708,10 @@ public class L2Attackable extends L2Npc
|
||||
public void setChampion(boolean champ)
|
||||
{
|
||||
_champion = champ;
|
||||
if (champ)
|
||||
{
|
||||
setTeam(Team.RED);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -3140,6 +3140,19 @@ public abstract class L2Character extends L2Object implements ISkillsHolder, IDe
|
||||
*/
|
||||
public final String getTitle()
|
||||
{
|
||||
if (isChampion())
|
||||
{
|
||||
return Config.L2JMOD_CHAMP_TITLE;
|
||||
}
|
||||
if (Config.SHOW_NPC_LVL && isMonster())
|
||||
{
|
||||
String t = "Lv " + getLevel();
|
||||
if (_title != null)
|
||||
{
|
||||
t += " " + _title;
|
||||
}
|
||||
return t;
|
||||
}
|
||||
return _title != null ? _title : "";
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user