void SetVariantProperties(MobileAffinity affinity, int variantIndex) { string name = TextManager.Instance.GetText("ClassicEffects", subGroupTextKeys[variantIndex]); VariantProperties vp = new VariantProperties(); vp.effectProperties = properties; vp.effectProperties.Key = string.Format("ElementalResistance-{0}", name); vp.effectProperties.ClassicKey = MakeClassicKey(33, (byte)variantIndex); vp.effectProperties.SubGroupName = name; vp.effectProperties.SpellMakerDescription = DaggerfallUnity.Instance.TextProvider.GetRSCTokens(1527 + variantIndex); vp.effectProperties.SpellBookDescription = DaggerfallUnity.Instance.TextProvider.GetRSCTokens(1227 + variantIndex); vp.targetAffinity = affinity; if (affinity == MobileAffinity.Animal) { properties.ChanceCosts = MakeEffectCosts(60, 100, 160); } else if (affinity == MobileAffinity.Daedra) { properties.ChanceCosts = MakeEffectCosts(60, 120, 36); } else if (affinity == MobileAffinity.Human || affinity == MobileAffinity.Undead) { properties.ChanceCosts = MakeEffectCosts(80, 140, 60); } variantProperties[variantIndex] = vp; }
void SetVariantProperties(DFCareer.EnemyGroups targetGroup, int variantIndex) { string name = TextManager.Instance.GetText("ClassicEffects", subGroupTextKeys[variantIndex]); VariantProperties vp = new VariantProperties(); vp.effectProperties = properties; vp.effectProperties.Key = string.Format("Pacify-{0}", name); vp.effectProperties.ClassicKey = MakeClassicKey(33, (byte)variantIndex); vp.effectProperties.SubGroupName = name; vp.effectProperties.SpellMakerDescription = DaggerfallUnity.Instance.TextProvider.GetRSCTokens(1585 + variantIndex); vp.effectProperties.SpellBookDescription = DaggerfallUnity.Instance.TextProvider.GetRSCTokens(1285 + variantIndex); vp.targetGroup = targetGroup; if (targetGroup == DFCareer.EnemyGroups.Animals) { vp.effectProperties.ChanceCosts = MakeEffectCosts(60, 100, 160); } else if (targetGroup == DFCareer.EnemyGroups.Daedra) { vp.effectProperties.ChanceCosts = MakeEffectCosts(60, 120, 36); } else if (targetGroup == DFCareer.EnemyGroups.Humanoid || targetGroup == DFCareer.EnemyGroups.Undead) { vp.effectProperties.ChanceCosts = MakeEffectCosts(80, 140, 60); } variantProperties[variantIndex] = vp; }
void SetVariantProperties(VariantTypes variant) { int variantIndex = (int)variant; VariantProperties vp = new VariantProperties(); vp.effectColor = effectColors[variantIndex]; vp.effectProperties = properties; vp.effectProperties.Key = string.Format("{0}-{1}", effectKey, subGroupKeys[variantIndex]); variantProperties[variantIndex] = vp; }
void SetVariantProperties(Poisons poisonType) { int variant = (int)poisonType - startValue; VariantProperties vp = new VariantProperties(); vp.effectProperties = properties; vp.effectProperties.Key = GetClassicPoisonEffectKey(poisonType); vp.effectProperties.ShowSpellIcon = false; vp.poisonType = poisonType; variantProperties[variant] = vp; }
void SetVariantProperties(DFCareer.Elements element) { int variantIndex = (int)element; VariantProperties vp = new VariantProperties(); vp.effectProperties = properties; vp.effectProperties.Key = string.Format("ElementalResistance-{0}", subGroupTextKeys[variantIndex]); vp.effectProperties.ClassicKey = MakeClassicKey(8, (byte)variantIndex); vp.elementResisted = element; variantProperties[variantIndex] = vp; }
void SetVariantProperties(DFCareer.Elements element) { int variantIndex = (int)element; string name = TextManager.Instance.GetText("ClassicEffects", subGroupTextKeys[variantIndex]); VariantProperties vp = new VariantProperties(); vp.effectProperties = properties; vp.effectProperties.Key = string.Format("ElementalResistance-{0}", name); vp.effectProperties.ClassicKey = MakeClassicKey(8, (byte)variantIndex); vp.effectProperties.SubGroupName = name; vp.effectProperties.SpellMakerDescription = DaggerfallUnity.Instance.TextProvider.GetRSCTokens(1527 + variantIndex); vp.effectProperties.SpellBookDescription = DaggerfallUnity.Instance.TextProvider.GetRSCTokens(1227 + variantIndex); vp.elementResisted = element; variantProperties[variantIndex] = vp; }
public VariantProperties[] ToVariant(string productinteropid = null) { var variant = new VariantProperties[1]; variant[0] = new VariantProperties() { InteropID = InteropID, VariantID = ID, ProductInteropID = productinteropid ?? ProductInteropID, NewInteropID = NewInteropID ?? InteropID, Description = Description, Image = Image == null ? null : Image.ToFile(), Active = Active }; return(variant); }
void SetVariantProperties(DFCareer.EnemyGroups targetGroup, int variantIndex) { VariantProperties vp = new VariantProperties(); vp.effectProperties = properties; vp.effectProperties.Key = string.Format("Pacify-{0}", subGroupTextKeys[variantIndex]); vp.effectProperties.ClassicKey = MakeClassicKey(33, (byte)variantIndex); vp.targetGroup = targetGroup; if (targetGroup == DFCareer.EnemyGroups.Animals) { vp.effectProperties.ChanceCosts = MakeEffectCosts(60, 100, 160); } else if (targetGroup == DFCareer.EnemyGroups.Daedra) { vp.effectProperties.ChanceCosts = MakeEffectCosts(60, 120, 36); } else if (targetGroup == DFCareer.EnemyGroups.Humanoid || targetGroup == DFCareer.EnemyGroups.Undead) { vp.effectProperties.ChanceCosts = MakeEffectCosts(80, 140, 60); } variantProperties[variantIndex] = vp; }
public VariantOverride(String name, String value, VariantProperties properties) { this.Name = name; this.value = value; this.properties = properties; }
public VariantOverride(VariantProperties properties) { this.properties = properties; }