Don't Starve Revision History Viewer

Comparing Six Feet Under (Rev 86935) to All's Well That Maxwell (Rev 88237)

behaviours/findlight.lua

22232425262728
if self.status == RUNNING then if self.targ and self.targ:HasTag("fire") then local dsq = self.inst:GetDistanceSqToInst(self.targ)
22232425262728
if self.status == RUNNING then if self.targ and self.targ:HasTag("lightsource") then local dsq = self.inst:GetDistanceSqToInst(self.targ)
3940414243
end function FindLight:PickTarget() self.targ = GetClosestInstWithTag("fire", self.inst, SEE_DIST) end
3940414243
end function FindLight:PickTarget() self.targ = GetClosestInstWithTag("lightsource", self.inst, SEE_DIST) end