From 612451142d39f56f1bba61066e9f66fdbb63f912 Mon Sep 17 00:00:00 2001 From: Jeff Date: Mon, 8 Jul 2024 19:48:08 -0400 Subject: [PATCH] Roll back slightly and add to more prices --- config.toml | 21 +++++++++++++++------ src/bot.rs | 2 ++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/config.toml b/config.toml index e2d7af0..1dd8e26 100644 --- a/config.toml +++ b/config.toml @@ -1,6 +1,6 @@ character = "crabobot_test" -position = [17689.0, 14964.0, 238.0] -orientation = "East" +position = [17722.0, 14963.0, 237.0] +orientation = "West" [buy_prices] "common.items.food.cheese" = 50 @@ -17,18 +17,27 @@ orientation = "East" "common.items.armor.misc.head.boreal_warhelm" = 450_000 "common.items.armor.misc.head.cat_capuche" = 600_000 "common.items.armor.misc.head.hare_hat" = 100_000 -"common.items.armor.misc.head.winged_coronet" = 20_000 +"common.items.armor.misc.head.winged_coronet" = 40_000 -"common.items.consumable.potion_minor" = 150_000_000 +"common.items.crafting_ing.brinestone" = 2000 +"common.items.crafting_ing.coral_brach" = 1000 +"common.items.crafting_ing.dwarven_battery" = 40000 + +"common.items.consumable.potion_minor" = 150 "common.items.glider.skullgrin" = 20_000 +"common.items.log.eldwood" = 3000 + +"common.items.mineral.ingot.orichalcum" = 8000 + +"common.items.tool.instruments.icy_talharpa" = 500_000 "common.items.tool.instruments.steeltonguedrum" = 300_000 "common.items.weapons.axe.parashu" = 100_000 "common.items.weapons.sword.caladbolg" = 100_000 -"common.items.weapons.staff.laevateinn" = 50_000 +"common.items.weapons.staff.laevateinn" = 60_000 "common.items.weapons.hammer.mjolnir" = 100_000 -"common.items.weapons.sceptre.caduceus" = 100_000 +"common.items.weapons.sceptre.caduceus" = 150_000 "common.items.lantern.geode_purple" = 20_000 diff --git a/src/bot.rs b/src/bot.rs index cbb2351..f2222d6 100644 --- a/src/bot.rs +++ b/src/bot.rs @@ -102,6 +102,7 @@ impl Bot { }) } + // Run the bot for a single tick. This should be called in a loop. pub fn tick(&mut self) -> Result<(), String> { let veloren_events = self .client @@ -148,6 +149,7 @@ impl Bot { Ok(()) } + // Consume and manage a client-side Veloren event. fn handle_veloren_event(&mut self, event: VelorenEvent) -> Result<(), String> { match event { VelorenEvent::Chat(message) => {