Jump to content

Chorusbox distance doesn't scale with more chorusboxes?


Hornete
  • Fixed

Unsure if this is a bug, so I'd like to get some confirmation.

Wx's Chorusbox module got a massive increase in the range of the sanity aura, which is awesome to see! However I'm confused if it's supposed to increase with two chorusboxes or not?

wx.components.sanityaura.max_distsq = (wx._music_modules * TUNING.WX78_MUSIC_AURADSQ) * (wx._music_modules * TUNING.WX78_MUSIC_AURADSQ)

The calculation for determining the sanity aura distance takes into account the amount of music modules Wx has equipped. HOWEVER...

if wx._music_modules == 1 then
        if wx.components.sanityaura == nil then
            wx:AddComponent("sanityaura")
            wx.components.sanityaura.aurafn = music_sanityaura_fn
            wx.components.sanityaura.fallofffn = music_sanityfalloff_fn
        end

        wx.components.sanityaura.max_distsq = (wx._music_modules * TUNING.WX78_MUSIC_AURADSQ) * (wx._music_modules * TUNING.WX78_MUSIC_AURADSQ)

        if wx._tending_update == nil then
            wx._tending_update = wx:DoPeriodicTask(TUNING.WX78_MUSIC_UPDATERATE, music_update_fn, 1)
        end

        wx.SoundEmitter:PlaySound("WX_rework/module/musicmodule_lp", "music_sound")
  ...

This calculation only runs when the amount of music modules passes 1. Which confuses me as to why it takes into account the amount of music modules for the sanity aura distance if it only ever runs when the amount of modules is 1? May I get a confirmation on whether or not the sanity aura range is supposed to increase with a 2nd circuit?


Steps to Reproduce

1. Put in two chorusbox circuits

2. Notice the sanity range doesn't increase.

  • Like 1
  • Big Ups 2



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

×
  • Create New...