From 68711f9ee6c6906094ba3facfbbf117c80dc5d78 Mon Sep 17 00:00:00 2001 From: Joey Hines Date: Sat, 6 Dec 2025 16:41:49 -0700 Subject: [PATCH] Only take amount specified by user in improvement --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/discord/improvements.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 52c17c7..1201760 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1093,7 +1093,7 @@ dependencies = [ [[package]] name = "fren" -version = "2.6.0" +version = "2.6.1" dependencies = [ "axum 0.8.1", "base64 0.22.1", diff --git a/Cargo.toml b/Cargo.toml index 1080ea3..b158974 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "fren" -version = "2.6.0" +version = "2.6.1" edition = "2024" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/src/discord/improvements.rs b/src/discord/improvements.rs index bc8b7de..fe18f5e 100644 --- a/src/discord/improvements.rs +++ b/src/discord/improvements.rs @@ -78,7 +78,7 @@ pub async fn buy_improvement( User::try_take_funds( &ctx.data().db, ctx.author().id, - improvement_type.price() as u32, + amount, )?; let (has_improved, _) =