Exemplo n.º 1
0
    public void RunSector(ISpaceShip spaceship, int tick)
    {
        var app = (int)CalcModDMG(spaceship.ModHP[tick] + spaceship.GetPeopleBonus());

        spaceship.HP += app;

        spaceship.Temp += CalcModTEMP(spaceship.ModTEMP[tick]);

        spaceship.Fuel += CalcModFUEL(spaceship.ModFUEL[tick]);

        spaceship.Fuel--;

        MissionLog.Instance.AddLog("Bad Alien: Hp" + spaceship.HP + " - Temp" + spaceship.Temp + " - Fuel " + spaceship.Fuel);


        /*if ( app < 0 )
         * {
         *  MissionLog.Instance.AddLog("An unidentified hostile starship fire at us!! "+ app+ "damage dealt the ship");
         * }
         * else
         * {
         *  MissionLog.Instance.AddLog("We had a figth with an enemy alien, but we are safe!!");
         * }*/
    }