-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
103 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 0 additions & 42 deletions
42
BossMod/Modules/RealmReborn/Dungeon/D01Sastasha/D010Switch.cs
This file was deleted.
Oops, something went wrong.
42 changes: 42 additions & 0 deletions
42
BossMod/Modules/RealmReborn/Dungeon/D01Sastasha/D01Sastasha.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
namespace BossMod.RealmReborn.Dungeon.D01Sastasha; | ||
|
||
public enum OID : uint | ||
{ | ||
BloodyMemoBlue = 0x1E8554, | ||
BloodyMemoRed = 0x1E8A8C, | ||
BloodyMemoGreen = 0x1E8A8D, | ||
CoralFormationBlue = 0x1E8555, | ||
CoralFormationRed = 0x1E8556, | ||
CoralFormationGreen = 0x1E8557, | ||
InconspicuousSwitch = 0x1E8558, | ||
} | ||
|
||
[ZoneModuleInfo(BossModuleInfo.Maturity.Verified, 4)] | ||
public class D01Sastasha(WorldState ws) : ZoneModule(ws) | ||
{ | ||
public enum Switch { Unknown, Blue, Red, Green, Resolved } | ||
|
||
private Switch _switchColor; | ||
|
||
public override void Update() | ||
{ | ||
if (_switchColor == Switch.Unknown) | ||
{ | ||
_switchColor = (OID)(WorldState.Actors.FirstOrDefault(a => a.IsTargetable && (OID)a.OID is OID.BloodyMemoBlue or OID.BloodyMemoRed or OID.BloodyMemoGreen)?.OID ?? 0) switch | ||
{ | ||
OID.BloodyMemoBlue => Switch.Blue, | ||
OID.BloodyMemoRed => Switch.Red, | ||
OID.BloodyMemoGreen => Switch.Green, | ||
_ => Switch.Unknown | ||
}; | ||
} | ||
else if (_switchColor != Switch.Resolved && WorldState.Actors.Any(a => a.IsTargetable && (OID)a.OID == OID.InconspicuousSwitch)) | ||
{ | ||
_switchColor = Switch.Resolved; | ||
} | ||
} | ||
|
||
public override bool WantToBeDrawn() => _switchColor != Switch.Resolved; | ||
|
||
public override List<string> CalculateGlobalHints() => [$"Correct switch: {_switchColor}"]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters