-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update variables for Flash lua function. #19943
Conversation
Are there any usages of the function that need updating? |
|
It would still be better to have a method with the old signature and a deprecation warning. |
Old method was broken a good while ago, there is no longer a duration variable to give to FlashTarget effect to make it actually work and it was being passed as Alpha value. I don't see any point on keeping it as broken and not sure how fixed one would work there. |
Yes, it wouldn't work properly. But since we can't lint/update Lua scripts automatically changing the signature will crash scripts during execution with a more or less helpful message. Therefore we usually used deprecation. I'm also not convinced this worth the effort here, but it'd still be "nicer"/better to have it. |
b610b4e
to
40c010b
Compare
Updated. |
Ah crap, now we get an error on the shellmap of RA: |
d125bab
to
6615e00
Compare
6615e00
to
b5ac5f0
Compare
Updated. |
Another issue that was reported on #19920. The variables doesn't match the effect and Duration was being passed as alpha. I couldn't find any use of this in base mods, i assume that's why the issue wasn't found out so far.
Also replaced asPlayer with just Color, you can just use Player.Color as color variable.
I asked on Discord about float variables, it seems to be currently not possible in Lua so i left the Alpha value as the default 0.5f instead of making it settable.