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"); } }
public ShieldMod(Unit u, float p, ShieldModType t) { from = u; shieldPercent = p; shieldModType = t; }