예제 #1
0
    public static string GetDisplayDesc(ShieldModType shieldModType)
    {
        switch (shieldModType)
        {
        case ShieldModType.ShieldProject:
            return("Shield is projected onto this unit by another allied unit");

        case ShieldModType.Flagship:
            return("Shield is generated by this flagship's defensive systems");

        default:
            return("default");
        }
    }
예제 #2
0
 public ShieldMod(Unit u, float p, ShieldModType t)
 {
     from          = u;
     shieldPercent = p;
     shieldModType = t;
 }