1.9.0.0 (Testing) Release
This commit is contained in:
@@ -48,7 +48,8 @@ public abstract class BaseAction
|
||||
s.ActionStates.MutateState(this);
|
||||
s.ActionCount++;
|
||||
|
||||
s.ActiveEffects.DecrementDuration();
|
||||
if (IncreasesStepCount)
|
||||
s.ActiveEffects.DecrementDuration();
|
||||
}
|
||||
|
||||
public virtual void UseSuccess(Simulator s)
|
||||
|
||||
@@ -14,10 +14,13 @@ internal abstract class BaseBuffAction : BaseAction
|
||||
public override void UseSuccess(Simulator s) =>
|
||||
s.AddEffect(Effect, Duration);
|
||||
|
||||
public sealed override string GetTooltip(Simulator s, bool addUsability)
|
||||
public override string GetTooltip(Simulator s, bool addUsability)
|
||||
{
|
||||
var builder = new StringBuilder(base.GetTooltip(s, addUsability));
|
||||
builder.AppendLine($"{Duration} Steps");
|
||||
return builder.ToString();
|
||||
}
|
||||
|
||||
protected string GetBaseTooltip(Simulator s, bool addUsability) =>
|
||||
base.GetTooltip(s, addUsability);
|
||||
}
|
||||
|
||||
@@ -15,4 +15,7 @@ internal sealed class CarefulObservation : BaseAction
|
||||
public override bool CanUse(Simulator s) => s.Input.Stats.IsSpecialist && s.ActionStates.CarefulObservationCount < 3;
|
||||
|
||||
public override void UseSuccess(Simulator s) => s.StepCondition();
|
||||
|
||||
public override string GetTooltip(Simulator s, bool addUsability) =>
|
||||
$"{base.GetTooltip(s, addUsability)}Specialist Only";
|
||||
}
|
||||
|
||||
@@ -14,4 +14,7 @@ internal sealed class HeartAndSoul : BaseBuffAction
|
||||
public override int CPCost(Simulator s) => 0;
|
||||
|
||||
public override bool CanUse(Simulator s) => s.Input.Stats.IsSpecialist && !s.ActionStates.UsedHeartAndSoul;
|
||||
|
||||
public override string GetTooltip(Simulator s, bool addUsability) =>
|
||||
$"{GetBaseTooltip(s, addUsability)}Specialist Only";
|
||||
}
|
||||
|
||||
@@ -14,14 +14,16 @@ internal sealed class Manipulation : BaseBuffAction
|
||||
|
||||
public override void Use(Simulator s)
|
||||
{
|
||||
if (s.HasEffect(EffectType.Manipulation))
|
||||
s.RestoreDurability(5);
|
||||
|
||||
s.ReduceCP(CPCost(s));
|
||||
s.ReduceDurability(DurabilityCost);
|
||||
|
||||
UseSuccess(s);
|
||||
|
||||
s.ReduceCP(CPCost(s));
|
||||
|
||||
s.IncreaseStepCount();
|
||||
|
||||
s.ActionStates.MutateState(this);
|
||||
s.ActionCount++;
|
||||
|
||||
if (IncreasesStepCount)
|
||||
s.ActiveEffects.DecrementDuration();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,4 +18,7 @@ internal sealed class TrainedEye : BaseAction
|
||||
|
||||
public override void UseSuccess(Simulator s) =>
|
||||
s.IncreaseQualityRaw(s.Input.Recipe.MaxQuality - s.Quality);
|
||||
|
||||
public override string GetTooltip(Simulator s, bool addUsability) =>
|
||||
$"{base.GetTooltip(s, addUsability)}+{s.Input.Recipe.MaxQuality - s.Quality} Quality";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user