|
@@ -29,12 +29,19 @@
|
|
|
{
|
|
|
if (!IsValidIndustryType(industry_type)) return false;
|
|
|
|
|
|
return ::GetIndustrySpec(industry_type)->IsRawIndustry();
|
|
|
}
|
|
|
|
|
|
/* static */ bool ScriptIndustryType::IsProcessingIndustry(IndustryType industry_type)
|
|
|
{
|
|
|
if (!IsValidIndustryType(industry_type)) return false;
|
|
|
|
|
|
return ::GetIndustrySpec(industry_type)->IsProcessingIndustry();
|
|
|
}
|
|
|
|
|
|
/* static */ bool ScriptIndustryType::ProductionCanIncrease(IndustryType industry_type)
|
|
|
{
|
|
|
if (!IsValidIndustryType(industry_type)) return false;
|
|
|
|
|
|
if (_settings_game.game_creation.landscape != LT_TEMPERATE) return true;
|
|
|
return (::GetIndustrySpec(industry_type)->behaviour & INDUSTRYBEH_DONT_INCR_PROD) == 0;
|