Exemplo n.º 1
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mBail = new IntegerOption.OptionValue(-1);
            if (row.Exists("Bail"))
            {
                if (!mBail.Parse(row, "Bail", Manager, this, ref error))
                {
                    return(false);
                }
            }

            mChance = new IntegerOption.OptionValue();
            if (!mChance.Parse(row, "Chance", Manager, this, ref error))
            {
                return(false);
            }

            mSuccess = new WeightScenarioHelper(Origin.FromBurglar);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return(false);
            }

            return(base.Parse(row, ref error));
        }
Exemplo n.º 2
0
 protected RentScenario(RentScenario scenario)
     : base(scenario)
 {
     mName          = scenario.mName;
     mMinimumWealth = scenario.mMinimumWealth;
     mSuccess       = scenario.mSuccess;
 }
Exemplo n.º 3
0
 protected RentScenario(RentScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimumWealth = scenario.mMinimumWealth;
     mSuccess = scenario.mSuccess;
 }
Exemplo n.º 4
0
 protected HoosegowScenario(HoosegowScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mChance = scenario.mChance;
     mBail = scenario.mBail;
     mSuccess = scenario.mSuccess;
 }
Exemplo n.º 5
0
 protected InvestScenario(InvestScenario scenario)
     : base(scenario)
 {
     mName          = scenario.mName;
     mMinimumWealth = scenario.mMinimumWealth;
     mAllowMultiple = scenario.mAllowMultiple;
     mSuccess       = scenario.mSuccess;
 }
Exemplo n.º 6
0
 protected HoosegowScenario(HoosegowScenario scenario)
     : base(scenario)
 {
     mName    = scenario.mName;
     mChance  = scenario.mChance;
     mBail    = scenario.mBail;
     mSuccess = scenario.mSuccess;
 }
Exemplo n.º 7
0
 protected InvestScenario(InvestScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimumWealth = scenario.mMinimumWealth;
     mAllowMultiple = scenario.mAllowMultiple;
     mSuccess = scenario.mSuccess;
 }
Exemplo n.º 8
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            if (!row.Exists("AllowGoToJail"))
            {
                error = "AllowGoToJail missing";
                return(false);
            }

            mAllowGoToJail = row.GetBool("AllowGoToJail");

            mBail = new IntegerOption.OptionValue(-1);
            if (row.Exists("Bail"))
            {
                if (!mBail.Parse(row, "Bail", Manager, this, ref error))
                {
                    return(false);
                }
            }

            mInvestigate = new InvestigationHelper();
            if (!mInvestigate.Parse(row, Manager, this, ref error))
            {
                return(false);
            }

            mMinimum = new IntegerOption.OptionValue();
            if (!mMinimum.Parse(row, "Minimum", Manager, this, ref error))
            {
                return(false);
            }

            mMaximum = new IntegerOption.OptionValue();
            if (!mMaximum.Parse(row, "Maximum", Manager, this, ref error))
            {
                return(false);
            }

            mKeepObject = row.GetBool("KeepObject");

            mSneakinessScoring = row.GetString("SneakinessScoring");

            mSuccess = new WeightScenarioHelper(Origin.FromBurglar);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return(false);
            }

            mFailure = new WeightScenarioHelper(Origin.FromBurglar);
            if (!mFailure.Parse(row, Manager, this, "Failure", ref error))
            {
                return(false);
            }

            return(base.Parse(row, ref error));
        }
Exemplo n.º 9
0
 protected RefundScenario(RefundScenario scenario)
     : base(scenario)
 {
     mName          = scenario.mName;
     mMinimum       = scenario.mMinimum;
     mMaximum       = scenario.mMaximum;
     mAlterKey      = scenario.mAlterKey;
     mAccountingKey = scenario.mAccountingKey;
     mSuccess       = scenario.mSuccess;
 }
Exemplo n.º 10
0
 protected FineScenario(FineScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mAccountingKey = scenario.mAccountingKey;
     mSuccess = scenario.mSuccess;
     mAllowDebt = scenario.mAllowDebt;
 }
Exemplo n.º 11
0
 protected FineScenario(FineScenario scenario)
     : base(scenario)
 {
     mName          = scenario.mName;
     mMinimum       = scenario.mMinimum;
     mMaximum       = scenario.mMaximum;
     mAccountingKey = scenario.mAccountingKey;
     mSuccess       = scenario.mSuccess;
     mAllowDebt     = scenario.mAllowDebt;
 }
