Skip to content

Commit

Permalink
some afteruploading fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nashet committed Aug 24, 2017
1 parent 007d064 commit 75816af
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 6 deletions.
Binary file modified Assets/ES-base.unity
Binary file not shown.
2 changes: 1 addition & 1 deletion Assets/code/Logic/Agent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public bool payWithoutRecord(Agent whom, Value howMuch, bool showMessageAboutNeg
bank.giveLackingMoney(this, howMuch);
bank.giveLackingMoney(this, howMuch.multiplyOutside(5));
}
whom.cash.add(howMuch);
whom.cash.add(howMuch); // rise warning if have enough money to pay (with deposits) but did't get enough from bank
this.cash.subtract(howMuch);
return true;
}
Expand Down
6 changes: 1 addition & 5 deletions Assets/code/Logic/Bank.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,7 @@ internal Value getReservs()
/// Checks reserve limits and deposits
/// </summary>
internal bool canGiveMoney(Agent agent, Value loan)
{
//if there is enough money and enough reserves
//if (cash.get() - loan.get() >= getMinimalReservs().get())
// return true;
//return false;
{
return howMuchCanGive(agent).isBiggerOrEqual(loan);
}

Expand Down
Binary file modified ProjectSettings/ProjectSettings.asset
Binary file not shown.
Binary file modified WEBGL/Build/WEBGL.asm.code.unityweb
Binary file not shown.
Binary file modified WEBGL/Build/WEBGL.asm.framework.unityweb
Binary file not shown.
Binary file modified WEBGL/Build/WEBGL.data.unityweb
Binary file not shown.

0 comments on commit 75816af

Please sign in to comment.