Random assorted changes (#11338)
* shield stat changes * shield stats + leg crush stats + apply floormultiplier to comp
This commit is contained in:
@@ -36,7 +36,7 @@ abstract class CrawlComp implements Posc, Rotc, Hitboxc, Unitc{
|
||||
public float floorSpeedMultiplier(){
|
||||
Floor on = isFlying() ? Blocks.air.asFloor() : floorOn();
|
||||
//TODO take into account extra blocks
|
||||
return (on.isDeep() ? 0.45f : on.speedMultiplier) * speedMultiplier * lastCrawlSlowdown;
|
||||
return ((float)Math.pow(on.isDeep() ? 0.45f : on.speedMultiplier, type.floorMultiplier)) * speedMultiplier * lastCrawlSlowdown;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -102,7 +102,7 @@ abstract class UnitComp implements Healthc, Physicsc, Hitboxc, Statusc, Teamc, I
|
||||
|
||||
public float floorSpeedMultiplier(){
|
||||
Floor on = isFlying() || type.hovering ? Blocks.air.asFloor() : floorOn();
|
||||
return on.speedMultiplier * speedMultiplier;
|
||||
return (float)Math.pow(on.speedMultiplier, type.floorMultiplier) * speedMultiplier;
|
||||
}
|
||||
|
||||
/** Called when this unit was unloaded from a factory or spawn point. */
|
||||
|
||||
Reference in New Issue
Block a user