Exemplo n.º 12
0
 protected RefundScenario(RefundScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mAlterKey = scenario.mAlterKey;
     mAccountingKey = scenario.mAccountingKey;
     mSuccess = scenario.mSuccess;
 }
Exemplo n.º 13
0
 protected GiveCashScenario(GiveCashScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mAcceptanceScoring = scenario.mAcceptanceScoring;
     mAccountingKey = scenario.mAccountingKey;
     //mFail = scenario.mFail;
 }
Exemplo n.º 14
0
 protected TorchScenario(TorchScenario scenario)
     : base(scenario)
 {
     mName              = scenario.mName;
     mAllowInjury       = scenario.mAllowInjury;
     mSuccess           = scenario.mSuccess;
     mFailure           = scenario.mFailure;
     mSneakinessScoring = scenario.mSneakinessScoring;
     mAllowGoToJail     = scenario.mAllowGoToJail;
     mBail              = scenario.mBail;
     mInvestigate       = scenario.mInvestigate;
 }
Exemplo n.º 15
0
 protected TorchScenario(TorchScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mAllowInjury = scenario.mAllowInjury;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mSneakinessScoring = scenario.mSneakinessScoring;
     mAllowGoToJail = scenario.mAllowGoToJail;
     mBail = scenario.mBail;
     mInvestigate = scenario.mInvestigate;
 }
Exemplo n.º 16
0
 protected TakeCashScenario(TakeCashScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mAllowDebt = scenario.mAllowDebt;
     mAccountingKey = scenario.mAccountingKey;
     mFight = scenario.mFight;
     mFail = scenario.mFail;
     mInvestigate = scenario.mInvestigate;
 }
Exemplo n.º 17
0
 protected StealScenario(StealScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mKeepObject = scenario.mKeepObject;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mSneakinessScoring = scenario.mSneakinessScoring;
     mAllowGoToJail = scenario.mAllowGoToJail;
 }
Exemplo n.º 18
0
 protected StealScenario(StealScenario scenario)
     : base(scenario)
 {
     mName              = scenario.mName;
     mMinimum           = scenario.mMinimum;
     mMaximum           = scenario.mMaximum;
     mKeepObject        = scenario.mKeepObject;
     mSuccess           = scenario.mSuccess;
     mFailure           = scenario.mFailure;
     mSneakinessScoring = scenario.mSneakinessScoring;
     mAllowGoToJail     = scenario.mAllowGoToJail;
 }
Exemplo n.º 19
0
 protected TakeCashScenario(TakeCashScenario scenario)
     : base(scenario)
 {
     mName          = scenario.mName;
     mMinimum       = scenario.mMinimum;
     mMaximum       = scenario.mMaximum;
     mAllowDebt     = scenario.mAllowDebt;
     mAccountingKey = scenario.mAccountingKey;
     mFight         = scenario.mFight;
     mFail          = scenario.mFail;
     mInvestigate   = scenario.mInvestigate;
 }
Exemplo n.º 20
0
 protected GiveCashScenario(GiveCashScenario scenario)
     : base(scenario)
 {
     mName              = scenario.mName;
     mMinimum           = scenario.mMinimum;
     mMaximum           = scenario.mMaximum;
     mSuccess           = scenario.mSuccess;
     mFailure           = scenario.mFailure;
     mAcceptanceScoring = scenario.mAcceptanceScoring;
     mAccountingKey     = scenario.mAccountingKey;
     //mFail = scenario.mFail;
 }
Exemplo n.º 21
0
 protected CanoodleScenario(CanoodleScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     //mFail = scenario.mFail;
     mAllowPartner = scenario.mAllowPartner;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mAcceptanceScoring = scenario.mAcceptanceScoring;
     mTypeOfStory = scenario.mTypeOfStory;
     mAffairStory = scenario.mAffairStory;
     mChanceOfPregnancy = scenario.mChanceOfPregnancy;
 }
Exemplo n.º 22
0
 protected CanoodleScenario(CanoodleScenario scenario)
     : base(scenario)
 {
     mName = scenario.mName;
     //mFail = scenario.mFail;
     mAllowPartner      = scenario.mAllowPartner;
     mSuccess           = scenario.mSuccess;
     mFailure           = scenario.mFailure;
     mAcceptanceScoring = scenario.mAcceptanceScoring;
     mTypeOfStory       = scenario.mTypeOfStory;
     mAffairStory       = scenario.mAffairStory;
     mChanceOfPregnancy = scenario.mChanceOfPregnancy;
 }
