Rename Teleport to Boost

This commit is contained in:
timokoesters 2019-08-29 19:42:25 +02:00
parent 075827698f
commit 512d2d9a8e
No known key found for this signature in database
GPG Key ID: CD80BE9AAEE78097
3 changed files with 3 additions and 3 deletions

View File

@ -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)]

View File

@ -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,

View File

@ -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,