File diff r19581:a50f0b075c64 → r19582:dc0eafc8298f
src/script/api/script_industrytype.cpp
Show inline comments
 
@@ -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;