FlyingComp cleanup
This commit is contained in:
@@ -41,6 +41,10 @@ abstract class FlyingComp implements Posc, Velc, Healthc, Hitboxc{
|
|||||||
return isGrounded() && !hovering;
|
return isGrounded() && !hovering;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
boolean emitWalkSound(){
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
void landed(){
|
void landed(){
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -80,7 +84,7 @@ abstract class FlyingComp implements Posc, Velc, Healthc, Hitboxc{
|
|||||||
floor.walkEffect.at(x, y, hitSize() / 8f, floor.mapColor);
|
floor.walkEffect.at(x, y, hitSize() / 8f, floor.mapColor);
|
||||||
splashTimer = 0f;
|
splashTimer = 0f;
|
||||||
|
|
||||||
if(!(this instanceof WaterMovec)){
|
if(emitWalkSound()){
|
||||||
floor.walkSound.at(x, y, Mathf.random(floor.walkSoundPitchMin, floor.walkSoundPitchMax), floor.walkSoundVolume);
|
floor.walkSound.at(x, y, Mathf.random(floor.walkSoundPitchMin, floor.walkSoundPitchMax), floor.walkSoundVolume);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -44,6 +44,13 @@ abstract class WaterMoveComp implements Posc, Velc, Hitboxc, Flyingc, Unitc{
|
|||||||
return Pathfinder.costNaval;
|
return Pathfinder.costNaval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//don't want obnoxious splashing
|
||||||
|
@Override
|
||||||
|
@Replace
|
||||||
|
public boolean emitWalkSound(){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void add(){
|
public void add(){
|
||||||
tleft.clear();
|
tleft.clear();
|
||||||
|
|||||||
Reference in New Issue
Block a user