Reputation system rework.
TODO: Add more proper formulas.
This commit is contained in:
@ -237,7 +237,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
|
||||
return GeoData.getInstance().canSeeTarget(me, player);
|
||||
}
|
||||
// Check if the L2PcInstance target has karma (=PK)
|
||||
if ((player != null) && (player.getKarma() > 0))
|
||||
if ((player != null) && (player.getReputation() < 0))
|
||||
{
|
||||
return GeoData.getInstance().canSeeTarget(me, player); // Los Check
|
||||
}
|
||||
@ -258,7 +258,7 @@ public class L2AttackableAI extends L2CharacterAI implements Runnable
|
||||
}
|
||||
|
||||
// Check if the L2PcInstance target has karma (=PK)
|
||||
if ((target instanceof L2PcInstance) && (((L2PcInstance) target).getKarma() > 0))
|
||||
if ((target instanceof L2PcInstance) && (((L2PcInstance) target).getReputation() < 0))
|
||||
{
|
||||
return GeoData.getInstance().canSeeTarget(me, target); // Los Check
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ public abstract class L2PlayableAI extends L2CharacterAI
|
||||
{
|
||||
if (target instanceof L2Playable)
|
||||
{
|
||||
if (target.getActingPlayer().isProtectionBlessingAffected() && ((_actor.getActingPlayer().getLevel() - target.getActingPlayer().getLevel()) >= 10) && (_actor.getActingPlayer().getKarma() > 0) && !(target.isInsideZone(ZoneId.PVP)))
|
||||
if (target.getActingPlayer().isProtectionBlessingAffected() && ((_actor.getActingPlayer().getLevel() - target.getActingPlayer().getLevel()) >= 10) && (_actor.getActingPlayer().getReputation() < 0) && !(target.isInsideZone(ZoneId.PVP)))
|
||||
{
|
||||
// If attacker have karma and have level >= 10 than his target and target have
|
||||
// Newbie Protection Buff,
|
||||
@ -54,7 +54,7 @@ public abstract class L2PlayableAI extends L2CharacterAI
|
||||
return;
|
||||
}
|
||||
|
||||
if (_actor.getActingPlayer().isProtectionBlessingAffected() && ((target.getActingPlayer().getLevel() - _actor.getActingPlayer().getLevel()) >= 10) && (target.getActingPlayer().getKarma() > 0) && !(target.isInsideZone(ZoneId.PVP)))
|
||||
if (_actor.getActingPlayer().isProtectionBlessingAffected() && ((target.getActingPlayer().getLevel() - _actor.getActingPlayer().getLevel()) >= 10) && (target.getActingPlayer().getReputation() < 0) && !(target.isInsideZone(ZoneId.PVP)))
|
||||
{
|
||||
// If target have karma and have level >= 10 than his target and actor have
|
||||
// Newbie Protection Buff,
|
||||
@ -86,7 +86,7 @@ public abstract class L2PlayableAI extends L2CharacterAI
|
||||
{
|
||||
if ((target instanceof L2Playable) && skill.isBad())
|
||||
{
|
||||
if (target.getActingPlayer().isProtectionBlessingAffected() && ((_actor.getActingPlayer().getLevel() - target.getActingPlayer().getLevel()) >= 10) && (_actor.getActingPlayer().getKarma() > 0) && !target.isInsideZone(ZoneId.PVP))
|
||||
if (target.getActingPlayer().isProtectionBlessingAffected() && ((_actor.getActingPlayer().getLevel() - target.getActingPlayer().getLevel()) >= 10) && (_actor.getActingPlayer().getReputation() < 0) && !target.isInsideZone(ZoneId.PVP))
|
||||
{
|
||||
// If attacker have karma and have level >= 10 than his target and target have
|
||||
// Newbie Protection Buff,
|
||||
@ -96,7 +96,7 @@ public abstract class L2PlayableAI extends L2CharacterAI
|
||||
return;
|
||||
}
|
||||
|
||||
if (_actor.getActingPlayer().isProtectionBlessingAffected() && ((target.getActingPlayer().getLevel() - _actor.getActingPlayer().getLevel()) >= 10) && (target.getActingPlayer().getKarma() > 0) && !target.isInsideZone(ZoneId.PVP))
|
||||
if (_actor.getActingPlayer().isProtectionBlessingAffected() && ((target.getActingPlayer().getLevel() - _actor.getActingPlayer().getLevel()) >= 10) && (target.getActingPlayer().getReputation() < 0) && !target.isInsideZone(ZoneId.PVP))
|
||||
{
|
||||
// If target have karma and have level >= 10 than his target and actor have
|
||||
// Newbie Protection Buff,
|
||||
|
Reference in New Issue
Block a user