Implemented 'deep' unplaceable floor blocks

This commit is contained in:
Anuken
2018-04-14 21:51:46 -04:00
parent 458d4378f0
commit 97e5ac4c1e
5 changed files with 12 additions and 5 deletions

View File

@@ -236,7 +236,11 @@ public class Player extends Unit{
dashing = Inputs.keyDown("dash");
float speed = dashing ? (debug ? Player.dashSpeed * 5f : Player.dashSpeed) : Player.speed;
float speed = dashing ? (debug ? Player.dashSpeed * 5f : Player.dashSpeed) : Player.speed ;
float carrySlowdown = 0.3f;
speed *= ((1f-carrySlowdown) + (inventory.hasItem() ? (float)inventory.getItem().amount/inventory.capacity(): 1f) * carrySlowdown);
if(health < maxhealth && timer.get(timerRegen, 20))
health ++;