2022-02-02 06:06:04 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
|
|
|
using osu.Game.Rulesets.Osu.Mods;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests.Mods
|
|
|
|
{
|
|
|
|
public class TestSceneOsuModAimAssist : OsuModTestScene
|
|
|
|
{
|
2022-02-02 07:15:14 +00:00
|
|
|
[TestCase(0.1f)]
|
|
|
|
[TestCase(0.5f)]
|
|
|
|
[TestCase(1)]
|
|
|
|
public void TestAimAssist(float strength)
|
2022-02-02 06:06:04 +00:00
|
|
|
{
|
|
|
|
CreateModTest(new ModTestData
|
|
|
|
{
|
2022-02-02 07:15:14 +00:00
|
|
|
Mod = new OsuModAimAssist
|
|
|
|
{
|
|
|
|
AssistStrength = { Value = strength },
|
|
|
|
},
|
|
|
|
PassCondition = () => true,
|
2022-02-02 06:06:04 +00:00
|
|
|
Autoplay = false,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|