"Ou" text does not turn grey when one of the two effects has been selected #11

Open
opened 2024-08-06 15:46:01 +00:00 by Erzangel · 5 comments
Owner
No description provided.
Erzangel added the bug label 2024-08-06 15:46:01 +00:00
Author
Owner

Should have been modified in

"v-bind:class": f"{{used:used_effects_indexes.length > 0}}"

To be tested!

Should have been modified in https://git.legonzaur.fr/heronfief/cards-gen/src/commit/67c525a65f1a87ef229cd0ea06cc8f92ab13ab6d/src/draw_functions.py#L377 To be tested!
Owner

I'm not entirely sure about what I'm going to say but I think this won't work if the card has, say, another effect than a mutex eg. : cirno

if you activate the faction combo effect, then the used_effects_indexes will be an array containing one value. However, the user still haven't made a choice, so we don't want to gray out the or

I'm not entirely sure about what I'm going to say but I think this won't work if the card has, say, another effect than a mutex eg. : cirno if you activate the faction combo effect, then the used_effects_indexes will be an array containing one value. However, the user still haven't made a choice, so we don't want to gray out the `or`
Author
Owner

fuck. he's right. then we should verify whether or not the used_effects contain a mutex then! (assuming cards only contain one)

not too sure on how to do that though

fuck. he's right. then we should verify whether or not the used_effects contain a mutex then! (assuming cards only contain one) not too sure on how to do that though
Owner

We could also check if used_effects_indexes contains the first index (or any index if easier) of the mutex effects

We could also check if `used_effects_indexes` contains `the first index` (or `any index` if easier) of the mutex effects
Owner

fuck. he's right. then we should verify whether or not the used_effects contain a mutex then! (assuming cards only contain one)

not too sure on how to do that though

I don't want to think about the case of multiple mutex on a same card

> fuck. he's right. then we should verify whether or not the used_effects contain a mutex then! (assuming cards only contain one) > > not too sure on how to do that though I don't want to think about the case of multiple mutex on a same card
Sign in to join this conversation.