Remove cost notification

This commit is contained in:
Jeff 2024-07-10 22:51:39 -04:00
parent 8510e3b22e
commit 878d39668c
2 changed files with 0 additions and 21 deletions

View File

@ -5,9 +5,7 @@ orientation = "West"
"food.cheese" = 50 "food.cheese" = 50
[sell_prices] [sell_prices]
# Armor # Armor
"armor.misc.neck.carcanet_of_wrath" = 20_000 "armor.misc.neck.carcanet_of_wrath" = 20_000
## Boreal Armor ## Boreal Armor

View File

@ -36,7 +36,6 @@ pub struct Bot {
last_action: Instant, last_action: Instant,
last_announcement: Instant, last_announcement: Instant,
last_ouch: Instant, last_ouch: Instant,
last_cost_difference: i32,
} }
impl Bot { impl Bot {
@ -98,7 +97,6 @@ impl Bot {
last_action: now, last_action: now,
last_announcement: now, last_announcement: now,
last_ouch: now, last_ouch: now,
last_cost_difference: 0,
}) })
} }
@ -398,7 +396,6 @@ impl Bot {
// Accept // Accept
self.client self.client
.perform_trade_action(TradeAction::Accept(trade.phase)); .perform_trade_action(TradeAction::Accept(trade.phase));
// If they are offering more // If they are offering more
} else if difference.is_positive() { } else if difference.is_positive() {
// If they are offering coins // If they are offering coins
@ -439,22 +436,6 @@ impl Bot {
} }
} }
if difference != self.last_cost_difference {
let their_name = self
.find_name(&trade.parties[their_offer_index])
.ok_or("Failed to find player name")?
.to_string();
log::debug!("Sending cost to {their_name}");
self.client.send_command(
"tell".to_string(),
vec![their_name, format!("My offer: {my_offered_items_value}. Your offer: {their_offered_items_value}.")],
);
}
self.last_cost_difference = difference;
Ok(()) Ok(())
} }