Exemplo n.º 23
0
 protected BurgleScenario(BurgleScenario scenario)
     : base (scenario)
 {
     mName = scenario.mName;
     mMinimum = scenario.mMinimum;
     mMaximum = scenario.mMaximum;
     mKeepObject = scenario.mKeepObject;
     mSuccess = scenario.mSuccess;
     mFailure = scenario.mFailure;
     mSneakinessScoring = scenario.mSneakinessScoring;
     mAllowGoToJail = scenario.mAllowGoToJail;
     mBail = scenario.mBail;
     mInvestigate = scenario.mInvestigate;
 }
Exemplo n.º 24
0
 protected BurgleScenario(BurgleScenario scenario)
     : base(scenario)
 {
     mName              = scenario.mName;
     mMinimum           = scenario.mMinimum;
     mMaximum           = scenario.mMaximum;
     mKeepObject        = scenario.mKeepObject;
     mSuccess           = scenario.mSuccess;
     mFailure           = scenario.mFailure;
     mSneakinessScoring = scenario.mSneakinessScoring;
     mAllowGoToJail     = scenario.mAllowGoToJail;
     mBail              = scenario.mBail;
     mInvestigate       = scenario.mInvestigate;
 }
Exemplo n.º 25
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mMinimumWealth = new IntegerOption.OptionValue();
            if (!mMinimumWealth.Parse(row, "MinimumWealth", Manager, this, ref error))
            {
                return(false);
            }

            mSuccess = new WeightScenarioHelper(Origin.FromStore);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return(false);
            }

            return(base.Parse(row, ref error));
        }
Exemplo n.º 26
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mMaximum = new IntegerOption.OptionValue();

            if (row.Exists("AlterKey"))
            {
                mAlterKey = row.GetString("AlterKey");
            }
            else
            {
                if (row.Exists("AccountingKey"))
                {
                    mAccountingKey = row.GetString("AccountingKey");
                }
                else
                {
                    error = "AccountingKey missing";
                    return(false);
                }

                if (!mMaximum.Parse(row, "Maximum", Manager, this, ref error))
                {
                    return(false);
                }
            }

            mMinimum = new IntegerOption.OptionValue();
            if (!mMinimum.Parse(row, "Minimum", Manager, this, ref error))
            {
                return(false);
            }

            mSuccess = new WeightScenarioHelper(Origin.FromGettingGifts);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return(false);
            }

            return(base.Parse(row, ref error));
        }
Exemplo n.º 27
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mAllowDebt = row.GetBool("AllowDebt");

            if (row.Exists("AccountingKey"))
            {
                mAccountingKey = row.GetString("AccountingKey");
            }
            else
            {
                error = "AccountingKey missing";
                return(false);
            }

            mFight = new FightScenarioHelper(Origin.FromTheft, SimDescription.DeathType.OldAge);
            if (!mFight.Parse(row, Manager, this, ref error))
            {
                return(false);
            }

            mInvestigate = new InvestigationHelper();
            if (!mInvestigate.Parse(row, Manager, this, ref error))
            {
                return(false);
            }

            mMinimum = new IntegerOption.OptionValue();
            if (!mMinimum.Parse(row, "Minimum", Manager, this, ref error))
            {
                return(false);
            }

            mMaximum = new IntegerOption.OptionValue();
            if (!mMaximum.Parse(row, "Maximum", Manager, this, ref error))
            {
                return(false);
            }

            return(base.Parse(row, ref error));
        }
Exemplo n.º 28
0
        public bool Parse(XmlDbRow row, StoryProgressionObject manager, IUpdateManager updater, ref string error)
        {
            mStoryName = row.GetString("InvestigateStoryName");

            mMinimum = new IntegerOption.OptionValue();
            if (!mMinimum.Parse(row, "InvestigateMinimum", manager, updater, ref error))
            {
                mMinimum = null;

                error = null;
                //return false;
            }

            mMaximum = new IntegerOption.OptionValue();
            if (!mMaximum.Parse(row, "InvestigateMaximum", manager, updater, ref error))
            {
                mMaximum = null;

                error = null;
                //return false;
            }

            return true;
        }
