public void PlayerTileCollide(Grass grass) { double value = RandomExtension.NextDouble(rnd, 0.01, 99.99); if (value <= veryCommon) { game.gameState = new EncounterGameState(game); } }
public int CalculateDamage(Monster playMon, Monster enemMon, Move move) { double dmg = (((2 * playMon.level + 10) / 250) * (playMon.currAtk / enemMon.currDef) * move.basePower + 2); double mod = stab * DetermineEffect(playMon.type, enemMon.type) * critical * RandomExtension.NextDouble(rand, 0.85, 1); dmg = dmg * mod; return((int)dmg); }