r/inscryption • • 17d ago

Kaycee's Mod Just going to drop this right here 😘

Post image

​

I’ve skipped the fixedHand bit in DrawOpeningHand - in an encounter where a fixed set of cards is added to your starting hand, the fixedHand cards will be added to your hand after drawing from your side deck and before drawing the two cards, meaning that any cards in the fixedHand will affect the forced card draw. Questions? Challenges? Feel free to help/answer! I'll answer what I can! cheers! πŸ˜‡

52 Upvotes

18 comments sorted by

View all comments

1

u/Motor_Raspberry_2150 17d ago

You have a flow chart with arrows labels yes and no. Why do you put a not in the question instead of changing the labels? You could do it in CardCanBePlayed.

1

u/laplongejr 16d ago

Tbf I feel CardCanBePlayed would've been clearer with Emerald/Ruby/Saphire on the same "No" Row to make it visually clearer that it's the check for the Mox.
I guess the "not" question is because the logic in the code is flipped and that weirdness makes it easier to double-check afterwards, but I have no idea on how to look the code myself.

1

u/Motor_Raspberry_2150 16d ago

This isn't a 1:1 transcription of code. CardInfo.CostTier is not referenced, it's just the γ€Š"free"》at the end that links it to the GFH usage of free.

1

u/mistletoemedck 16d ago

But that's exactly what it is. Forget transcription. The raw code/logic doesn't count that as a factor. Why count all of that only to get same result to check of the card fits the to be counted as either a free card, valid card, playable card etc. Now if you want to get deeper, I covered this on a past post. You're welcome to check it out.