From c22a74e9fdac4b97b07b4a0b296374214a79dd57 Mon Sep 17 00:00:00 2001 From: MaxSignal Date: Sun, 14 Dec 2025 16:48:53 +0000 Subject: [PATCH] Remove filtering by the buyable (#65) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ### Description The buyable flag is never disabled anywhere in the game, and if this flag is set to 0, the robot won’t be shown on the CRF at all—so I think we should remove it. ### Game _No response_ ### Please confirm - [x] I am the legal owner or represent the owner of all work submitted - [x] I consent to my submission being added to this FOSS project - [ ] This PR used LLMs to generate some or all of the code changes Reviewed-on: https://git.ngram.ca/OpenJam/rc-servers/pulls/65 Co-authored-by: MaxSignal Co-committed-by: MaxSignal --- rc_factory/src/arc/adapter.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/rc_factory/src/arc/adapter.rs b/rc_factory/src/arc/adapter.rs index 1bb2189..fd80df8 100644 --- a/rc_factory/src/arc/adapter.rs +++ b/rc_factory/src/arc/adapter.rs @@ -141,9 +141,6 @@ impl crate::VehicleFactoryAdapter for ArcAdapter { if query.maximum_cpu < usize::MAX { query_builder = query_builder.filter(super::entities::robot_metadata::Column::Cpu.lte(query.maximum_cpu as u32)); } - if query.buyable { - query_builder = query_builder.filter(super::entities::robot_metadata::Column::Buyable.ne(0)); - } if !self.ignore_expiry { let now_str = chrono::Utc::now().to_rfc3339_opts(chrono::SecondsFormat::Secs, true).trim_end_matches('Z').to_owned(); log::debug!("Expiry must exceed `{}`", now_str);