Skip to content

Commit

Permalink
Fix RE CV: broken ladder rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelOrca committed Mar 16, 2024
1 parent 67f8e52 commit 9bb8dda
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 17 deletions.
5 changes: 3 additions & 2 deletions IntelOrca.Biohazard.BioRand/Rdt.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ internal void SetDoorTarget(PlayEdge edge, RdtId target, DoorEntrance destinatio
if (edge.Raw.Randomize == false)
return;

if (id != 255)
var offsets = Map.ParseNopArray(edge.Raw.Offsets, this);

if (offsets.Length == 0 && id != 255)
{
var builder = ((RdtCv)RdtFile).ToBuilder();
var aot = builder.Aots[id];
Expand All @@ -64,7 +66,6 @@ internal void SetDoorTarget(PlayEdge edge, RdtId target, DoorEntrance destinatio
RdtFile = builder.ToRdt();
}

var offsets = Map.ParseNopArray(edge.Raw.Offsets, this);
foreach (var offset in offsets)
{
var opcode = (UnknownOpcode)Opcodes.First(x => x.Offset == offset);
Expand Down
15 changes: 0 additions & 15 deletions IntelOrca.Biohazard.BioRand/data/recv/rdt.json
Original file line number Diff line number Diff line change
Expand Up @@ -3492,11 +3492,6 @@
]
},
"8060": {
"doorRando": [
{
"category": "exclude"
}
],
"doors": [
{
"id": 2,
Expand Down Expand Up @@ -4320,11 +4315,6 @@
]
},
"8190": {
"doorRando": [
{
"category": "exclude"
}
],
"doors": [
{
"id": 1,
Expand Down Expand Up @@ -5623,11 +5613,6 @@
]
},
"A190": {
"doorRando": [
{
"category": "exclude"
}
],
"doors": [
{
"id": 0,
Expand Down

0 comments on commit 9bb8dda

Please sign in to comment.