From 755ae8512bfe3ff39a55c22a958e15399e886c5f Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 30 Dec 2021 21:20:46 +0100 Subject: entities can now have descriptions --- src/room.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/room.rs') diff --git a/src/room.rs b/src/room.rs index e629791..f6e2613 100644 --- a/src/room.rs +++ b/src/room.rs @@ -70,6 +70,7 @@ use crate::{ SpawnTrigger, Replace, SpawnCheck, + Describe } }; @@ -106,7 +107,7 @@ impl Room { world.insert(NewEntities::new(encyclopedia)); register_insert!( world, - (Position, Visible, Controller, Movable, New, Removed, Moved, Player, Inventory, Health, Serialise, RoomExit, Entered, TriggerBox, Trap, Fighter, Healing, ControlCooldown, Autofight, MonsterAI, AttackInbox, Item, Spawner, Clan, Faction, Interactable, Loot, Timer, TimeOffset, Flags, Ear, Build, Whitelist, Minable, LootHolder, OnSpawn, Substitute, Stats, Requirements), + (Position, Visible, Controller, Movable, New, Removed, Moved, Player, Inventory, Health, Serialise, RoomExit, Entered, TriggerBox, Trap, Fighter, Healing, ControlCooldown, Autofight, MonsterAI, AttackInbox, Item, Spawner, Clan, Faction, Interactable, Loot, Timer, TimeOffset, Flags, Ear, Build, Whitelist, Minable, LootHolder, OnSpawn, Substitute, Stats, Requirements, Description), (Ground, Input, Output, Size, Spawn, Players, Emigration, Time, RoomFlags) ); @@ -156,6 +157,7 @@ impl Room { SpawnCheck.run_now(&self.world); ControlInput.run_now(&self.world); ControlAI.run_now(&self.world); + Describe.run_now(&self.world); Take.run_now(&self.world); Use.run_now(&self.world); Interact.run_now(&self.world); -- cgit