Exemplo n.º 29
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            if (!row.Exists("AllowGoToJail"))
            {
                error = "AllowGoToJail missing";
                return false;
            }

            mAllowGoToJail = row.GetBool("AllowGoToJail");

            mBail = new IntegerOption.OptionValue(-1);
            if (row.Exists("Bail"))
            {
                if (!mBail.Parse(row, "Bail", Manager, this, ref error))
                {
                    return false;
                }
            }

            if (!row.Exists("AllowInjury"))
            {
                error = "AllowInjury missing";
                return false;
            }

            mAllowInjury = row.GetBool("AllowInjury");

            mSneakinessScoring = row.GetString("SneakinessScoring");

            mInvestigate = new InvestigationHelper();
            if (!mInvestigate.Parse(row, Manager, this, ref error))
            {
                return false;
            }

            mSuccess = new WeightScenarioHelper(Origin.FromFire);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return false;
            }

            mFailure = new WeightScenarioHelper(Origin.FromFire);
            if (!mFailure.Parse(row, Manager, this, "Failure", ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
Exemplo n.º 30
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mChanceOfPregnancy = new IntegerOption.OptionValue(-1);

            if (row.Exists("ChanceOfPregnancy"))
            {
                if (!mChanceOfPregnancy.Parse(row, "ChanceOfPregnancy", Manager, this, ref error))
                {
                    return false;
                }
            }

            mAllowPartner = row.GetBool("AllowPartner");

            if (!row.Exists("TypeOfStory"))
            {
                error = "TypeOfStory missing";
                return false;
            }
            else if (!ParserFunctions.TryParseEnum<TypeOfStory>(row.GetString("TypeOfStory"), out mTypeOfStory, TypeOfStory.None))
            {
                error = "TypeOfStory unknown";
                return false;
            }

            mSuccess = new WeightScenarioHelper(Origin.FromRomanticBetrayal);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return false;
            }

            mFailure = new WeightScenarioHelper(Origin.FromRomanticBetrayal);
            if (!mFailure.Parse(row, Manager, this, "Failure", ref error))
            {
                return false;
            }

            if (!base.Parse(row, ref error))
            {
                return false;
            }

            if (!row.Exists("AffairStory"))
            {
                error = "AffairStory missing";
                return false;
            }

            if (!ParserFunctions.TryParseEnum<ManagerRomance.AffairStory>(row.GetString("AffairStory"), out mAffairStory, ManagerRomance.AffairStory.None))
            {
                error = "AffairStory unknown";
                return false;
            }

            if (mAffairStory != ManagerRomance.AffairStory.None)
            {
                if ((!Filter.AllowAffair) && (!TargetFilter.AllowAffair))
                {
                    error = "ActorAllowAffair or TargetAllowAffair must be True";
                    return false;
                }
            }
            else
            {
                if ((Filter.AllowAffair) || (TargetFilter.AllowAffair))
                {
                    error = "ActorAllowAffair and TargetAllowAffair must be False";
                    return false;
                }
            }

            mAcceptanceScoring = row.GetString("AcceptanceScoring");

            return true;
        }
Exemplo n.º 31
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            if (row.Exists("AccountingKey"))
            {
                mAccountingKey = row.GetString("AccountingKey");
            }
            else
            {
                error = "AccountingKey missing";
                return false;
            }

            mAllowDebt = new BooleanOption.OptionValue();
            if (!mAllowDebt.Parse(row, "AllowDebt", Manager, this, ref error))
            {
                return false;
            }

            mMinimum = new IntegerOption.OptionValue();
            if (!mMinimum.Parse(row, "Minimum", Manager, this, ref error))
            {
                return false;
            }

            mMaximum = new IntegerOption.OptionValue();
            if (!mMaximum.Parse(row, "Maximum", Manager, this, ref error))
            {
                return false;
            }

            mSuccess = new WeightScenarioHelper(Origin.FromGettingGifts);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
