Added random slopes, various bugfixes and balance fixes
This commit is contained in:
@@ -264,7 +264,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait {
|
||||
baseRotation = Mathf.slerpDelta(baseRotation, movement.angle(), 0.13f);
|
||||
}
|
||||
|
||||
boostHeat = Mathf.lerpDelta(boostHeat, isBoosting ? 1f : 0f, 0.08f);
|
||||
boostHeat = Mathf.lerpDelta(boostHeat, isBoosting && !movement.isZero() && moved ? 1f : 0f, 0.08f);
|
||||
|
||||
boolean snap = snapCamera && isLocal;
|
||||
|
||||
@@ -415,6 +415,7 @@ public class Player extends Unit implements BuilderTrait, CarryTrait {
|
||||
hitTime = Math.max(0f, hitTime - Timers.delta());
|
||||
|
||||
if(isDead()){
|
||||
isBoosting = false;
|
||||
CoreEntity entity = (CoreEntity)getClosestCore();
|
||||
|
||||
if (!respawning && entity != null) {
|
||||
|
||||
@@ -207,6 +207,7 @@ public class ItemDrop extends SolidEntity implements SaveTrait, SyncTrait, DrawT
|
||||
y = data.readFloat();
|
||||
item = Item.getByID(data.readByte());
|
||||
amount = data.readShort();
|
||||
add();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -164,9 +164,9 @@ public class Puddle extends BaseEntity implements SaveTrait, Poolable, DrawTrait
|
||||
float deposited = Math.min((amount - maxLiquid / 1.5f) / 4f, 0.3f) * Timers.delta();
|
||||
for (GridPoint2 point : Geometry.d4) {
|
||||
Tile other = world.tile(tile.x + point.x, tile.y + point.y);
|
||||
if (other.block() == Blocks.air) {
|
||||
if (other.block() == Blocks.air && other.cliffs == 0) {
|
||||
deposit(other, tile, liquid, deposited, generation + 1);
|
||||
amount -= deposited / 4f;
|
||||
amount -= deposited / 2f; //tweak to speed up/slow down puddle propagation
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user