Zyllos / tts_ftc_base_lua_scripts

FTC Map Base Lua Scripts
3 stars 2 forks source link

Actions missing from objective tooltips #38

Open ThePants999 opened 3 years ago

ThePants999 commented 3 years ago

The JSON definitions for secondary objectives can have an embedded "actions" array. When you spawn cards for an objective, that results in spawning one card for the objective itself and one card for each action, which is great.

However, the tooltip for that objective on the score sheet only contains the objective text and not the action text. This makes it significantly less useful for such objectives, as unless you spawn cards for the objectives, you don't have a reference for rules like which units can perform the action or when it completes.

ThePants999 commented 3 years ago

I think the fix here is in 9e/TTSLUA/9eScoreSheet.ttslua - think line 604 just needs a bit more added to it to look at child actions.

Also, loooool @ line 601.