Long time no devlog, I decided to just scrap everything and rewrite it from the top so I don’t want to fight with more borrow checking. It now use a system of a single copy of card that get refer to using a card id instead of stuff
Log in to leave a comment
After wrestling with the borrow checker for hours, I finally clean up the draw card code. Project progress moving slowly cus i am still figuring out the bound of the project.
Log in to leave a comment
A more concrete and determinant system to process the sigil
Log in to leave a comment
Bundle a bunch of the sigil information into a Context so that the handler can be more flexible with how the sigil are activated.
Log in to leave a comment
Got a basic framework for the rule engie. Currently only drawing card is implemented. I’ve decided that the sigil system will work as follow. There is a SigilHandler trait with a connect Sigil type that will be handle by this handler. This trait allow for custom sigil to be implemented by providing their own handler and their own sigil type. The FightManager job is then to dispatch SigilEvent and tell the handler to handle them.
Log in to leave a comment