Skip to content

Commit

Permalink
Fix Jipang/Cave of Jipang Echoing Flute
Browse files Browse the repository at this point in the history
  • Loading branch information
Endymionls committed May 17, 2023
1 parent a209a93 commit 36a2d8d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions DW3Randomizer/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ namespace DW3Randomizer
{
public partial class Form1 : Form
{
string versionNumber = "2.4.5a";
string revisionDate = "4/28/2023";
string versionNumber = "2.4.5b";
string revisionDate = "5/16/2023";
string SotWFlags = "ACHMHDMBLABJEBODPPPBADB";
string endyFlags = "ACGMHDPBLACLJDODPPPBADB";

Expand Down Expand Up @@ -233,13 +233,15 @@ private void btnRandomize_Click(object sender, EventArgs e)
Random r1 = new Random(int.Parse(txtSeed.Text));

// Randomize how many steps up rni is increased if GenCompareFile is checked
/*
if (chk_GenCompareFile.Checked)
{
for (int lnI = 0; lnI < (r1.Next() % 20) + 1; lnI++)
{
rni++;
}
}
*/
if (lblSHAChecksum.Text != lblReqChecksum.Text)
{
if (MessageBox.Show("The checksum of the ROM does not match the required checksum. Patch anyway?", "Checksum mismatch", MessageBoxButtons.YesNo) == DialogResult.No)
Expand Down Expand Up @@ -5212,7 +5214,7 @@ private void randTreasures(int rni)
else if (new int[] { 0x377fe }.Contains(treasureLocation))
echoLocations = new byte[] { 0x16 }; // Water Blaster NPC
else if (new int[] { 0x292e4, 0x292e7 }.Contains(treasureLocation))
echoLocations = new byte[] { 0x24, 0x8a }; // Cave of Jipang/Jipang
echoLocations = new byte[] { 0x17, 0x8a, 0x35, 0xbb }; // Cave of Jipang/Jipang
else if (new int[] { 0x29272, 0x29271, 0x29273 }.Contains(treasureLocation))
echoLocations = new byte[] { 0x18, 0x8b, 0x8c }; // Pirates Cove
else if (new int[] { 0x292d1, 0x292d0, 0x292cf, 0x292cd, 0x292ce, 0x292cc, 0x292cb }.Contains(treasureLocation))
Expand Down

0 comments on commit 36a2d8d

Please sign in to comment.