Open Darxo opened 2 years ago
If you wanna make a PR @Darxo feel free btw, would make it easier to review the code and make specific suggestions. Also when writing code in issues you can use ```squirrel to make your code highlight properly.
Overall though I quite like this suggestion.
For making PR I'd suggest waiting until we release 1.0.0 as we have to merge lots of stuff into main yet which will completely change how MSU is organized.
Enduriel @.***> schrieb am Fr., 8. Apr. 2022, 08:32:
If you wanna make a PR @Darxo https://github.com/Darxo feel free btw, would make it easier to review the code and make specific suggestions. Also when writing code in issues you can use ```squirrel to make your code highlight properly.
Overall though I quite like this suggestion.
— Reply to this email directly, view it on GitHub https://github.com/Battle-Brothers-Legends/mod_MSU/issues/90#issuecomment-1092544085, or unsubscribe https://github.com/notifications/unsubscribe-auth/AND7N4EXNGNPNJ6KJTWMO3TVD7OJ3ANCNFSM5S3K5QGA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
At the same time, getLocalCombatProperties
of world_state should receive the same treatment.
The current 'showCombatDialog' is a 260 line mess of a function if you want to hook into its behaviour.
Specific examples of possible subfunctions:
function getInvolvedParties(_position)
it would essentially consist of the following vanilla code:
function genEntityUIArray(_championArray, _entitiyTypeArray)
it would essentially consist of the following vanilla code