Skip to content

Commit b8db82e

Browse files
update to labapi 1.1.5
1 parent 706b977 commit b8db82e

File tree

4 files changed

+13
-22
lines changed

4 files changed

+13
-22
lines changed

Code/MethodSystem/Methods/CASSIEMethods/CassieMethod.cs

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using JetBrains.Annotations;
2+
using LabApi.Features.Wrappers;
23
using SER.Code.ArgumentSystem.Arguments;
34
using SER.Code.ArgumentSystem.BaseArguments;
45
using SER.Code.MethodSystem.BaseMethods;
@@ -65,24 +66,12 @@ public override void Execute()
6566
}
6667
}
6768
}
68-
69-
if (string.IsNullOrEmpty(translation))
70-
{
71-
LabApi.Features.Wrappers.Cassie.Message(
72-
message,
73-
true,
74-
isNoisy
75-
);
76-
}
77-
else
78-
{
79-
LabApi.Features.Wrappers.Cassie.Message(
80-
message,
81-
true,
82-
isNoisy,
83-
true,
84-
translation
85-
);
86-
}
69+
70+
// todo: check if this glitchScale works as intended
71+
Announcer.Message(
72+
message,
73+
translation,
74+
glitchScale: isNoisy ? 1 : 0
75+
);
8776
}
8877
}

Code/MethodSystem/Methods/CASSIEMethods/ClearCassieMethod.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using JetBrains.Annotations;
2+
using LabApi.Features.Wrappers;
23
using SER.Code.ArgumentSystem.BaseArguments;
34
using SER.Code.MethodSystem.BaseMethods;
45

@@ -13,6 +14,6 @@ public class ClearCassieMethod : SynchronousMethod
1314

1415
public override void Execute()
1516
{
16-
LabApi.Features.Wrappers.Cassie.Clear();
17+
Announcer.Clear();
1718
}
1819
}

Code/MethodSystem/Methods/CASSIEMethods/IsCassieSpeakingMethod.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using JetBrains.Annotations;
2+
using LabApi.Features.Wrappers;
23
using SER.Code.ArgumentSystem.BaseArguments;
34
using SER.Code.MethodSystem.BaseMethods;
45
using SER.Code.ValueSystem;
@@ -14,6 +15,6 @@ public class IsCassieSpeakingMethod : ReturningMethod<BoolValue>
1415

1516
public override void Execute()
1617
{
17-
ReturnValue = LabApi.Features.Wrappers.Cassie.IsSpeaking;
18+
ReturnValue = Announcer.IsSpeaking;
1819
}
1920
}

SER.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
<PackageReference Include="AudioPlayerApi" Version="1.1.2" />
8585
<PackageReference Include="NCalc" Version="1.3.8" />
8686
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
87-
<PackageReference Include="Northwood.LabAPI" Version="1.1.4" />
87+
<PackageReference Include="Northwood.LabAPI" Version="1.1.5" />
8888
</ItemGroup>
8989
<ItemGroup>
9090
<Folder Include="Code\" />

0 commit comments

Comments
 (0)