Ради вашего удобства наш сайт использует cookies! Узнать больше! Мы используем cookies

Run away, Stupid!

TL;DR: 1. Kids will try to avoid tox gas when not drafted by either running away (like if an enemy came too close) or running to their bedrooms/other colonists. 2. Kids will try to avoid floordrawing and skydreaming in dangerous temperatures. Nature-running already has a temperature check built into it. 3. Kids won't nature-run or skydream if there are predators on the map which are large enough to make prey of said kid. They should make this check at the start of nature-running as well as after every leg of their run. There is an option you can enable (It's disabled by default) which will further check and see if any of those predators can reach their naturerunning or skydreaming target location. If the predators are present but can't reach those targets, then the kids will naturerun and skydream anyways. This won't stop the kid from passing through an area on their way to the target which the predator can reach but I do not think this is a very common occurrence. Description: Tua thinks other kids shouldn't hang around in tox gas! Makes kids run away from tox gas if they aren't drafted and aren't immune/resistant to it. They will first try to run a short distance to a tile without gas. If they can't find one (There's too much gas around), they will try to run to their bedroom. If that fails, they'll run towards the nearest colonist that isn't in tox gas. If that fails, they will basically look a long distance to try and find a place to run. That doesn't have great performance though so it should happen very rarely. Kids will also check for the temperature of an area where they want to floordraw or skydream before they do it, so hopefully this stops them from freezing to death because of it in most cases. It's possible they could make that check, go to floordraw or skydream, and the temperature goes out below their comfortable range but there's not an easy way to check that. Lastly, kids won't nature-run or skydream if there are dangerous predators on the map. Each predator has a "size of creature I will prey on" stat, so that is compared with the child's size. You can check an option which will see if predators have a path to the skydreaming or naturerunning location and only cancel the job if they do, rather than if there are just predators on the map which is the default. Not finished yet. There's a bunch of extra logging and probably some performance stuff to fix. You can toggle on or off pretty much everything as you desire, including the warning messages that will pop up on the screen when one of the danger conditions triggers. TODO: 1. Check if enemies are on the map before nature-running or skydreaming.