Skip to content

Commit

Permalink
True Shrine Death Seal room without entrance rando
Browse files Browse the repository at this point in the history
  • Loading branch information
thezerothcat committed Feb 4, 2019
1 parent 741dac0 commit 425ad65
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/main/java/lmr/randomizer/Settings.java
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public static void setBossSpecificAnkhJewels(boolean bossSpecificAnkhJewels, boo
if(update && bossSpecificAnkhJewels != singleton.bossSpecificAnkhJewels) {
singleton.changed = true;
}
singleton.ushumgalluAssist = bossSpecificAnkhJewels;
singleton.bossSpecificAnkhJewels = bossSpecificAnkhJewels;
}

public static boolean isCoinChestGraphics() {
Expand Down
37 changes: 30 additions & 7 deletions src/main/java/lmr/randomizer/rcd/RcdReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -562,17 +562,40 @@ else if(obj.getArgs().get(0) == 9) {
testByteOperation.setValue((byte)0);
}
}
else {
// Don't change to true shrine until you have Feather, since the old shrine has more requirement options.
if (obj.getTestByteOperations().get(0).getIndex() == 258) {
if(ByteOp.FLAG_EQUALS.equals(obj.getTestByteOperations().get(0).getOp())) {
keepObject = false;
}
else {
obj.getTestByteOperations().clear();
}
}
}
}
else if(screen.getZoneIndex() == 8) {
if (screen.getRoomIndex() == 2 && screen.getScreenIndex() == 3) {
if(obj.getArgs().get(0) == 18) {
keepObject = false;
if(Settings.isRandomizeTransitionGates()) {
if(obj.getArgs().get(0) == 18) {
keepObject = false;
}
else if(obj.getArgs().get(0) == 9) {
TestByteOperation testByteOperation = obj.getTestByteOperations().get(0);
testByteOperation.setIndex(0x382);
testByteOperation.setOp(ByteOp.FLAG_EQUALS);
testByteOperation.setValue((byte)0);
}
}
else if(obj.getArgs().get(0) == 9) {
TestByteOperation testByteOperation = obj.getTestByteOperations().get(0);
testByteOperation.setIndex(0x382);
testByteOperation.setOp(ByteOp.FLAG_EQUALS);
testByteOperation.setValue((byte)0);
else {
// Don't change to true shrine until you have Feather, since the old shrine has more requirement options.
if (ByteOp.FLAG_EQUALS.equals(obj.getTestByteOperations().get(0).getOp())) {
TestByteOperation featherCheck = new TestByteOperation();
featherCheck.setIndex(182);
featherCheck.setOp(ByteOp.FLAG_EQUALS);
featherCheck.setValue((byte) 2);
obj.getTestByteOperations().add(featherCheck);
}
}
}
else if(screen.getRoomIndex() == 5 && screen.getScreenIndex() == 3) {
Expand Down

0 comments on commit 425ad65

Please sign in to comment.