| 372 | } |
| 373 | |
| 374 | bool Industry::isMonthlyProductionUp() |
| 375 | { |
| 376 | auto* indObj = getObject(); |
| 377 | if (!indObj->hasFlags(IndustryObjectFlags::canIncreaseProduction)) |
| 378 | { |
| 379 | return false; |
| 380 | } |
| 381 | return producedCargoPercentTransportedPreviousMonth[0] > 70 |
| 382 | && gPrng1().randNext(31) == 0 |
| 383 | && dailyProductionTarget[0] < 100 |
| 384 | && dailyProductionTarget[1] < 100; |
| 385 | } |
| 386 | |
| 387 | bool Industry::isMonthlyProductionDown() |
| 388 | { |