Improved animal system

  • Improved animal system
KingMods Logo
Published by KingMods
Claim this mod
V1.0.0.0
22 212

This script adjusts three points:

1. Animals no longer have a single animal as offspring, but specifically several for the respective animal species (with dispersion)

2. Stables can be overcrowded with offspring, but this has an impact on animal health.
Alternatively, animals that no longer fit in the barn can be sold directly.
This can be set in the animal menu (see screenshot).

3. Animals that are too old die randomly

Most values ​​can be set via xml parameters. In order to remain realistic, the prices of the respective animals must be adjusted, otherwise the profit will be multiplied.

More detailed explanation:

to 1.)
By default, the following values ​​are set for offspring. However, these can be set in the settings XML.

cows:
0 animals -> probability with 1%
1 animal -> probability with 98%
2 animals -> probability with 1%

pigs:
8 animals -> probability with 20%
9 animals -> probability with 20%
10 animals -> probability with 20%
11 animals -> probability with 20%
12 animals -> probability with 20%

sheep:

0 animals -> probability with 1%
1 animal -> probability with 59%
2 animals -> probability with 30%
3 animals -> probability with 10%

horses:
0 animals -> probability with 1%
1 animal -> probability with 98%
2 animals -> probability with 1%

Chicken:

9 animals -> probability with 20%
10 animals -> probability with 20%
11 animals -> probability with 20%
12 animals -> probability with 20%
13 animals -> probability with 20%


to 2.)
There are two modes that can be set in the stable menu (see screenshot)

mode 1.)
When a barn is full and new animals are born, they are sold directly. The normal price of the animal is taken from the game/map minus 25% (adjustable in the XML settings) of the transport costs. It is important to note that chickens are worth €0 if they have just been born.

mode 2.)
Allow overcrowding in a stable. By default, this is possible up to 100% (adjustable in XML Settings). A barn with 100 places can accommodate 200 animals. But this is only possible by births and not by the purchase of new animals! This mode is intended so that you can then distribute the new animals yourself to other stables. If a barn is overcrowded, it has an impact on animal health. Here, the maximum health value of animals is set directly at a maximum of 90% and decreases every hour depending on overpopulation. It goes from 0 to 5%. This means that if there is minimal overpopulation, only health stagnates. In the worst case, this decreases by 5% per hour.

to 3.)
Old animals die with a 5% chance (adjustable in XML Settings). This is calculated once a month once the animal has reached its maximum age. Default values ​​are defined as follows (can also be adjusted in XML settings).

Cows 300 months or 25 years old
Pigs 180 months or 15 years
Sheep 144 months or 12 years
Horses 360 months or 30 years
Chickens 180 months or 15 years

Server
Consoles
Changelog
1
Credits
  • Chissel
Comments
3