Пример #1
0
    public bool IsHaywireActive(HaywireType type)
    {
        if (haywires == null || haywires.TotalHaywires == 0)
        {
            return(false);
        }

        return(haywires.IsActive(type));
    }
Пример #2
0
    public List <string> GetActiveHaywiresText()
    {
        List <string> haywireTextList = new List <string>();

        if (activeHaywires == null || activeHaywires.TotalHaywires == 0)
        {
            haywireTextList.Add("All systems online");
            return(haywireTextList);
        }

        if (activeHaywires.IsActive(HaywireType.ShipMovementVerticalOnly))
        {
            haywireTextList.Add("Ship forward thrust offline!");
        }
        if (activeHaywires.IsActive(HaywireType.ShipSpeedDoubled))
        {
            haywireTextList.Add("Ship speed doubled!");
        }
        if (activeHaywires.IsActive(HaywireType.ShipMovementVerticalUncontrollable))
        {
            haywireTextList.Add("Ship steering uncontrollably!");
        }
        if (activeHaywires.IsActive(HaywireType.ShipCannonsBackwards))
        {
            haywireTextList.Add("Cannons firing backwards!");
        }
        if (activeHaywires.IsActive(HaywireType.ShipCannonsSpin))
        {
            haywireTextList.Add("Cannons rotating freely!");
        }
        if (activeHaywires.IsActive(HaywireType.ShipCannonsNonStop))
        {
            haywireTextList.Add("Cannons won't stop firing!");
        }
        if (activeHaywires.IsActive(HaywireType.ShipSpinUncontrollable))
        {
            haywireTextList.Add("Ship spinning uncontrollably!");
        }
        if (activeHaywires.IsActive(HaywireType.ShipArmorWeightIncreased))
        {
            haywireTextList.Add("Armor drawing increased power!");
        }
        if (activeHaywires.IsActive(HaywireType.ShipProjectilesWeighted))
        {
            haywireTextList.Add("Projectile targetting offline!");
        }

        return(haywireTextList);
    }