F1rrel / RenewedVillageGrowth

RVG is a Game Script that manages towns growth in a new and balanced way, making growth depend on varied cargo delivery (passengers, food, goods, ...) and sustained transportation of passangers and mails. The script supports Baseset, FIRS, ECS, YETI and NAIS industries. It is born as a combination of keoz's Renewed City Growth GS and Sylf's City Growth Limiter GS.
GNU General Public License v2.0
8 stars 15 forks source link

Add: Probability to use nearby cargo types #108

Closed F1rrel closed 1 year ago

F1rrel commented 2 years ago

This feature is used to specify the probability of choosing a nearby cargo type / industry type instead of a random one. Added new parameter Randomization: Probability to use nearby cargo types [%], which specifies the % chance of chosing nearby compared to random cargo type.

Cargo randomization: For each town, a list of nearest industries is created. From these industries, a cargo list is created for each cargo category based on used economy. These cargo lists specify which cargo types are near that town and to which category they belong. When randomizing cargo categories, based on the probability parameter, cargo from near cargo types is chosen compared to random cargo type. If there are no near cargo types for that category, random cargo type is chosen.

Industry randomization: For each town, a list of nearest industries is created. These industries are then converted to industry types and split into their specific categories, removing duplicates. When chosing random industry type, when a near industry type exists for that category, based on the probability parameter, the near industry is chosen.