Skip to content

Commit

Permalink
only activate_passive once per turn
Browse files Browse the repository at this point in the history
  • Loading branch information
Fris0uman committed Aug 21, 2020
1 parent b2be13c commit d30c9c1
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/item.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9400,16 +9400,6 @@ void item::process_relic( Character *carrier, const tripoint &pos )
active_enchantments.emplace_back( ench );
}
}

for( const enchantment &ench : active_enchantments ) {
ench.activate_passive( *carrier );
}

// Recalculate, as it might have changed (by mod_*_bonus above)
carrier->str_cur = carrier->get_str();
carrier->int_cur = carrier->get_int();
carrier->dex_cur = carrier->get_dex();
carrier->per_cur = carrier->get_per();
}

bool item::process_corpse( player *carrier, const tripoint &pos )
Expand Down

0 comments on commit d30c9c1

Please sign in to comment.