From 53eac9d710279e341cf01c676c5a7309ad700030 Mon Sep 17 00:00:00 2001 From: Timothy Warren Date: Fri, 21 Jan 2022 15:13:31 -0500 Subject: [PATCH] Add ProvidesIdentification tag component --- src/components/tags.rs | 3 +++ src/main.rs | 1 + src/saveload_system.rs | 2 ++ 3 files changed, 6 insertions(+) diff --git a/src/components/tags.rs b/src/components/tags.rs index 7714d0a..500574e 100644 --- a/src/components/tags.rs +++ b/src/components/tags.rs @@ -48,3 +48,6 @@ pub struct CursedItem {} #[derive(Component, Debug, Serialize, Deserialize, Clone)] pub struct ProvidesRemoveCurse {} + +#[derive(Component, Debug, Serialize, Deserialize, Clone)] +pub struct ProvidesIdentification {} diff --git a/src/main.rs b/src/main.rs index c42cbcb..a5a7da7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -97,6 +97,7 @@ fn init_state() -> State { Position, ProvidesFood, ProvidesHealing, + ProvidesIdentification, ProvidesRemoveCurse, Quips, Ranged, diff --git a/src/saveload_system.rs b/src/saveload_system.rs index dde28e1..ed6f0af 100644 --- a/src/saveload_system.rs +++ b/src/saveload_system.rs @@ -102,6 +102,7 @@ pub fn save_game(ecs: &mut World) { Position, ProvidesFood, ProvidesHealing, + ProvidesIdentification, ProvidesRemoveCurse, Quips, Ranged, @@ -221,6 +222,7 @@ pub fn load_game(ecs: &mut World) { Position, ProvidesFood, ProvidesHealing, + ProvidesIdentification, ProvidesRemoveCurse, Quips, Ranged,