public GettedBlood(Buff.BuffData data) : base(data) { }
public AltarBedEP3Buff(Buff.BuffData data) : base(data) { }
public BitedByTheVampireBuff(Buff.BuffData data) : base(data) { }
public BitedAnHumanBuff(Buff.BuffData data) : base(data) { }
// Sims3.Gameplay.ActorSystems.BuffManager public static void ParseBuffData(XmlDbData data, bool bStore) { try { XmlDbTable xmlDbTable = null; data.Tables.TryGetValue("BuffList", out xmlDbTable); if (xmlDbTable == null) { xmlDbTable = data.Tables["Buffs"]; } foreach (XmlDbRow current in xmlDbTable.Rows) { bool flag = false; string text = current["BuffName"]; // if (!bStore || Localization.HasLocalizationString("Gameplay/Excel/buffs/BuffList:" + text)) { string mDescription = current["BuffDescription"]; string mHelpText = current["BuffHelpText"]; BuffNames guid = (BuffNames)BuffManager.GetGuid(current["Hex"], bStore); double mVersion = 0.0; if (guid == BuffNames.Undefined) { flag = true; } Buff buff = null; if (!flag) { BuffCategory mBuffCategory; ParserFunctions.TryParseEnum<BuffCategory>(current["Category"], out mBuffCategory, BuffCategory.None, true); CommodityKind mSolveCommodity = CommodityKind.None; ParserFunctions.TryParseEnum<CommodityKind>(current["SolveCommodity"], out mSolveCommodity, CommodityKind.None, true); string names = current["IncreasedEffectiveness"]; string names2 = current["ReducedEffectiveness"]; List<SocialManager.SocialEffectiveness> mIncreasedEffectivenessList; ParserFunctions.TryParseCommaSeparatedList<SocialManager.SocialEffectiveness>(names, out mIncreasedEffectivenessList, SocialManager.SocialEffectiveness.None); List<SocialManager.SocialEffectiveness> mReducedEffectivenessList; ParserFunctions.TryParseCommaSeparatedList<SocialManager.SocialEffectiveness>(names2, out mReducedEffectivenessList, SocialManager.SocialEffectiveness.None); string mTopic = current["Topic"]; MoodAxis mAxisEffected; if (ParserFunctions.TryParseEnum<MoodAxis>(current["AxisEffected"], out mAxisEffected, MoodAxis.None, true)) { Polarity mPolarityOverride; ParserFunctions.TryParseEnum<Polarity>(current["PolarityOverride"], out mPolarityOverride, Polarity.NoOverride, true); Buff.BuffData buffData = new Buff.BuffData(); ParserFunctions.TryParseEnum<ProductVersion>(current["SKU"], out buffData.mProductVersion, (ProductVersion)1); ResourceKey resourceKey = ResourceKey.kInvalidResourceKey; string text2 = null; if (AppDomain.CurrentDomain.GetData("UIManager") != null) { text2 = current["ThumbFilename"]; resourceKey = ResourceKey.CreatePNGKey(text2, ResourceUtils.ProductVersionToGroupId(buffData.mProductVersion)); if (!World.ResourceExists(resourceKey)) { resourceKey = ResourceKey.CreatePNGKey(text2, 0u); } } if (bStore) { mVersion = Convert.ToDouble(current["Version"]); } buffData.mBuffGuid = guid; buffData.mBuffName = text; buffData.mDescription = mDescription; buffData.mHelpText = mHelpText; buffData.mBuffCategory = mBuffCategory; buffData.mVersion = mVersion; buffData.SetFlags(Buff.BuffData.FlagField.PermaMoodlet, ParserFunctions.ParseBool(current["PermaMoodlet"])); string @string = current.GetString("PermaMoodletColor"); ParserFunctions.TryParseEnum<MoodColor>(@string, out buffData.mMoodletColor, MoodColor.Invalid); buffData.mAxisEffected = mAxisEffected; buffData.mPolarityOverride = mPolarityOverride; buffData.mEffectValue = ParserFunctions.ParseInt(current["EffectValue"], 0); buffData.mDelayTimer = (float)ParserFunctions.ParseInt(current["DelayTimer"], 0); buffData.mTimeoutSimMinutes = ParserFunctions.ParseFloat(current["TimeoutLength"], -1f); buffData.mSolveCommodity = mSolveCommodity; buffData.mSolveTime = ParserFunctions.ParseFloat(current["SolveTime"], -3.40282347E+38f); buffData.SetFlags(Buff.BuffData.FlagField.AttemptAutoSolve, ParserFunctions.ParseBool(current["AttemptAutoSolve"])); ParserFunctions.ParseCommaSeparatedString(current["FacialIdle"], out buffData.mFacialIdles); buffData.SetFlags(Buff.BuffData.FlagField.IsExtreme, ParserFunctions.ParseBool(current["IsExtreme"])); buffData.mIncreasedEffectivenessList = mIncreasedEffectivenessList; buffData.mReducedEffectivenessList = mReducedEffectivenessList; buffData.mThumbKey = resourceKey; buffData.mThumbString = text2; buffData.mTopic = mTopic; buffData.SetFlags(Buff.BuffData.FlagField.ShowBalloon, current.GetBool("ShowBallon")); buffData.SetFlags(Buff.BuffData.FlagField.Travel, current.GetBool("Travel")); ParserFunctions.TryParseCommaSeparatedList<OccultTypes>(current["DisallowedOccults"], out buffData.mDisallowedOccults, OccultTypes.None); if (buffData.mDisallowedOccults.Count == 0) { buffData.mDisallowedOccults = null; } string text3 = current.GetString("JazzStateSuffix"); if (string.IsNullOrEmpty(text3)) { text3 = text; } buffData.mJazzStateSuffix = text3; string string2 = current.GetString("SpeciesAvailability"); if (string.IsNullOrEmpty(string2)) { buffData.mAvailabilityFlags = (CASAGSAvailabilityFlags)127L; } else { buffData.mAvailabilityFlags = ParserFunctions.ParseAllowableAgeSpecies(string2); } string text4 = current["CustomClassName"]; if (text4.Length > 0) { text4 = text4.Replace(" ", ""); int num = text4.IndexOf(','); if (num < 0) { flag = true; } else { string str = text4.Substring(0, num); text4.Substring(num + 1); Type type = null; if (bStore) { type = Type.GetType(str + ",Sims3StoreObjects"); } if (type == null) { type = Type.GetType(text4); } if (type == null) { flag = true; } else { Type[] types = new Type[] { typeof(Buff.BuffData) }; ConstructorInfo constructor = type.GetConstructor(types); object obj = constructor.Invoke(new object[] { buffData }); buff = (Buff)obj; } } } else { buff = new Buff(buffData); } } if (!flag && buff != null) { BuffInstance value = buff.CreateBuffInstance(); if (GenericManager<BuffNames, BuffInstance, BuffInstance>.sDictionary.ContainsKey((ulong)guid)) { if (GenericManager<BuffNames, BuffInstance, BuffInstance>.sDictionary[(ulong)guid].mBuff.BuffVersion < buff.BuffVersion) { GenericManager<BuffNames, BuffInstance, BuffInstance>.sDictionary[(ulong)guid] = value; } } else { GenericManager<BuffNames, BuffInstance, BuffInstance>.sDictionary.Add((ulong)guid, value); BuffManager.sBuffEnumValues.AddNewEnumValue(text, guid); } } } } } } catch (Exception ex) { StyledNotification.Show(new StyledNotification.Format(ex.ToString(), StyledNotification.NotificationStyle.kGameMessageNegative)); } }
public BuffEWAllergies(Buff.BuffData info) : base(info) { }
public ResurrectedBuff(Buff.BuffData data) : base(data) { }
public BuffTest(Buff.BuffData data) : base(data) { }
public static void ParseDiseaseData(XmlDbData data) { XmlDbTable value = null; data.Tables.TryGetValue("DiseaseList", out value); if (value == null) { value = data.Tables["Disease"]; } foreach (XmlDbRow row in value.Rows) { bool flag = false; string text = row["DiseaseName"]; string mDescription = row["DiseaseDescription"]; BuffNames guid = (BuffNames)BuffManager.GetGuid(row["Hex"], false); //double mVersion = 0.0; if (guid == BuffNames.Undefined) { flag = true; } Buff buff = null; if (flag) { continue; } string immuneTraits = row["ImmuneTraits"]; string vulnerableTraits = row["VulnerableTraits"]; string resitantTraits = row["ResistantTraits"]; string text2 = row["NeededTraitForRobot"]; ParserFunctions.TryParseCommaSeparatedList(immuneTraits, out List <TraitNames> list, TraitNames.Unknown); ParserFunctions.TryParseCommaSeparatedList(vulnerableTraits, out List <TraitNames> vulnerableList, TraitNames.Unknown); ParserFunctions.TryParseCommaSeparatedList(resitantTraits, out List <TraitNames> resistantList, TraitNames.Unknown); string mTopic = row["Topic"]; if (ParserFunctions.TryParseEnum(row["AxisEffected"], out MoodAxis value4, MoodAxis.None, ignoreCase: true)) { ParserFunctions.TryParseEnum(row["PolarityOverride"], out Polarity value5, Polarity.NoOverride, ignoreCase: true); Buff.BuffData buffData = new Buff.BuffData(); ParserFunctions.TryParseEnum <ProductVersion>(row["SKU"], out buffData.mProductVersion, (ProductVersion)1); ResourceKey val = ResourceKey.kInvalidResourceKey; string text3 = null; if (AppDomain.CurrentDomain.GetData("UIManager") != null) { text3 = row["ThumbFilename"]; val = ResourceKey.CreatePNGKey(text3, ResourceUtils.ProductVersionToGroupId(buffData.mProductVersion)); if (!World.ResourceExists(val)) { val = ResourceKey.CreatePNGKey(text3, 0u); } } //buffData.mBuffGuid = guid; //buffData.mBuffName = text; //buffData.mDescription = mDescription; //buffData.mHelpText = mHelpText; //buffData.mBuffCategory = value2; //buffData.mVersion = mVersion; //buffData.SetFlags(Buff.BuffData.FlagField.PermaMoodlet, ParserFunctions.ParseBool(row["PermaMoodlet"])); //string @string = row.GetString("PermaMoodletColor"); //ParserFunctions.TryParseEnum<MoodColor>(@string, out buffData.mMoodletColor, (MoodColor)(-1)); //buffData.mAxisEffected = value4; //buffData.mPolarityOverride = value5; //buffData.mEffectValue = ParserFunctions.ParseInt(row["EffectValue"], 0); //buffData.mDelayTimer = ParserFunctions.ParseInt(row["DelayTimer"], 0); //buffData.mTimeoutSimMinutes = ParserFunctions.ParseFloat(row["TimeoutLength"], -1f); //buffData.mSolveCommodity = value3; //buffData.mSolveTime = ParserFunctions.ParseFloat(row["SolveTime"], float.MinValue); //buffData.SetFlags(Buff.BuffData.FlagField.AttemptAutoSolve, ParserFunctions.ParseBool(row["AttemptAutoSolve"])); //ParserFunctions.ParseCommaSeparatedString(row["FacialIdle"], out buffData.mFacialIdles); //buffData.SetFlags(Buff.BuffData.FlagField.IsExtreme, ParserFunctions.ParseBool(row["IsExtreme"])); //buffData.mNeededTraitList = list; //buffData.mIncreasedEffectivenessList = vulnerableList; //buffData.mReducedEffectivenessList = resistantList; //buffData.mThumbKey = val; //buffData.mThumbString = text3; //buffData.mTopic = mTopic; buffData.SetFlags(Buff.BuffData.FlagField.ShowBalloon, row.GetBool("ShowBallon")); buffData.SetFlags(Buff.BuffData.FlagField.Travel, row.GetBool("Travel")); ParserFunctions.TryParseCommaSeparatedList <OccultTypes>(row["DisallowedOccults"], out buffData.mDisallowedOccults, (OccultTypes)0); if (buffData.mDisallowedOccults.Count == 0) { buffData.mDisallowedOccults = null; } string text4 = row.GetString("JazzStateSuffix"); if (string.IsNullOrEmpty(text4)) { text4 = text; } buffData.mJazzStateSuffix = text4; string string2 = row.GetString("SpeciesAvailability"); if (string.IsNullOrEmpty(string2)) { buffData.mAvailabilityFlags = (CASAGSAvailabilityFlags)127; } else { buffData.mAvailabilityFlags = ParserFunctions.ParseAllowableAgeSpecies(string2); } string text5 = row["CustomClassName"]; if (text5.Length > 0) { text5 = text5.Replace(" ", ""); int num = text5.IndexOf(','); if (num < 0) { flag = true; } else { string str = text5.Substring(0, num); text5.Substring(num + 1); Type type = null; //if (bStore) //{ // type = Type.GetType(str + ",Sims3StoreObjects"); //} if ((object)type == null) { type = Type.GetType(text5); } if ((object)type == null) { flag = true; } else { Type[] types = new Type[1] { typeof(Buff.BuffData) }; //ConstructorInfo constructor = type.GetConstructor(types); // object obj; // = constructor.Invoke(new object[1] { // buffData //}); //buff = (Buff)obj; } } } else { buff = new Buff(buffData); } } if (flag || buff == null) { continue; } BuffInstance value6 = buff.CreateBuffInstance(); if (GenericManager <BuffNames, BuffInstance, BuffInstance> .sDictionary.ContainsKey((ulong)guid)) { if (GenericManager <BuffNames, BuffInstance, BuffInstance> .sDictionary[(ulong)guid].mBuff.BuffVersion < buff.BuffVersion) { GenericManager <BuffNames, BuffInstance, BuffInstance> .sDictionary[(ulong)guid] = value6; } } else { GenericManager <BuffNames, BuffInstance, BuffInstance> .sDictionary.Add((ulong)guid, value6); //sBuffEnumValues.AddNewEnumValue(text, guid); } } }
public DrunkBuff(Buff.BuffData info) : base(info) { }
// Sims3.Gameplay.ActorSystems.BuffManager public static void ParseBuffData(XmlDbData data, bool bStore) { try { XmlDbTable xmlDbTable = null; data.Tables.TryGetValue("BuffList", out xmlDbTable); if (xmlDbTable == null) { xmlDbTable = data.Tables["Buffs"]; } foreach (XmlDbRow current in xmlDbTable.Rows) { bool flag = false; string text = current["BuffName"]; // if (!bStore || Localization.HasLocalizationString("Gameplay/Excel/buffs/BuffList:" + text)) { string mDescription = current["BuffDescription"]; string mHelpText = current["BuffHelpText"]; BuffNames guid = (BuffNames)BuffManager.GetGuid(current["Hex"], bStore); double mVersion = 0.0; if (guid == BuffNames.Undefined) { flag = true; } Buff buff = null; if (!flag) { BuffCategory mBuffCategory; ParserFunctions.TryParseEnum <BuffCategory>(current["Category"], out mBuffCategory, BuffCategory.None, true); CommodityKind mSolveCommodity = CommodityKind.None; ParserFunctions.TryParseEnum <CommodityKind>(current["SolveCommodity"], out mSolveCommodity, CommodityKind.None, true); string names = current["IncreasedEffectiveness"]; string names2 = current["ReducedEffectiveness"]; List <SocialManager.SocialEffectiveness> mIncreasedEffectivenessList; ParserFunctions.TryParseCommaSeparatedList <SocialManager.SocialEffectiveness>(names, out mIncreasedEffectivenessList, SocialManager.SocialEffectiveness.None); List <SocialManager.SocialEffectiveness> mReducedEffectivenessList; ParserFunctions.TryParseCommaSeparatedList <SocialManager.SocialEffectiveness>(names2, out mReducedEffectivenessList, SocialManager.SocialEffectiveness.None); string mTopic = current["Topic"]; MoodAxis mAxisEffected; if (ParserFunctions.TryParseEnum <MoodAxis>(current["AxisEffected"], out mAxisEffected, MoodAxis.None, true)) { Polarity mPolarityOverride; ParserFunctions.TryParseEnum <Polarity>(current["PolarityOverride"], out mPolarityOverride, Polarity.NoOverride, true); Buff.BuffData buffData = new Buff.BuffData(); ParserFunctions.TryParseEnum <ProductVersion>(current["SKU"], out buffData.mProductVersion, (ProductVersion)1); ResourceKey resourceKey = ResourceKey.kInvalidResourceKey; string text2 = null; if (AppDomain.CurrentDomain.GetData("UIManager") != null) { text2 = current["ThumbFilename"]; resourceKey = ResourceKey.CreatePNGKey(text2, ResourceUtils.ProductVersionToGroupId(buffData.mProductVersion)); if (!World.ResourceExists(resourceKey)) { resourceKey = ResourceKey.CreatePNGKey(text2, 0u); } } if (bStore) { mVersion = Convert.ToDouble(current["Version"]); } buffData.mBuffGuid = guid; buffData.mBuffName = text; buffData.mDescription = mDescription; buffData.mHelpText = mHelpText; buffData.mBuffCategory = mBuffCategory; buffData.mVersion = mVersion; buffData.SetFlags(Buff.BuffData.FlagField.PermaMoodlet, ParserFunctions.ParseBool(current["PermaMoodlet"])); string @string = current.GetString("PermaMoodletColor"); ParserFunctions.TryParseEnum <MoodColor>(@string, out buffData.mMoodletColor, MoodColor.Invalid); buffData.mAxisEffected = mAxisEffected; buffData.mPolarityOverride = mPolarityOverride; buffData.mEffectValue = ParserFunctions.ParseInt(current["EffectValue"], 0); buffData.mDelayTimer = (float)ParserFunctions.ParseInt(current["DelayTimer"], 0); buffData.mTimeoutSimMinutes = ParserFunctions.ParseFloat(current["TimeoutLength"], -1f); buffData.mSolveCommodity = mSolveCommodity; buffData.mSolveTime = ParserFunctions.ParseFloat(current["SolveTime"], -3.40282347E+38f); buffData.SetFlags(Buff.BuffData.FlagField.AttemptAutoSolve, ParserFunctions.ParseBool(current["AttemptAutoSolve"])); ParserFunctions.ParseCommaSeparatedString(current["FacialIdle"], out buffData.mFacialIdles); buffData.SetFlags(Buff.BuffData.FlagField.IsExtreme, ParserFunctions.ParseBool(current["IsExtreme"])); buffData.mIncreasedEffectivenessList = mIncreasedEffectivenessList; buffData.mReducedEffectivenessList = mReducedEffectivenessList; buffData.mThumbKey = resourceKey; buffData.mThumbString = text2; buffData.mTopic = mTopic; buffData.SetFlags(Buff.BuffData.FlagField.ShowBalloon, current.GetBool("ShowBallon")); buffData.SetFlags(Buff.BuffData.FlagField.Travel, current.GetBool("Travel")); ParserFunctions.TryParseCommaSeparatedList <OccultTypes>(current["DisallowedOccults"], out buffData.mDisallowedOccults, OccultTypes.None); if (buffData.mDisallowedOccults.Count == 0) { buffData.mDisallowedOccults = null; } string text3 = current.GetString("JazzStateSuffix"); if (string.IsNullOrEmpty(text3)) { text3 = text; } buffData.mJazzStateSuffix = text3; string string2 = current.GetString("SpeciesAvailability"); if (string.IsNullOrEmpty(string2)) { buffData.mAvailabilityFlags = (CASAGSAvailabilityFlags)127L; } else { buffData.mAvailabilityFlags = ParserFunctions.ParseAllowableAgeSpecies(string2); } string text4 = current["CustomClassName"]; if (text4.Length > 0) { text4 = text4.Replace(" ", ""); int num = text4.IndexOf(','); if (num < 0) { flag = true; } else { string str = text4.Substring(0, num); text4.Substring(num + 1); Type type = null; if (bStore) { type = Type.GetType(str + ",Sims3StoreObjects"); } if (type == null) { type = Type.GetType(text4); } if (type == null) { flag = true; } else { Type[] types = new Type[] { typeof(Buff.BuffData) }; ConstructorInfo constructor = type.GetConstructor(types); object obj = constructor.Invoke(new object[] { buffData }); buff = (Buff)obj; } } } else { buff = new Buff(buffData); } } if (!flag && buff != null) { BuffInstance value = buff.CreateBuffInstance(); if (GenericManager <BuffNames, BuffInstance, BuffInstance> .sDictionary.ContainsKey((ulong)guid)) { if (GenericManager <BuffNames, BuffInstance, BuffInstance> .sDictionary[(ulong)guid].mBuff.BuffVersion < buff.BuffVersion) { GenericManager <BuffNames, BuffInstance, BuffInstance> .sDictionary[(ulong)guid] = value; } } else { GenericManager <BuffNames, BuffInstance, BuffInstance> .sDictionary.Add((ulong)guid, value); BuffManager.sBuffEnumValues.AddNewEnumValue(text, guid); } } } } } } catch (Exception ex) { StyledNotification.Show(new StyledNotification.Format(ex.ToString(), StyledNotification.NotificationStyle.kGameMessageNegative)); } }
public DrunkCounter(Buff.BuffData info) : base(info) { }
public BuffEWSeriousWound(Buff.BuffData data) : base(data) { }
public BloodyFaceBuff(Buff.BuffData data) : base(data) { }
public HangoverBuff(Buff.BuffData info) : base(info) { }
public KilledBuff(Buff.BuffData data) : base(data) { }
public ForcedConversionBuff(Buff.BuffData data) : base(data) { }
public ConvertedByTheVampireBuff(Buff.BuffData data) : base(data) { }
public RedEyesBuff(Buff.BuffData data) : base(data) { }
public ReadedAMindBuff(Buff.BuffData data) : base(data) { }