MCPcopy Create free account
hub / github.com/OpenLoco/OpenLoco / isMonthlyProductionUp

Method isMonthlyProductionUp

src/OpenLoco/src/World/Industry.cpp:374–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 2

hasFlagsMethod · 0.45
randNextMethod · 0.45

Tested by

no test coverage detected