Jump to content

book_research_station variable name inconsistent.


adai1198
  • Closed

$ grep -irnE '"_?tempbonus"'


components/builder.lua:24:        t[string.lower(v).."_tempbonus"] = function(self, bonus) self.inst.replica.builder:SetTempTechBonus(string.lower(v), (bonus or 0)) end
components/builder.lua:154:        local tempbonus = self[string.lower(v).."_tempbonus"]
components/builder.lua:170:        self[string.lower(k).."_tempbonus"] = v
components/builder.lua:189:            if self[string.lower(v).."_tempbonus"] ~= nil then
components/builder.lua:190:                self[string.lower(v).."_tempbonus"] = nil
components/builder.lua:273:            self.accessible_tech_trees[v] = (self[string.lower(v).."_tempbonus"] or 0) + (self[string.lower(v).."_bonus"] or 0)
components/builder.lua:279:                                            (self[string.lower(v).."_tempbonus"] or 0) +
components/builder.lua:725:            if recipe.level[v] > ((self[string.lower(v).."_bonus"] or 0) + (self[string.lower(v).."_tempbonus"] or 0)) then
components/builder_replica.lua:52:            local tempbonus_netvar = self.classified[string.lower(v).."tempbonus"]
components/builder_replica.lua:77:              local netvar = self.classified[string.lower(tech).."tempbonus"]
components/builder_replica.lua:255:                local tempbonus = self.classified[string.lower(v).."tempbonus"]
prefabs/player_classified.lua:1238:        local tempbonus = net_tinybyte(inst.GUID, "builder."..string.lower(v).."tempbonus")
prefabs/player_classified.lua:1239:             inst[string.lower(v).."tempbonus"] = tempbonus

 

Inconsistent temp bonus name (extra underscore symbol) makes the tech book no able to work as expected.

Either "_tempbonus" or "tempbonus" should fix it. 

You know what to do. :)

 

Best,
adai1198


Steps to Reproduce

c_spawn("book_research_station")

Read it.

Craft any item to unlock the recipe.

The bonus counter doesn't decrease, the buff is still there.

  • Like 2



User Feedback


There are no comments to display.



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