/* static */ bool AIIndustryType::ProspectIndustry(IndustryType industry_type) { EnforcePrecondition(false, CanProspectIndustry(industry_type)); uint32 seed = ::InteractiveRandom(); return AIObject::DoCommand(0, industry_type, seed, CMD_BUILD_INDUSTRY); }
/* static */ bool ScriptIndustryType::ProspectIndustry(IndustryType industry_type) { EnforcePrecondition(false, ScriptObject::GetCompany() != OWNER_DEITY); EnforcePrecondition(false, CanProspectIndustry(industry_type)); uint32 seed = ::InteractiveRandom(); return ScriptObject::DoCommand(0, industry_type, seed, CMD_BUILD_INDUSTRY); }