Random assorted changes (#11338)

* shield stat changes

* shield stats + leg crush stats + apply floormultiplier to comp
This commit is contained in:
EggleEgg
2025-11-04 10:44:08 -05:00
committed by GitHub
parent 38d9bc83a3
commit 56b7e6357f
9 changed files with 62 additions and 8 deletions
@@ -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. */