From 9eff8fc0c43ed79d35356a4002ad80e7243af7e1 Mon Sep 17 00:00:00 2001 From: timokoesters Date: Thu, 29 Aug 2019 19:42:25 +0200 Subject: [PATCH] Rename Teleport to Boost --- common/src/comp/inventory/item.rs | 2 +- common/src/comp/inventory/mod.rs | 2 +- common/src/sys/controller.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/src/comp/inventory/item.rs b/common/src/comp/inventory/item.rs index 326d8aca92..deb885dad6 100644 --- a/common/src/comp/inventory/item.rs +++ b/common/src/comp/inventory/item.rs @@ -78,7 +78,7 @@ pub enum ConsumptionEffect { #[derive(Copy, Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] pub enum Debug { - Teleport, + Boost, } #[derive(Clone, Debug, PartialEq, Eq, Hash, Serialize, Deserialize)] diff --git a/common/src/comp/inventory/mod.rs b/common/src/comp/inventory/mod.rs index 91fe4090f0..f4122fd17b 100644 --- a/common/src/comp/inventory/mod.rs +++ b/common/src/comp/inventory/mod.rs @@ -72,7 +72,7 @@ impl Default for Inventory { slots: vec![None; 24], }; - inventory.push(Item::Debug(Debug::Teleport)); + inventory.push(Item::Debug(Debug::Boost)); inventory.push(Item::Tool { kind: Tool::Daggers, power: 10, diff --git a/common/src/sys/controller.rs b/common/src/sys/controller.rs index 032d9dc1b2..b9e0b1db4f 100644 --- a/common/src/sys/controller.rs +++ b/common/src/sys/controller.rs @@ -137,7 +137,7 @@ impl<'a> System<'a> for Sys { character.action = Idle; } } - Some(Item::Debug(item::Debug::Teleport)) => { + Some(Item::Debug(item::Debug::Boost)) => { if controller.main { local_emitter.emit(LocalEvent::Boost { entity,