Exemplo n.º 1
0
        public override void CopyFrom(TactileDataContent other)
        {
            CheckSameClass(other);

            var config = (ActorConfig)other;

            ActorNameDelimiter = config.ActorNameDelimiter;
            BuildNameDelimiter = config.BuildNameDelimiter;

            HpMax          = config.HpMax;
            PrimaryStatMax = config.PrimaryStatMax;
            HpValue        = config.HpValue;
            LuckCap        = config.LuckCap;
            LowHealthRate  = config.LowHealthRate;

            LvlCap                        = config.LvlCap;
            Tier0LvlCap                   = config.Tier0LvlCap;
            PromotionLvl                  = config.PromotionLvl;
            LowestTier                    = config.LowestTier;
            ResetLevelOnPromotion         = config.ResetLevelOnPromotion;
            PromotionSelectionMenu        = config.PromotionSelectionMenu;
            ExpToLvl                      = config.ExpToLvl;
            ExpPerEnemy                   = config.ExpPerEnemy;
            ExpPerEnemyKillException      = config.ExpPerEnemyKillException;
            ConserveWastedGrowths         = config.ConserveWastedGrowths;
            ConservedGrowthMaxPerStat     = config.ConservedGrowthMaxPerStat;
            ActorGainedHpHeal             = config.ActorGainedHpHeal;
            CitizensGainExp               = config.CitizensGainExp;
            SemifixedLevelsAtPreparations = config.SemifixedLevelsAtPreparations;
            SemifixedFirstLevelUp         = config.SemifixedFirstLevelUp;
            NoEmptyLevels                 = config.NoEmptyLevels;

            GenericRandomLevelPercent    = config.GenericRandomLevelPercent;
            GenericRandomLevelMax        = config.GenericRandomLevelMax;
            GenericAutoWexp              = config.GenericAutoWexp;
            GenericActorRandomAffinities = config.GenericActorRandomAffinities;

            StatLabelColoring     = config.StatLabelColoring;
            StatColorsOnlyInPrep  = config.StatColorsOnlyInPrep;
            OnlyPcStatColors      = config.OnlyPcStatColors;
            GrowthAverageColorMin = config.GrowthAverageColorMin;
            GrowthAverageColorMed = config.GrowthAverageColorMed;
            GrowthAverageColorMax = config.GrowthAverageColorMax;

            ChildWeaponTypeAllowsParent = config.ChildWeaponTypeAllowsParent;
            ParentWeaponTypeAllowsChild = config.ParentWeaponTypeAllowsChild;
            ShowAllActorWeaponTypes     = config.ShowAllActorWeaponTypes;

            NumItems     = config.NumItems;
            AllowUnequip = config.AllowUnequip;
            OneSRank     = config.OneSRank;
            SRankBonus   = config.SRankBonus;

            CasualModeLives = config.CasualModeLives;
        }
Exemplo n.º 2
0
        public override void Read(BinaryReader input)
        {
            ActorNameDelimiter = input.ReadChar();
            BuildNameDelimiter = input.ReadChar();

            HpMax          = input.ReadInt32();
            PrimaryStatMax = input.ReadInt32();
            HpValue        = input.ReadSingle();
            LuckCap        = input.ReadInt32();
            LowHealthRate  = input.ReadSingle();

            LvlCap                        = input.ReadInt32();
            Tier0LvlCap                   = input.ReadInt32();
            PromotionLvl                  = input.ReadInt32();
            LowestTier                    = input.ReadInt32();
            ResetLevelOnPromotion         = input.ReadBoolean();
            PromotionSelectionMenu        = input.ReadBoolean();
            ExpToLvl                      = input.ReadInt32();
            ExpPerEnemy                   = input.ReadInt32();
            ExpPerEnemyKillException      = input.ReadBoolean();
            ConserveWastedGrowths         = input.ReadBoolean();
            ConservedGrowthMaxPerStat     = input.ReadInt32();
            ActorGainedHpHeal             = input.ReadBoolean();
            CitizensGainExp               = input.ReadBoolean();
            SemifixedLevelsAtPreparations = input.ReadBoolean();
            SemifixedFirstLevelUp         = input.ReadBoolean();
            NoEmptyLevels                 = input.ReadBoolean();

            GenericRandomLevelPercent    = input.ReadSingle();
            GenericRandomLevelMax        = input.ReadInt32();
            GenericAutoWexp              = input.ReadBoolean();
            GenericActorRandomAffinities = input.ReadBoolean();

            StatLabelColoring     = (StatLabelColoring)input.ReadInt32();
            StatColorsOnlyInPrep  = input.ReadBoolean();
            OnlyPcStatColors      = input.ReadBoolean();
            GrowthAverageColorMin = input.ReadInt32();
            GrowthAverageColorMed = input.ReadInt32();
            GrowthAverageColorMax = input.ReadInt32();

            ChildWeaponTypeAllowsParent = input.ReadBoolean();
            ParentWeaponTypeAllowsChild = input.ReadBoolean();
            ShowAllActorWeaponTypes     = input.ReadBoolean();

            NumItems     = input.ReadInt32();
            AllowUnequip = input.ReadBoolean();
            OneSRank     = input.ReadBoolean();
            SRankBonus   = input.ReadInt32();

            CasualModeLives = input.ReadInt32();
        }