diff --git a/data/pins/beehives.json b/data/pins/beehives.json index 16fd0c8..2a08818 100644 --- a/data/pins/beehives.json +++ b/data/pins/beehives.json @@ -1,6 +1,6 @@ { - "hives pin a": "09091473386ee5aa68039796a0dbbd52ce8cc6a2fb5cb0c3bb52b63b5b12f1de", - "hives pin b": "8b115df1f8cbd2ae847029d4b58aadbd7a4bd6bfd0c5b4fa635acfe5bd39d600", - "hives pots and crates pin a": "33ba49cdf1a9583c8cddd53677d5a90f245bf504fb6daa70694b85b2381e7556", - "hives pots and crates pin b": "c5ebeec963e9f312e55ec678170253073e4cc0dd9bf53e9e24a19ef73e760a63" + "hives pin a": "e142a0d54a18ad7946a42abf56e898b07fd4a2082054d86dc8e2cf75cc7c78b4", + "hives pin b": "9f1f6ce30887645d394fa4380fbc686ba323b9f1ed6423801fa0479544fc58b3", + "hives pots and crates pin a": "43190f68312fabdccc0f7948b74691af273026bc4bc76bac8e73dcaf881e3f40", + "hives pots and crates pin b": "907c126f3b605d933f6d7a267dd87f3c51d42f851c08d273fb085d0cd595deed" } diff --git a/data/pins/old_seeds.json b/data/pins/old_seeds.json index 8d87cc6..0ef8aa5 100644 --- a/data/pins/old_seeds.json +++ b/data/pins/old_seeds.json @@ -1,6 +1,6 @@ { - "chests_ow 0": "66 f1fe27d576050471", - "default 0": "200 de45e0199c463540", - "default 1": "200 0c5af47fef728db4", + "chests_ow 0": "64 c0ad2888488ddcda", + "default 0": "198 faf88c1dc9345fb9", + "default 1": "198 3e2102b3f2bc37bf", "dungeons 0": "160 cf2dacd3d3aaea08" } diff --git a/data/pins/rewards_off_and_stones.json b/data/pins/rewards_off_and_stones.json index 845d5d2..f8ed14c 100644 --- a/data/pins/rewards_off_and_stones.json +++ b/data/pins/rewards_off_and_stones.json @@ -1,10 +1,10 @@ { - "OOTRR1-BAAQCQ5V pin a": "c643342b84785a96277f625b24f1c1698982608825fe620400f6b2d6f40c624c", - "OOTRR1-BAAQCQ5V pin b": "558fa03a6f1b491db96ded2f691ca748f31cc3a225a6769c6ca30ab28dc3e840", - "OOTRR1-BEAQGCQBAMTACAK2JA pin a": "6f364b2b7f30a623c47f5c2202d68f0ec7b3967919762ea8175b87fed73e3536", - "OOTRR1-BEAQGCQBAMTACAK2JA pin b": "cad08e37365b2c18fd0aafe1e39f2b9bfff302292f186cd1bfb349ef8463ee0a", - "OOTRR1-EYAQD32I pin a": "da7ada8eb2c813b61288fbc96b0a7e959e8b965cd3403586ab267cb5e5107612", - "OOTRR1-EYAQD32I pin b": "6f0ef0003edf0758d897a1c473bdd9ab7c67aac458a481440c55dd6be785ef58", - "OOTRR1-XZLA pin a": "c3f072c5d606c7732740a9bd58bd66f32a569c64a9f66c6ec8cf24fe9af62c15", - "OOTRR1-XZLA pin b": "0d7d4a56e0acd03ea8de54aa7d91458478de3c333809b79ef1f08323c174a18c" + "OOTRR1-BAAQCQ5V pin a": "c7e5dfac27851974b4bab991bc84d72a8a9ef17239f581032d432280d1682d62", + "OOTRR1-BAAQCQ5V pin b": "2c9e3c9f8c93e90d6faa99fa5177c3838c9a7b048d8dd4b766c11ee53f9c4bb1", + "OOTRR1-BEAQGCQBAMTACAK2JA pin a": "d9fae8b00572c77a7190608c4f1bda12e1c33617bdfd63259c5b48c7e8bc680f", + "OOTRR1-BEAQGCQBAMTACAK2JA pin b": "0702a89342afb78c66db191ed6cef94c9cf39dc2cf941e5766f6d5588b5b7a1d", + "OOTRR1-EYAQD32I pin a": "5e5fa8d5e2335fabe8a8f6f21965e436fb6e2437569759c0873bc07fd6818ec8", + "OOTRR1-EYAQD32I pin b": "e583c3c1d4bd696cb764540b222e71478e884c41cd5a366ebab3227dabd2880d", + "OOTRR1-XZLA pin a": "b832f527e29d212c845b4fdc7d83326c56628074e075a1e3bf2ab7afc7a40ea0", + "OOTRR1-XZLA pin b": "63a7f1a8f886d758336be1c177028c7930845d813e0624d394213d3723fa1ee1" } diff --git a/randomizer/core/src/ocarina_hold.rs b/randomizer/core/src/ocarina_hold.rs index 93298c4..41ee915 100644 --- a/randomizer/core/src/ocarina_hold.rs +++ b/randomizer/core/src/ocarina_hold.rs @@ -480,6 +480,9 @@ mod pickup_tests { g.seed_file.placements.insert(at, there); g.seed_file.placements.insert(chest.to_string(), "Ocarina".to_string()); } + if !crate::slice::tier_order::fixed_actors(&d, &g.seed_file).ok()?.bad.is_empty() { + return None; + } let t = crate::slice::chest_targets::targets(&d, &g.seed_file).ok()?; Some((g, t)) }) diff --git a/randomizer/core/src/qol/dampe_race.rs b/randomizer/core/src/qol/dampe_race.rs index 9e3a7fe..ea023cc 100644 --- a/randomizer/core/src/qol/dampe_race.rs +++ b/randomizer/core/src/qol/dampe_race.rs @@ -11,12 +11,14 @@ pub const HEART_AT: [f32; 3] = [-3.157, 82.6, 75.47]; const HEART_FROM: u64 = 2157466067026784951; pub const BLOCK: u64 = 7277816997830770002; -pub const BLOCK_AT: [f32; 3] = [-19.6769, 84.1, 77.4768]; +pub const BLOCK_AT: [f32; 3] = [-22.4205, 84.1, 77.3269]; pub const BLOCK_TURN: f32 = std::f32::consts::FRAC_PI_2; const BLOCK_ACTOR: &str = "Obj_SongOfTimeBlock_A_01"; +pub const RUPEE_CHESTS: [&str; 2] = ["Graveyard Dampe Race Low Rupee Chest", "Graveyard Dampe Race High Rupee Chest"]; +pub const RUPEE_WHY: &str = "each later Dampé race shows it again, so it keeps its rupees"; -pub const NOTE: &str = "One Dampé race: the first race gives the Hookshot chest as before, and the race's Heart Piece lies on the ground at the goal, across from Dampé, with no second race to win. A fast second race shows the rupee chest instead of the Heart Piece chest. A Song of Time block stands in the race course as an extra platform. Always on."; +pub const NOTE: &str = "One Dampé race: the first race gives the Hookshot chest as before, and the race's Heart Piece lies on the ground at the goal, across from Dampé, with no second race to win. A later race shows a rupee chest instead of the Heart Piece chest, and the rupee chests always hold their vanilla rupees. A Song of Time block stands in the race course as an extra platform. Always on."; fn named(f: &Flow, name: &str) -> Res { let hits: Vec = (0..f.events.len()).filter(|&i| f.events[i].name == name).collect(); diff --git a/randomizer/core/src/slice/pick.rs b/randomizer/core/src/slice/pick.rs index 8cbbea1..63d6e61 100644 --- a/randomizer/core/src/slice/pick.rs +++ b/randomizer/core/src/slice/pick.rs @@ -80,6 +80,9 @@ fn reason(d: &Data, w: &World, p: &Plan, name: &str) -> Option { let Some(l) = w.loc(name) else { return Some("location is not in the logic world".to_string()); }; + if crate::qol::dampe_race::RUPEE_CHESTS.contains(&name) { + return Some(crate::qol::dampe_race::RUPEE_WHY.to_string()); + } if !p.remake && crate::slice::remake_chests::gated(name) { return Some(crate::slice::remake_chests::OFF.to_string()); } diff --git a/randomizer/core/src/slice/remake_overworld.rs b/randomizer/core/src/slice/remake_overworld.rs index 6d3573d..0e243fd 100644 --- a/randomizer/core/src/slice/remake_overworld.rs +++ b/randomizer/core/src/slice/remake_overworld.rs @@ -133,8 +133,9 @@ mod tests { assert!(pick(&d, &w, &p).left.get(OFF).is_some_and(|n| *n >= all().len())); let q: Plan = plan(&on()).unwrap(); let got: Vec = pick(&d, &w, &q).free.iter().map(|l| w.locs[*l].name.clone()).collect(); + let race: [&str; 2] = crate::qol::dampe_race::RUPEE_CHESTS; for n in all() { - assert!(got.iter().any(|g| g == n), "{n}"); + assert_eq!(got.iter().any(|g| g == n), !race.contains(&n), "{n}"); } }