Skip to content

Commit

Permalink
DRS duel minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
awgil committed Apr 2, 2024
1 parent 55cb5a2 commit ce54607
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Coerce : Components.StatusDrivenForcedMarch
public Coerce() : base(4, (uint)SID.ForwardMarch, (uint)SID.AboutFace, (uint)SID.LeftFace, (uint)SID.RightFace) { }
}

[ModuleInfo(GroupType = BossModuleInfo.GroupType.CFC, GroupID = 761, NameID = 9754)]
public class DRS2 : BossModule
{
public DRS2(WorldState ws, Actor primary) : base(ws, primary, new ArenaBoundsSquare(new(-160, 78), 17.5f)) { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public struct Pattern
}

protected TrapType TrapToTake; // note that 'normal' means none here
private readonly Pattern[] _allowedPatterns;
private Pattern _curPattern;
private BitMask _uncovered;
private BitMask _exploded;
private Pattern[] _allowedPatterns;
private BitMask _possiblePatterns;
private Pattern _potentiallyUnsafe;
private bool _possiblePatternsDirty;
Expand Down Expand Up @@ -218,7 +218,7 @@ protected static BitMask BuildMask(params int[] bits)

class EntrapmentNormal : Entrapment
{
private static Pattern[] _allowedPatterns = [
private readonly static Pattern[] _allowedPatterns = [
new() { Normal = BuildMask( 8, 9, 10, 11, 12, 13, 18, 20, 34, 35, 36, 37, 38, 40, 42, 45) },
new() { Normal = BuildMask( 8, 9, 11, 16, 19, 20, 21, 22, 26, 30, 32, 36, 40, 41, 42, 45) },
new() { Normal = BuildMask( 9, 11, 12, 13, 14, 16, 17, 27, 28, 32, 33, 38, 41, 42, 43, 44) },
Expand All @@ -231,7 +231,7 @@ public EntrapmentNormal() : base(_allowedPatterns) { }
class EntrapmentInescapable : Entrapment
{
// TODO: don't think these patterns are actually correct...
private static Pattern[] _allowedPatterns = [
private readonly static Pattern[] _allowedPatterns = [
new() { Normal = BuildMask(3, 8, 20, 25, 38, 43, 46, 49, 52), Toad = BuildMask(10, 50, 53), Ice = BuildMask(40), Mini = BuildMask(29) },
new() { Normal = BuildMask(2, 8, 11, 16, 25, 29, 38, 46), Toad = BuildMask(0, 4, 44), Ice = BuildMask(49), Mini = BuildMask(34) },
new() { Normal = BuildMask(5, 8, 11, 16, 18, 22, 24, 29, 43, 49, 53), Toad = BuildMask(6, 33, 38), Ice = BuildMask(4), Mini = BuildMask(48) },
Expand Down

0 comments on commit ce54607

Please sign in to comment.