Herds never merge

  • Fixed
-- herd.lua
function Herd:MergeNearbyHerds()
    if not self.gatherrange or self:IsFull() then
    local x,y,z = self.inst.Transform:GetWorldPosition()
    local ents = TheSim:FindEntities(x,y,z, self.gatherrange, {"herd"})

    for k,v in pairs(ents) do 
        if v ~= self.inst
           and v.components.herd
           and v.components.herd.gathertag == self.membertag
           and v.components.herd.membercount < 4 and (self.membercount + v.components.herd.membercount) <= self.maxsize then
            for k2,v2 in pairs(v.components.herd.members) do

Notice the "gathertag". There's no other place in the code where a "gathertag" is mentioned.

Therefore, herds never merge.


NOTE: This applies to single player Don't Starve as well; I will mention it next patch time comes.

Steps to Reproduce
Spawn herds with nothing in them and watch them stay as is.

User Feedback

A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now