Allow fight.speed to create improbable violations for higher violation

levels.

Might need configuration/testing.
This commit is contained in:
asofold 2013-03-08 23:26:57 +01:00
parent 61bc88b64f
commit de4faa392d

View File

@ -155,8 +155,13 @@ public class FightListener extends CheckListener implements JoinLeaveListener{
if (speed.check(player, now)){
cancelled = true;
// Still feed the improbable.
if (data.speedVL > 50){
Improbable.check(player, 2f, now, "fight.speed");
}
else{
Improbable.feed(player, 2f, now);
}
}
else if (normalizedMove > 2.0 && Improbable.check(player, 1f, now, "fight.speed")){
// Feed improbable in case of ok-moves too.
// TODO: consider only feeding if attacking with higher average speed (!)