Remove ref passing, but keep devirtualizations
This commit is contained in:
@@ -1,29 +1,15 @@
|
||||
namespace Craftimizer.Simulator.Actions;
|
||||
|
||||
internal sealed class PreparatoryTouch : BaseAction
|
||||
internal sealed class PreparatoryTouch() : BaseAction(
|
||||
ActionCategory.Quality, 71, 100299,
|
||||
increasesQuality: true,
|
||||
durabilityCost: 20,
|
||||
defaultCPCost: 40,
|
||||
defaultEfficiency: 200)
|
||||
{
|
||||
public PreparatoryTouch()
|
||||
public override void UseSuccess(Simulator s)
|
||||
{
|
||||
Category = ActionCategory.Quality;
|
||||
Level = 71;
|
||||
ActionId = 100299;
|
||||
IncreasesQuality = true;
|
||||
DurabilityCost = 20;
|
||||
}
|
||||
|
||||
public override void CPCost(Simulator s, ref int cost)
|
||||
{
|
||||
cost = 40;
|
||||
}
|
||||
|
||||
public override void Efficiency(Simulator s, ref int eff)
|
||||
{
|
||||
eff = 200;
|
||||
}
|
||||
|
||||
public override void UseSuccess(Simulator s, ref int eff)
|
||||
{
|
||||
base.UseSuccess(s, ref eff);
|
||||
base.UseSuccess(s);
|
||||
s.StrengthenEffect(EffectType.InnerQuiet);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user