Skip to content

Commit

Permalink
Merge pull request #125 from damolitionn/main
Browse files Browse the repository at this point in the history
R1S Multiscript OnReset() Change
  • Loading branch information
Limiana authored Aug 13, 2024
2 parents 451fa66 + 04639bf commit 1b29991
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions SplatoonScripts/Duties/Dawntrail/R1S Multiscript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class R1S_Multiscript : SplatoonScript

private List<Vector3> clonePositions = new List<Vector3>();

public override Metadata? Metadata => new(1, "damolitionn");
public override Metadata? Metadata => new(2, "damolitionn");

private bool IsLeapingCleave = false;
private bool LeftFirst = false;
Expand All @@ -28,8 +28,6 @@ public class R1S_Multiscript : SplatoonScript
private Vector3 jumpTargetPosition;

IBattleNpc? BlackCat => Svc.Objects.FirstOrDefault(x => x is IBattleNpc b && b.DataId == 17193 && b.IsTargetable) as IBattleNpc;
IBattleNpc? JumpMarker => Svc.Objects.FirstOrDefault(x => x is IBattleNpc b && b.DataId == 17195 && !b.IsTargetable) as IBattleNpc;
IBattleNpc? Clone => Svc.Objects.FirstOrDefault(x => x is IBattleNpc b && b.DataId == 17196) as IBattleNpc;

public override void OnSetup()
{
Expand Down Expand Up @@ -519,7 +517,7 @@ public override void OnUpdate()
}
}

private void Reset()
public override void OnReset()
{
IsLeapingCleave = false;
LeftFirst = false;
Expand All @@ -537,16 +535,5 @@ private void Reset()
{
e2.Enabled = false;
}

}

public override void OnCombatEnd()
{
Reset();
}

public override void OnCombatStart()
{
Reset();
}
}
}

0 comments on commit 1b29991

Please sign in to comment.