- Apr 19, 2022
- 248
- 372
I'm confused what actually happened here. Firstly the lineive fucked something up (SugarCube.State.variables.commodities.gold = 0) and after i get free i get an error
tried to put it back but i get this as an answer:
SugarCube.State.variables.commodities.gold.Object { name: "Gold Ingots", type: "semi-stable", stable_price: 500, price: 500, mu_phase: 0, sigma_ratio: 0.1}
Uncaught SyntaxError: unexpected token: '{'
An error has occurred. You may be able to continue, but some parts may not work properly.
Error: <<set>>: bad evaluation: can't assign to property "stable_price" on 0: not an object.
Stack Trace:
value@https://www.mimusstudios.com/FCO/Play/:57410:146765
handler/<@https://www.mimusstudios.com/FCO/Play/:57410:218866
value/<@https://www.mimusstudios.com/FCO/Play/:57410:198706
oneClickFnWrapper/<@https://www.mimusstudios.com/FCO/Play/:57410:45856
onClickFnWrapper/<@https://www.mimusstudios.com/FCO/Play/:57410:45634
dispatch@https://www.mimusstudios.com/FCO/Play/:57:43064
add/v.handle@https://www.mimusstudios.com/FCO/Play/:57:41048
SugarCube.State.variables.commodities.gold.Object { name: "Gold Ingots", type: "semi-stable", stable_price: 500, price: 500, mu_phase: 0, sigma_ratio: 0.1}
should be
SugarCube.State.variables.commodities.gold = { name: "Gold Ingots", type: "semi-stable", stable_price: 500, price: 500, mu_phase: 0, sigma_ratio: 0.1} (that's why there's a syntax error).
But I'm unsure why you are modifying things on the console? What are you trying to accomplish?
Last edited: