diff --git a/Assemblies/Mending.dll b/Assemblies/Mending.dll index 6f3fb24..8d1d240 100755 Binary files a/Assemblies/Mending.dll and b/Assemblies/Mending.dll differ diff --git a/Source/JobDriver_Mend.cs b/Source/JobDriver_Mend.cs index 7969250..3733427 100644 --- a/Source/JobDriver_Mend.cs +++ b/Source/JobDriver_Mend.cs @@ -18,7 +18,6 @@ public class JobDriver_Mend : JobDriver_DoBill private float workCycleProgress; private ChanceDef failChance; - private FieldInfo compQualityInt = typeof(CompQuality).GetField ("qualityInt", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); private FieldInfo ApparelWornByCorpseInt = typeof(Apparel).GetField("wornByCorpseInt", BindingFlags.Public | BindingFlags.NonPublic | BindingFlags.Instance); protected override Toil DoBill() @@ -65,7 +64,7 @@ protected override Toil DoBill() float skillPerc = (float) skill.Level / 20f; - skill.Learn (0.11f); + skill.Learn (0.33f); CompQuality qualityComponent = objectThing.TryGetComp(); if (qualityComponent != null && qualityComponent.Quality > QualityCategory.Awful) { @@ -74,8 +73,6 @@ protected override Toil DoBill() float skillFactor = Mathf.Lerp(1.5f, 0f, skillPerc); if (failChance != null && Rand.Value < failChance.Chance(qc) * skillFactor) { - compQualityInt.SetValue(qualityComponent, qualityComponent.Quality - 1); - objectThing.HitPoints -= fixedFailedDamage; MoteMaker.ThrowText(actor.DrawPos, actor.Map, "Failed"); diff --git a/Source/JobDriver_Recycle.cs b/Source/JobDriver_Recycle.cs index c3b9f39..c593e66 100644 --- a/Source/JobDriver_Recycle.cs +++ b/Source/JobDriver_Recycle.cs @@ -67,7 +67,7 @@ protected override Toil DoBill() float skillPerc = (float) skill.Level / 20f; - skill.Learn (0.11f); + skill.Learn (0.33f); if (qualityComponent != null && qualityComponent.Quality > QualityCategory.Awful) { QualityCategory qc = qualityComponent.Quality;