Jump to content

Smart battery is code wise assigned to 2 different Tech Research Nodes


Guinaro
  • Branch: Live Branch Version: Windows Fixed

While developing my mod to alter the Research Screen I noticed that the Smart Battery (in code: BatterySmart) is assigned

in Database.Techs in the part of public static Dictionary<string, string[]> TECH_GROUPING = new Dictionary<string, string[]>

To both  Acoustics

{
    "Acoustics",
    new string[]
    {
        "Phonobox",
        "BatterySmart",
        "PowerControlStation"
    }
},

and

{
  "GenericSensors",
  new string[]
  {
    LogicTimeOfDaySensorConfig.ID,
    LogicTimerSensorConfig.ID,
    "FloorSwitch",
    LogicElementSensorGasConfig.ID,
    LogicElementSensorLiquidConfig.ID,
    "BatterySmart",
    "LogicGateNOT"
  }
},

Code wise this runs fine, but if the code ever gets switched around and Generic Sensors is placed before Acoustics the Smart Battery will also switch places in the Research Tree, which may not be desirable.


Steps to Reproduce

Just check the code! See attached txt file to see the relevant part.




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...