You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
543 B
38 lines
543 B
10 years ago
|
package mightypork.rogue.world.entity.impl;
|
||
10 years ago
|
|
||
|
|
||
|
import mightypork.rogue.world.entity.Entity;
|
||
|
|
||
|
|
||
|
public class BrownRatAi extends GrayRatAi {
|
||
|
|
||
|
public BrownRatAi(Entity entity)
|
||
|
{
|
||
|
super(entity);
|
||
|
|
||
10 years ago
|
setAttackTime(1.2);
|
||
|
setScanTime(1.3);
|
||
10 years ago
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
protected double getScanRadius()
|
||
|
{
|
||
|
return isSleeping() ? 3 + rand.nextInt(3) : 5 + rand.nextInt(3);
|
||
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
protected int getAttackStrength()
|
||
|
{
|
||
10 years ago
|
return 2 + rand.nextInt(3);
|
||
10 years ago
|
}
|
||
|
|
||
|
|
||
|
@Override
|
||
|
protected int getPreyAbandonDistance()
|
||
|
{
|
||
|
return 11 + rand.nextInt(4);
|
||
|
}
|
||
|
}
|