melia icon indicating copy to clipboard operation
melia copied to clipboard

Quarrel Shooter's skills, except Pavise

Open Terotrous opened this issue 1 year ago • 6 comments

Pavise is so complex and affects so many classes that it will have to be a separate PR.

Terotrous avatar Nov 17 '24 00:11 Terotrous

Thanks for the PR. And it's absolutely fine to put Pavise into a separate PR if it's overly complex, but I looked it up out of curiosity. It appears to be a kind of barrier and potentially "attack sponge," do I have that right?

Deploy Pavise Set up an upright shield to protect yourself from enemy attacks. Enemies without a target will attack the pavise instead.

Based on your wording, I guess the assumption is that we would include special handling in all (ranged?) skills for this? If so, that seems like a maintenance nightmare 🤔 Do you have any more information on the skill and its behavior? Unfortunately I couldn't find any videos exploring how the skill works in detail, but it seems like it could potentially be handled as a buff, modifier, or combat event, where damage is automatically redirected towards the presumed shield monster. Would that seem like a viable implementation?

exectails avatar May 23 '25 20:05 exectails

The Pavise essentially blocks attacks if it is between you and the source of the attack. The way I believe this would work is something along the lines of "draw a line from the origin point of the attack's hitbox to the target. If there is a Pavise in the way, the Pavise blocks the hit". I had some ideas for how this could feasibly be implemented before but I've kind of forgotten them, maybe I wrote it in the chat history. I also think that possibly Kenedos may have implemented this skill in Laima.

Terotrous avatar May 23 '25 21:05 Terotrous

In that case it would have to be incorporated into the target finding I guess. We do not want to have to implement this into every skill handler, and we already have a mostly streamlined method for finding targets. We'll just need to check for potential obstacles between the attacker and the target.

exectails avatar May 25 '25 20:05 exectails

For sure, I was instead thinking of the skills that would instead bypass this special logic, of which there will unquestionably be some.

Terotrous avatar May 26 '25 07:05 Terotrous

Do we have any examples of such cases yet? Though if we assume that a handful of skills will simply ignore obstacles, it should be fairly simple to handle these situations on a handler to handler basis, since they ultimately have the control over how they get their targets.

exectails avatar May 26 '25 07:05 exectails

I feel like I did know of some, but I've been away from it for so long that I've forgotten them, but I agree that these skill handlers will likely just need some special code to ignore the pavise block.

Terotrous avatar May 26 '25 07:05 Terotrous