Misc balance/bugfixing

This commit is contained in:
Anuken
2022-04-29 14:59:57 -04:00
parent 22b4d11b36
commit dcb51ca73f
2 changed files with 17 additions and 15 deletions

View File

@@ -173,16 +173,18 @@ abstract class LegsComp implements Posc, Rotc, Hitboxc, Flyingc, Unitc{
//create effect when transitioning to a group it can't move in
if(!move && (moving || !type.legContinuousMove) && i % div == l.group){
if(floor.isLiquid){
floor.walkEffect.at(l.base.x, l.base.y, type.rippleScale, floor.mapColor);
floor.walkSound.at(x, y, 1f, floor.walkSoundVolume);
}else{
Fx.unitLandSmall.at(l.base.x, l.base.y, type.rippleScale, floor.mapColor);
}
if(!headless && !inFogTo(player.team())){
if(floor.isLiquid){
floor.walkEffect.at(l.base.x, l.base.y, type.rippleScale, floor.mapColor);
floor.walkSound.at(x, y, 1f, floor.walkSoundVolume);
}else{
Fx.unitLandSmall.at(l.base.x, l.base.y, type.rippleScale, floor.mapColor);
}
//shake when legs contact ground
if(type.landShake > 0){
Effect.shake(type.landShake, type.landShake, l.base);
//shake when legs contact ground
if(type.landShake > 0){
Effect.shake(type.landShake, type.landShake, l.base);
}
}
if(type.legSplashDamage > 0){