Пример #1
0
        public override void ExposeData()
        {
            base.ExposeData();

            Scribe_Values.Look(ref GracePeriodHours, GraceSkillHelpers.SerialisationLabel(nameof(GracePeriodHours)));
            Scribe_Values.Look(ref PassionGraceMultiplierPercent, GraceSkillHelpers.SerialisationLabel(nameof(PassionGraceMultiplierPercent)));
            Scribe_Values.Look(ref BurningPassionGraceMultiplierPercent, GraceSkillHelpers.SerialisationLabel(nameof(BurningPassionGraceMultiplierPercent)));
            Scribe_Values.Look(ref GreatMemoryGraceMultiplierPercent, GraceSkillHelpers.SerialisationLabel(nameof(GreatMemoryGraceMultiplierPercent)));

            Log.Message($"SkillAndGrace initialised. GracePeriod: {GracePeriodHours}, PassionMultiplier: {PassionGraceMultiplierPercent}, BurningPassionMultiplier: {BurningPassionGraceMultiplierPercent}, GreatMemoryMultiplier: {GreatMemoryGraceMultiplierPercent}");
        }
Пример #2
0
        public override void PostExposeData()
        {
            base.PostExposeData();

            Scribe_Collections.Look(ref Properties.SkillPeriods, GraceSkillHelpers.SerialisationLabel(nameof(GraceProperties.SkillPeriods)), LookMode.Deep);
        }