Ejemplo n.º 1
0
    /// <summary>
    /// Randomly allocates the PVC.
    /// </summary>
    public void AllocatePVC()
    {
        Sector lastPvcSector = _lastPvcSector.HasValue ? Sectors[_lastPvcSector.Value] : null;
        Sector randomSector  = Sectors.Random(s => s.AllowPVC && s != lastPvcSector);

        randomSector.Stats.ApplyEffect(new EffectImpl.PVCEffect());
        Debug.Log("Allocated PVC at " + randomSector);
    }