Skip to content

Commit

Permalink
Update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Limiana committed Jan 14, 2025
1 parent f7f6029 commit 18a3855
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ namespace SplatoonScriptsOfficial.Duties.Dawntrail.The_Futures_Rewritten;
public unsafe class P5_Fulgent_Blade_Dodge : SplatoonScript
{
public override HashSet<uint>? ValidTerritories => [1238];
public override Metadata? Metadata => new(2, "NightmareXIV");
public override Metadata? Metadata => new(3, "NightmareXIV");

long MechanicStartTime = 0;
long Phase => Environment.TickCount64 - MechanicStartTime;
Expand Down Expand Up @@ -128,7 +128,7 @@ public override void OnUpdate()
var earlyRot = (MathHelper.GetRelativeAngle(new(100f, 100f), r[1].Position.ToVector2()) - lateRot + 360) % 360;

IsCCW = earlyRot < 180;
DuoLog.Information($"Early rotation: {earlyRot}");
PluginLog.Information($"Early rotation: {earlyRot}");

var cross = GetIntersectionPoint(r[0].Position.ToVector2(), r[0].Rotation.RadToDeg(), r[1].Position.ToVector2(), r[1].Rotation.RadToDeg() + 90);

Expand All @@ -145,7 +145,7 @@ public override void OnUpdate()
if(cross != null)
{
Reference = (cross.Value.ToVector3(0), r[0].Rotation);
DuoLog.Information($"IsCCW: {IsCCW}, ref = {Reference} \n {r[0].Position.ToVector2()}, {r[0].Rotation.RadToDeg()} \n {r[1].Position.ToVector2()}, {r[1].Rotation.RadToDeg()}\n{MathHelper.GetRelativeAngle(r[1].Position, r[0].Position)}");
PluginLog.Information($"IsCCW: {IsCCW}, ref = {Reference} \n {r[0].Position.ToVector2()}, {r[0].Rotation.RadToDeg()} \n {r[1].Position.ToVector2()}, {r[1].Rotation.RadToDeg()}\n{MathHelper.GetRelativeAngle(r[1].Position, r[0].Position)}");
}
else
{
Expand Down
5 changes: 0 additions & 5 deletions SplatoonScripts/Tests/GenericTest4.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ public unsafe class GenericTest4 : SplatoonScript
int a1;
string Filter = "";

public override Dictionary<int, string> Changelog => new()
{
[3] = "Test changelog entry. Just really test changelog entry, anything can go here.\nAlso supports newlines I guess."
};

public override void OnSettingsDraw()
{
if (TaskManager?.IsBusy == true)
Expand Down

0 comments on commit 18a3855

Please sign in to comment.