aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index ecdc876..cbfaf2e 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -743,6 +743,11 @@ impl Log {
self.agents.iter().filter_map(|a| a.as_character())
}
+ /// Return an iterator over all agents that are gadgets.
+ pub fn gadgets(&self) -> impl Iterator<Item = &Agent<Gadget>> {
+ self.agents.iter().filter_map(|a| a.as_gadget())
+ }
+
/// Return the boss agent.
///
/// Be careful with encounters that have multiple boss agents, such as Trio