Cities: Skylines

Cities: Skylines

Difficulty Tuning
roberto tomás  [developer] 2 Oct, 2015 @ 9:22am
Adding compatibility to Extended Building Info
Extended Building Info mod tries to give people a sense of what a building needs to level up. The result are panels much like this one

It currently hard-codes service/land value requirements into its projection of building requirements. This means that even using the Hard Mode mod that comes with the game will cause it to be inaccurate.

It does that here[github.com] in the public int GetServiceThreshhold function, with code like this:
case ItemClass.Zone.Office:
if (level == ItemClass.Level.None)
{
return 0;
}
else if (level == ItemClass.Level.Level1)
{
return 45;
}
else if (level == ItemClass.Level.Level2)
{
return 90;

}
else
{
return int.MaxValue;
}
case ItemClass.Zone.Industrial:
if (level == ItemClass.Level.None)
{
return 0;
}
else if (level == ItemClass.Level.Level1)
{
return 30;
}
else if (level == ItemClass.Level.Level2)
{
return 60;
}
else
{
return int.MaxValue;
}

How can it get these values dynamically? — preferably in a way that works with both this mod and others like the game's Hard Mode mod..

Any help would be appreaciated.
< >
Showing 1-1 of 1 comments
Zenya  [developer] 2 Oct, 2015 @ 6:21pm 
One way for other mods to get the land values is to read settings from DifficultyTuningModOptions.xml file.
Though I'm planning to do something about this. May be implement Extended Building into Difficulty Tuning Mod...
< >
Showing 1-1 of 1 comments
Per page: 1530 50