diff options
| author | troido <troido@protonmail.com> | 2020-04-16 10:54:23 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-16 10:54:23 +0200 |
| commit | 905c6b649521296bba609db5b5c9a39008d34325 (patch) | |
| tree | 8d253de507b3663399e23819bf8b4a222e7b64a5 /src/room.rs | |
| parent | 43bde225ebbadd0b917ca87f3164a50455a2b588 (diff) | |
add visit whitelist to homeportal, save and dedup its data even though it is loaded from template
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 c9fb525..01a299a 100644 --- a/src/room.rs +++ b/src/room.rs @@ -66,12 +66,14 @@ use crate::{ DropLoot, Timeout, Clear, - Building + Building, + Deduplicate } }; pub fn default_dispatcher<'a, 'b>() -> Dispatcher<'a, 'b> { DispatcherBuilder::new() + .with(Deduplicate, "deduplicate", &[]) .with(Timeout, "timeout", &[]) .with(UpdateCooldowns, "cool_down", &[]) .with(Spawn, "spawn", &[]) @@ -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, ControlCooldown, Autofight, MonsterAI, Home, AttackInbox, Item, Spawner, Clan, Faction, Interactable, Loot, Timer, Equipment, TimeOffset, Flags, Ear, Build, Whitelist), + (Position, Visible, Controller, Movable, New, Removed, Moved, Player, Inventory, Health, Serialise, RoomExit, Entered, TriggerBox, Trap, Fighter, Healing, ControlCooldown, Autofight, MonsterAI, Home, AttackInbox, Item, Spawner, Clan, Faction, Interactable, Loot, Timer, Equipment, TimeOffset, Flags, Ear, Build, Whitelist, Dedup), (Ground, Input, Output, Size, Spawn, Players, Emigration, Time) ); |
