Skip to content
This repository has been archived by the owner on Nov 26, 2020. It is now read-only.

Commit

Permalink
Split out fuel cost calculation from general MP.
Browse files Browse the repository at this point in the history
Fixed #70.
  • Loading branch information
Christopher Peplin committed Oct 22, 2010
1 parent 63b560e commit e61362e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/models/generator_type.rb
Expand Up @@ -28,6 +28,10 @@ def renewable?
end

def marginal_cost game, operating_level=100
marginal_fuel_cost(game, operating_level)
end

def marginal_fuel_cost game, operating_level=100
marginal_fuel(operating_level) * game.current_price(fuel_type.market)
end

Expand Down

0 comments on commit e61362e

Please sign in to comment.