Exemplo n.º 32
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mChanceOfPregnancy = new IntegerOption.OptionValue(-1);

            if (row.Exists("ChanceOfPregnancy"))
            {
                if (!mChanceOfPregnancy.Parse(row, "ChanceOfPregnancy", Manager, this, ref error))
                {
                    return(false);
                }
            }

            mAllowPartner = row.GetBool("AllowPartner");

            if (!row.Exists("TypeOfStory"))
            {
                error = "TypeOfStory missing";
                return(false);
            }
            else if (!ParserFunctions.TryParseEnum <TypeOfStory>(row.GetString("TypeOfStory"), out mTypeOfStory, TypeOfStory.None))
            {
                error = "TypeOfStory unknown";
                return(false);
            }

            mSuccess = new WeightScenarioHelper(Origin.FromRomanticBetrayal);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return(false);
            }

            mFailure = new WeightScenarioHelper(Origin.FromRomanticBetrayal);
            if (!mFailure.Parse(row, Manager, this, "Failure", ref error))
            {
                return(false);
            }

            if (!base.Parse(row, ref error))
            {
                return(false);
            }

            if (!row.Exists("AffairStory"))
            {
                error = "AffairStory missing";
                return(false);
            }

            if (!ParserFunctions.TryParseEnum <ManagerRomance.AffairStory>(row.GetString("AffairStory"), out mAffairStory, ManagerRomance.AffairStory.None))
            {
                error = "AffairStory unknown";
                return(false);
            }

            if (mAffairStory != ManagerRomance.AffairStory.None)
            {
                if ((!Filter.AllowAffair) && (!TargetFilter.AllowAffair))
                {
                    error = "ActorAllowAffair or TargetAllowAffair must be True";
                    return(false);
                }
            }
            else
            {
                if ((Filter.AllowAffair) || (TargetFilter.AllowAffair))
                {
                    error = "ActorAllowAffair and TargetAllowAffair must be False";
                    return(false);
                }
            }

            mAcceptanceScoring = row.GetString("AcceptanceScoring");

            return(true);
        }
Exemplo n.º 33
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            if (row.Exists("AccountingKey"))
            {
                mAccountingKey = row.GetString("AccountingKey");
            }
            else
            {
                error = "AccountingKey missing";
                return false;
            }

            mMinimum = new IntegerOption.OptionValue();
            if (!mMinimum.Parse(row, "Minimum", Manager, this, ref error))
            {
                return false;
            }

            mMaximum = new IntegerOption.OptionValue();
            if (!mMaximum.Parse(row, "Maximum", Manager, this, ref error))
            {
                return false;
            }

            mSuccess = new WeightScenarioHelper(Origin.FromCharity);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return false;
            }

            mFailure = new WeightScenarioHelper(Origin.FromCharity);
            if (!mFailure.Parse(row, Manager, this, "Failure", ref error))
            {
                return false;
            }

            mAcceptanceScoring = row.GetString("AcceptanceScoring");

            return base.Parse(row, ref error);
        }
Exemplo n.º 34
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mAllowDebt = row.GetBool("AllowDebt");

            if (row.Exists("AccountingKey"))
            {
                mAccountingKey = row.GetString("AccountingKey");
            }
            else
            {
                error = "AccountingKey missing";
                return false;
            }

            mFight = new FightScenarioHelper(Origin.FromTheft, SimDescription.DeathType.OldAge);
            if (!mFight.Parse(row, Manager, this, ref error))
            {
                return false;
            }

            mInvestigate = new InvestigationHelper();
            if (!mInvestigate.Parse(row, Manager, this, ref error))
            {
                return false;
            }

            mMinimum = new IntegerOption.OptionValue();
            if (!mMinimum.Parse(row, "Minimum", Manager, this, ref error))
            {
                return false;
            }

            mMaximum = new IntegerOption.OptionValue();
            if (!mMaximum.Parse(row, "Maximum", Manager, this, ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
Exemplo n.º 35
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            mBail = new IntegerOption.OptionValue(-1);
            if (row.Exists("Bail"))
            {
                if (!mBail.Parse(row, "Bail", Manager, this, ref error))
                {
                    return false;
                }
            }

            mChance = new IntegerOption.OptionValue();
            if (!mChance.Parse(row, "Chance", Manager, this, ref error))
            {
                return false;
            }

            mSuccess = new WeightScenarioHelper(Origin.FromBurglar);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }
Exemplo n.º 36
0
        public override bool Parse(XmlDbRow row, ref string error)
        {
            mName = new WeightOption.NameOption(row);

            if (row.Exists("AllowMultiple"))
            {
                mAllowMultiple = row.GetBool("AllowMultiple");
            }

            mMinimumWealth = new IntegerOption.OptionValue();
            if (!mMinimumWealth.Parse(row, "MinimumWealth", Manager, this, ref error))
            {
                return false;
            }

            mSuccess = new WeightScenarioHelper(Origin.FromStore);
            if (!mSuccess.Parse(row, Manager, this, "Success", ref error))
            {
                return false;
            }

            return base.Parse(row, ref error);
        }