Skip to content

Commit

Permalink
app: no bandits in poe2
Browse files Browse the repository at this point in the history
  • Loading branch information
Dav1dde committed Jan 3, 2025
1 parent 7ad898e commit 4496a80
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions app/src/pob/summary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -322,15 +322,17 @@ pub fn config(pob: &impl PathOfBuilding) -> Vec<Element<'_>> {
pub fn choices(pob: &impl PathOfBuilding) -> Vec<Element<'_>> {
let mut elements = Vec::with_capacity(2);

let bandit = pob
.bandit()
.map(|bandit| bandit.name())
.unwrap_or("Kill All");
if pob.game_version().is_poe1() {
let bandit = pob
.bandit()
.map(|bandit| bandit.name())
.unwrap_or("Kill All");

Element::new("Bandit")
.color(AMBER_50)
.stat_str(Some(bandit))
.add_to(&mut elements);
Element::new("Bandit")
.color(AMBER_50)
.stat_str(Some(bandit))
.add_to(&mut elements);
}

let pantheons = [
pob.pantheon_major_god().map(|god| god.name()),
Expand Down

0 comments on commit 4496a80

Please sign in to comment.