Skript icon indicating copy to clipboard operation
Skript copied to clipboard

Loudly Failing 🗣️ Part: Effects

Open cheeezburga opened this issue 11 months ago • 6 comments

Description

This PR implements SyntaxRuntimeErrorProducer on all relevant effects, with highlighting where possible and necessary, and generally cleans up/updates them to use modern conventions.

There were a few effects I left as is, as I thought they'd be overhauled sometime soon, or there was a significant recent PR changing them. Examples of these are: EffBan, EffVisualEffect, EffVehicle, etc.

I think the way these are implemented looks nice for the user, and displays relevant information, but opinions are more than welcome on this! I also think I changed standards half way through the PR, so I'll go back and update some of the first ones if there's no problems with the format.


Target Minecraft Versions: any Requirements: none Related Issues: none

cheeezburga avatar Jan 09 '25 09:01 cheeezburga

Since you basically have almost all effects implementing SyntaxRuntimeErrorProducer, do you think it would be worth just making Effect.class implement it instead?

Absolutionism avatar Jan 09 '25 21:01 Absolutionism

Do you think there might be a way to do the getnode stuff in a syntax superclass rather than in each one?

I was thinking this too, but I'm not entirely sure. This seems like kind of thing that @sovdeeth wouldve thought about while designing this system, so would love to hear his thoughts.

cheeezburga avatar Jan 09 '25 21:01 cheeezburga

Short answer: no Long answer: https://discord.com/channels/135877399391764480/836220422223036467/1327037996318457927

sovdeeth avatar Jan 09 '25 22:01 sovdeeth

@cheeezburga Just for clarity, Sovde was answering about my comment of implementing it straight into Effect.class and not about what you and Kenzie were referencing.

Absolutionism avatar Jan 09 '25 22:01 Absolutionism

I'm talking about both of you

sovdeeth avatar Jan 09 '25 22:01 sovdeeth

Do you still intend to work on this?

sovdeeth avatar Jun 03 '25 05:06 sovdeeth