Permalink
Browse files

let's make the delivery guy life easier! :)

disables gas consumption and the ingredients correctness check on delivery
  • Loading branch information...
darioscarpa committed Aug 18, 2018
1 parent 902ff23 commit 6306cf74d4491fa4079d54a2da1941badacd611b
Showing with 2 additions and 2 deletions.
  1. +1 −1 TheLastSlice/Entities/Level.cs
  2. +1 −1 TheLastSlice/Entities/Player.cs
@@ -272,7 +272,7 @@ public void DeliverPizza(House house, List<Ingredient> deliveredPizza)
{
if(house != null)
{
List<Ingredient> orderedPizza = house.Pizza;
List<Ingredient> orderedPizza = deliveredPizza; // house.Pizza;
bool deliveryCompleted = true;
@@ -190,7 +190,7 @@ public override void Update(GameTime gameTime)
IsChangingMap = false;
if (!IsBox && CanMove && gameTime.TotalGameTime.TotalMilliseconds > GasTimer.TotalMilliseconds)
{
UpdateGas(-1);
UpdateGas(0); //UpdateGas(-1);
GasTimer = TimeSpan.FromMilliseconds(gameTime.TotalGameTime.TotalMilliseconds + GasTimerMS);
if(Gas < LowGasThreshold && !IsDead)

0 comments on commit 6306cf7

Please sign in to comment.