function givePotion() {
    // Works exactly like didEvade. There's a 10% chance to get a potion.
    var diceRoll = Math.random();
    var chanceForNothing = .9;
    if (diceRoll > chanceForNothing) {
      return 1;
    }
    else {
      return 0;
    }
  }
// After winning a fight, you get the chance to win potions; this returns how many
After winning a fight, you get the chance to win potions; this returns how many
After winning a fight you get the chance to win potions ; this returns how many
function givePotion() {
    var diceRoll = Math.random();
    var chanceForNothing = .9;
    if (diceRoll > chanceForNothing) {
      return 1;
    }
    else {
      return 0;
    }
  }
function givePotion ( ) { var diceRoll = Math . random ( ) ; var chanceForNothing = .9 ; if ( diceRoll > chanceForNothing ) { return 1 ; } else { return 0 ; } }
After winning a fight, you get the chance to win potions; this returns how many
After winning a fight you get the chance to win potions ; this returns how many
// Works exactly like didEvade. There's a 10% chance to get a potion.