public void TestInnerQuiet() { InnerQuiet iq = new InnerQuiet(); BasicTouch bt = new BasicTouch(); BasicSynthesis bs = new BasicSynthesis(); State state = Utility.CreateDefaultState(); state.MaxQuality = 1500; state.Quality = 0; State afteriq = iq.Activate(state, true); Assert.IsTrue(afteriq.InnerQuietIsActive); Assert.AreEqual <uint>(0, afteriq.InnerQuietStacks); State afterbt = bt.Activate(afteriq, true); Assert.AreEqual <uint>(1, afterbt.InnerQuietStacks); Assert.IsTrue(Compute.Control(afterbt) > Compute.Control(afteriq)); Assert.IsTrue(Compute.Quality(afterbt, 100) > Compute.Quality(afteriq, 100)); State afterbs = bs.Activate(afterbt, true); Assert.AreEqual <uint>(1, afterbs.InnerQuietStacks); Assert.AreEqual <uint>(Compute.Control(afterbt), Compute.Control(afterbs)); Assert.AreEqual <uint>(Compute.Quality(afterbt, 100), Compute.Quality(afterbs, 100)); }
// Construct the CarpenterActions list. public CarpenterActions() { ResourceLibrary = new ResourceLibrary(Settings.ResourceLocation, ClassJobType.Carpenter); BasicSynthesis = new BasicSynthesis(CraftActionId.crp_BasicSynthesis, ResourceLibrary.ClassSkillImages["crp_BasicSynthesis"]); StandardSynthesis = new StandardSynthesis(CraftActionId.crp_StandardSynthesis, ResourceLibrary.ClassSkillImages["crp_StandardSynthesis"]); BasicTouch = new BasicTouch(CraftActionId.crp_BasicTouch, ResourceLibrary.ClassSkillImages["crp_BasicTouch"]); StandardTouch = new StandardTouch(CraftActionId.crp_StandardTouch, ResourceLibrary.ClassSkillImages["crp_StandardTouch"]); AdvancedTouch = new AdvancedTouch(CraftActionId.crp_AdvancedTouch, ResourceLibrary.ClassSkillImages["crp_AdvancedTouch"]); PreciseTouch = new PreciseTouch(CraftActionId.crp_PreciseTouch, ResourceLibrary.ClassSkillImages["crp_PreciseTouch"]); MastersMend = new MastersMend(CraftActionId.crp_MastersMend); MastersMendII = new MastersMendII(CraftActionId.crp_MastersMendII); SteadyHand = new SteadyHand(CraftActionId.crp_SteadyHand); InnerQuiet = new InnerQuiet(CraftActionId.crp_InnerQuiet); GreatStrides = new GreatStrides(CraftActionId.crp_GreatStrides); Observe = new Observe(CraftActionId.crp_Observe); CollectableSynthesis = new CollectableSynthesis(CraftActionId.crp_CollectableSynthesis); ByregotsBrow = new ByregotsBrow(CraftActionId.crp_ByregotsBrow); InnovativeTouch = new InnovativeTouch(CraftActionId.crp_InnovativeTouch); ByregotsMiracle = new ByregotsMiracle(CraftActionId.crp_ByregotsMiracle); NymeiasWheel = new NymeiasWheel(CraftActionId.crp_NymeiasWheel); TrainedHand = new TrainedHand(CraftActionId.crp_TrainedHand); Satisfaction = new Satisfaction(CraftActionId.crp_Satisfaction); Heart = new Heart(CraftActionId.crp_Heart); WhistleWhileYouWork = new WhistleWhileYouWork(CraftActionId.crp_WhistleWhileYouWork); PHTouch = new PHTouch(CraftActionId.crp_PreciseTouch); }