Exemple #1
0
    //determines kills after a successful hunt.
    int KillCount(Critter defender, float casualties)
    {
        float sneakiness = SneakScore(defender) / 100;
        float hidiness = defender.SneakScore(this) / 100;
        float speediness = ((speed - defender.speed) / 100);
        int kills = (int)((1 + (speediness + sneakiness - hidiness)) * casualties);

        return kills;
    }