MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetRemovalCost

Method GetRemovalCost

src/industry_cmd.cpp:3216–3219  ·  view source on GitHub ↗

* Get the cost for removing this industry * Take note that the cost will always be zero for non-grf industries. * Only if the grf author did specified a cost will it be applicable. * @return the cost (inflation corrected etc) */

Source from the content-addressed store, hash-verified

3214 * @return the cost (inflation corrected etc)
3215 */
3216Money IndustrySpec::GetRemovalCost() const
3217{
3218 return (_price[PR_CLEAR_INDUSTRY] * this->removal_cost_multiplier) >> 8;
3219}
3220
3221/**
3222 * Determines whether this industrytype uses standard/newgrf production changes.

Callers 1

ClearTile_IndustryFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected