Ronkhar
Warlord
Welcome back, Morkonan.
Have a great trip in Erebus
Since I didn't know at all how the Crime Rate works, I just investigated the related code.
And here is what I understood:
The player cities have a crime rate value that depends on several values:
If your crime rate is higher than the prereq, the criminal event can be triggered.
Your crime rate is not accessed by the code after that, so it can't affect the outcome of the event.
I hope that answers your questions.
Have a great trip in Erebus
Mordax's Guide said:Certain events occur based on what your Crime Rate is, according to the developers these events aren't supposed to be worse for you on average with a high crime rate (it's more of a flavour thing), but I find they tend to cost money, and destroy buildings and improvements.
Since I didn't know at all how the Crime Rate works, I just investigated the related code.
And here is what I understood:
The player cities have a crime rate value that depends on several values:
- buildings with crime rate modifier (xml field <iCrime>, C++ value m_iCrim and C++ functions getCrime and changeCrime)
- base city crime rate
- world crime rate
- events
- ...
If your crime rate is higher than the prereq, the criminal event can be triggered.
Code:
if (kTrigger.getPrereqCrime() != 0)
{
if (getCrime() < kTrigger.getPrereqCrime())
{
return MIN_INT;
}
}
Your crime rate is not accessed by the code after that, so it can't affect the outcome of the event.
I hope that answers your questions.