Skip to content

Commit

Permalink
update script
Browse files Browse the repository at this point in the history
  • Loading branch information
Limiana committed Aug 11, 2024
1 parent 978ac21 commit 90ff230
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SplatoonScripts/Duties/Dawntrail/R4S Sunrise Sabbath.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace SplatoonScriptsOfficial.Duties.Dawntrail;
public class R4S_Sunrise_Sabbath : SplatoonScript
{
public override HashSet<uint>? ValidTerritories { get; } = [1232];
public override Metadata? Metadata => new(3, "NightmareXIV");
public override Metadata? Metadata => new(4, "NightmareXIV");
uint DebuffYellow = 4000;
uint DebuffBlue = 4001;
string GunYellow = "vfx/common/eff/m0888_stlp04_c0t1.avfx";
Expand Down Expand Up @@ -123,7 +123,8 @@ public override void OnUpdate()
var gun = guns[i];
if(AttachedInfo.TryGetVfx(gun, out var vfx))
{
if(vfx.Where(x => x.Key.EqualsAny(this.GunBlue, this.GunYellow)).OrderBy(x => x.Value.AgeF).FirstOrDefault().Key == this.GunBlue)
var req = vfx?.Where(x => x.Key.EqualsAny(this.GunBlue, this.GunYellow) && x.Value.AgeF < 15f).OrderBy(x => x.Value.AgeF).FirstOrDefault().Key;
if(req == this.GunBlue)
{
if(showAoe)
{
Expand All @@ -133,7 +134,7 @@ public override void OnUpdate()
}
if(Player.Object.StatusList.Any(x => x.StatusId == this.DebuffYellow)) EnableTether();
}
else
else if(req == this.GunYellow)
{
if(showAoe)
{
Expand Down

0 comments on commit 90ff230

Please sign in to comment.