Skip to content

Commit

Permalink
PR Code Style Requests
Browse files Browse the repository at this point in the history
  • Loading branch information
ryandriskel committed Oct 28, 2020
1 parent 2b0679e commit 180fa31
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/engine/game/g_18_co.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def mines_count(entity)
end

def mine_multiplier(entity)
entity.abilities(:mine_multiplier).collect(&:count_per_or).reject(&:zero?).inject(1, :*)
entity.abilities(:mine_multiplier).map(&:count_per_or).reject(&:zero?).reduce(1, :*)
end

def mines_total(entity)
Expand Down
2 changes: 1 addition & 1 deletion lib/engine/step/g_18_co/track.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def process_lay_tile(action)
lay_tile_action(action)

# Mine Token Collection
unless action.hex.tile.icons.select { |icon| icon.name == 'mine' }.empty?
if action.hex.tile.icons.map(&:name).include?('mine')
# Remove mine symbol from hex
action.hex.tile.icons.reject! { |icon| icon.name == 'mine' }

Expand Down

0 comments on commit 180fa31

Please sign in to comment.