diff options
| author | troido <troido@protonmail.com> | 2020-04-13 11:14:23 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-13 11:14:23 +0200 |
| commit | 9bc90bcff5bec4fbb03a568f59e14b1b016e0e44 (patch) | |
| tree | dfb9da2e9b5024aa34005dfe1796046e9b644d8c /src/room.rs | |
| parent | 9d6348a8c8d24bda6c229f72662c8eddc101e92b (diff) | |
doors now use new Build component instead of Loot
Diffstat (limited to 'src/room.rs')
| -rw-r--r-- | src/room.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/room.rs b/src/room.rs index c2edaf6..8e847cf 100644 --- a/src/room.rs +++ b/src/room.rs @@ -66,7 +66,8 @@ use crate::{ Interact, DropLoot, Growth, - Clear + Clear, + Building } }; @@ -88,6 +89,7 @@ pub fn default_dispatcher<'a, 'b>() -> Dispatcher<'a, 'b> { .with(Attacking, "attacking", &["use", "trapping", "fight", "heal", "interact"]) .with(Die, "die", &["attacking"]) .with(DropLoot, "droploot", &["attacking"]) + .with(Building, "building", &["attacking"]) .with(Migrate, "migrate", &["move", "attacking", "volate", "die"]) .build() } @@ -118,7 +120,7 @@ impl <'a, 'b>Room<'a, 'b> { 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, Volatile, ControlCooldown, Autofight, MonsterAI, Home, AttackInbox, Item, Spawner, Clan, Faction, Interactable, Loot, Grow, Equipment, CreationTime, Flags, Ear), + (Position, Visible, Controller, Movable, New, Removed, Moved, Player, Inventory, Health, Serialise, RoomExit, Entered, TriggerBox, Trap, Fighter, Healing, Volatile, ControlCooldown, Autofight, MonsterAI, Home, AttackInbox, Item, Spawner, Clan, Faction, Interactable, Loot, Grow, Equipment, CreationTime, Flags, Ear, Build), (Ground, Input, Output, Size, Spawn, Players, Emigration, Time) ); |
