Roll back slightly and add to more prices

This commit is contained in:
Jeff 2024-07-08 19:48:08 -04:00
parent 43d08060c4
commit 612451142d
2 changed files with 17 additions and 6 deletions

View File

@ -1,6 +1,6 @@
character = "crabobot_test" character = "crabobot_test"
position = [17689.0, 14964.0, 238.0] position = [17722.0, 14963.0, 237.0]
orientation = "East" orientation = "West"
[buy_prices] [buy_prices]
"common.items.food.cheese" = 50 "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.boreal_warhelm" = 450_000
"common.items.armor.misc.head.cat_capuche" = 600_000 "common.items.armor.misc.head.cat_capuche" = 600_000
"common.items.armor.misc.head.hare_hat" = 100_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.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.tool.instruments.steeltonguedrum" = 300_000
"common.items.weapons.axe.parashu" = 100_000 "common.items.weapons.axe.parashu" = 100_000
"common.items.weapons.sword.caladbolg" = 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.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 "common.items.lantern.geode_purple" = 20_000

View File

@ -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> { pub fn tick(&mut self) -> Result<(), String> {
let veloren_events = self let veloren_events = self
.client .client
@ -148,6 +149,7 @@ impl Bot {
Ok(()) Ok(())
} }
// Consume and manage a client-side Veloren event.
fn handle_veloren_event(&mut self, event: VelorenEvent) -> Result<(), String> { fn handle_veloren_event(&mut self, event: VelorenEvent) -> Result<(), String> {
match event { match event {
VelorenEvent::Chat(message) => { VelorenEvent::Chat(message) => {