From 738ed8b368dda8518287e2db5e58c94738e86488 Mon Sep 17 00:00:00 2001 From: nn <53490794+nn357@users.noreply.github.com> Date: Tue, 21 Apr 2026 21:31:28 +0900 Subject: [PATCH] Filter walljumpboost / speedboosters depending on option saw this on the "todo.txt" removes walljump / split speed / speedbooster if the option isnt' on from the seed page. --- rust/maprando-web/src/randomize_helpers.rs | 1 + rust/maprando/src/helpers.rs | 24 ++++++++++++++++++---- rust/maprando/src/randomize.rs | 1 + 3 files changed, 22 insertions(+), 4 deletions(-) diff --git a/rust/maprando-web/src/randomize_helpers.rs b/rust/maprando-web/src/randomize_helpers.rs index 5bc199525a..56dba4f545 100644 --- a/rust/maprando-web/src/randomize_helpers.rs +++ b/rust/maprando-web/src/randomize_helpers.rs @@ -405,6 +405,7 @@ pub fn render_seed( .settings .item_progression_settings .key_item_priority, + &seed_data.settings.other_settings, ), objective_names, race_mode: seed_data.race_mode, diff --git a/rust/maprando/src/helpers.rs b/rust/maprando/src/helpers.rs index 12c338adda..ad99b7f02e 100644 --- a/rust/maprando/src/helpers.rs +++ b/rust/maprando/src/helpers.rs @@ -1,11 +1,14 @@ -use maprando_game::IndexedVec; - use crate::{ randomize::ItemPriorityGroup, - settings::{KeyItemPriority, KeyItemPrioritySetting}, + settings::{KeyItemPriority, KeyItemPrioritySetting, OtherSettings, SpeedBooster, WallJump}, }; +use maprando_game::IndexedVec; +use maprando_game::Item; -pub fn get_item_priorities(item_priorities: &[KeyItemPrioritySetting]) -> Vec { +pub fn get_item_priorities( + item_priorities: &[KeyItemPrioritySetting], + other_settings: &OtherSettings, +) -> Vec { let mut priorities: IndexedVec = IndexedVec::default(); priorities.add(&KeyItemPriority::Early); priorities.add(&KeyItemPriority::Default); @@ -19,6 +22,19 @@ pub fn get_item_priorities(item_priorities: &[KeyItemPrioritySetting]) -> Vec Randomizer<'r> { filler_priority_map, item_priority_groups: get_item_priorities( &settings.item_progression_settings.key_item_priority, + &settings.other_settings, ), base_links_data, seed_links_data: LinksDataGroup::new(