hyiltiz Posted October 16, 2017 Share Posted October 16, 2017 In DST, you can use Bee Queen Crown to negate sanity aura, and evil flowers are easy to mass produce and place close enough to stack the aura. As discussed previously, this is very efficient. However, those calculations are beyond what the game actually cares about. According to `components/sanity.lua`, character's aura gain/loss is calculated based on a variable `TUNING.SANITY_EFFECT_RANGE` (it is set to 10 in `tuning.lua`); only entities within this range will contribute to aura calculation. Therefore, making a sanity station beyond this radius merely serves aesthetic purposes, or to provide larger center point for maximum sanity gain for multiple players to snuggle up in the center. local aura_delta = 0 local x, y, z = self.inst.Transform:GetWorldPosition() local ents = TheSim:FindEntities(x, y, z, TUNING.SANITY_EFFECT_RANGE, nil, { "FX", "NOCLICK", "DECOR","INLIMBO" }) for i, v in ipairs(ents) do if v.components.sanityaura ~= nil and v ~= self.inst then local aura_val = v.components.sanityaura:GetAura(self.inst) / math.max(1, self.inst:GetDistanceSqToInst(v)) aura_delta = aura_delta + (aura_val < 0 and (self.neg_aura_absorb > 0 and self.neg_aura_absorb * -aura_val or aura_val) * self.neg_aura_mult or aura_val) end end Link to comment https://forums.kleientertainment.com/forums/topic/83039-ultimate-sanity-station-with-maximum-efficiency/ Share on other sites More sharing options...
HamBatter Posted October 16, 2017 Share Posted October 16, 2017 He appears to have accounted for that. 10 radius * 2 diameter/radius / 0.75 regular spacing/flower spacing = 26 and 2/3 flower spacing diameter Link to comment https://forums.kleientertainment.com/forums/topic/83039-ultimate-sanity-station-with-maximum-efficiency/#findComment-964287 Share on other sites More sharing options...
hyiltiz Posted October 30, 2017 Author Share Posted October 30, 2017 that is about max diameter, not spacing Link to comment https://forums.kleientertainment.com/forums/topic/83039-ultimate-sanity-station-with-maximum-efficiency/#findComment-968508 Share on other sites More sharing options...
HamBatter Posted October 30, 2017 Share Posted October 30, 2017 simutil.lua uses that parameter in the context of radius: local ents = TheSim:FindEntities(x, y, z, radius, musttags, canttags, mustoneoftags) Link to comment https://forums.kleientertainment.com/forums/topic/83039-ultimate-sanity-station-with-maximum-efficiency/#findComment-968568 Share on other sites More sharing options...
CarlZalph Posted October 30, 2017 Share Posted October 30, 2017 Already accounted for that in the post. Quote Note the maximum radius is 10 units away for sanity to take effect on the player, and that the flower placements are 0.75 units away from each other in a grid with the player standing right in the center. Link to comment https://forums.kleientertainment.com/forums/topic/83039-ultimate-sanity-station-with-maximum-efficiency/#findComment-968680 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.