Such a complicated thing to do! I created custom global block and I replaced all local variables with game attributes and wen testing it it says: I cannot find method getGameAttribute()
?
Some of the output:
Behavior: Design_391_391_SceneHelper at line 43
Call to a possibly undefined method setGameAttribute.
setGameAttribute("deckType", Number((getGameAttribute("deckTypeList") as Array)[randomInt(Math.floor(0), Math.floor(2))]));
Behavior: Design_391_391_SceneHelper at line 43
Call to a possibly undefined method getGameAttribute.
setGameAttribute("deckType", Number((getGameAttribute("deckTypeList") as Array)[randomInt(Math.floor(0), Math.floor(2))]));
Behavior: Design_391_391_SceneHelper at line 43
Call to a possibly undefined method randomInt.
setGameAttribute("deckType", Number((getGameAttribute("deckTypeList") as Array)[randomInt(Math.floor(0), Math.floor(2))]));
Behavior: Design_391_391_SceneHelper at line 48
Call to a possibly undefined method setGameAttribute.
setGameAttribute("deckType", Number((getGameAttribute("deckTypeList") as Array)[randomInt(Math.floor(2), Math.floor(5))]));
Behavior: Design_391_391_SceneHelper at line 48
Call to a possibly undefined method getGameAttribute.
setGameAttribute("deckType", Number((getGameAttribute("deckTypeList") as Array)[randomInt(Math.floor(2), Math.floor(5))]));
Behavior: Design_391_391_SceneHelper at line 48
Call to a possibly undefined method randomInt.
setGameAttribute("deckType", Number((getGameAttribute("deckTypeList") as Array)[randomInt(Math.floor(2), Math.floor(5))]));
Behavior: Design_391_391_SceneHelper at line 53
Call to a possibly undefined method setGameAttribute.
setGameAttribute("deckType", Number((getGameAttribute("deckTypeList") as Array)[randomInt(Math.floor(6), Math.floor(12))]));
Behavior: Design_391_391_SceneHelper at line 53
Call to a possibly undefined method getGameAttribute.
setGameAttribute("deckType", Number((getGameAttribute("deckTypeList") as Array)[randomInt(Math.floor(6), Math.floor(12))]));
Behavior: Design_391_391_SceneHelper at line 53
Call to a possibly undefined method randomInt.
setGameAttribute("deckType", Number((getGameAttribute("deckTypeList") as Array)[randomInt(Math.floor(6), Math.floor(12))]));