Possibly faulty keyword and locating code for cards

Hi.
I'll have to keep this short, hope you'll forgive my Spartan style.
Since this is my first post on this forum, here is a short presentation of myself: I've played this game for 1+ years, and really enjoyed it. Now, other things must take priority, but I thought I'd help out with the program a little before leaving. Basically my way of saying "thanks for keeping this updated".
Therefore I've fixed a couple of bugs (most of the fixes can be found in the recent patch), and I'm going to update the coding-wiki to facilitate for the community and new coders to help out in the future.
Because of the above I have two questions:
1. The code for Sylvan Library, Armadillo Cloak and a couple of other cards cannot be found in the card code files. I assume they are located in the exe, but they are not listed as such in the manalink.h file. Therefore I conjecture that not all cards in the exe are written in the manalink.h file. My question is thus, how would one recode a card in the exe that is not listed in manalink.h? Can you just rewrite the card with new C code using SkyMagic Editor, or do you have to do something else?
2. The lifelink keyword seems to be faulty. To be more precise, in the following code:
I'll have to keep this short, hope you'll forgive my Spartan style.
Since this is my first post on this forum, here is a short presentation of myself: I've played this game for 1+ years, and really enjoyed it. Now, other things must take priority, but I thought I'd help out with the program a little before leaving. Basically my way of saying "thanks for keeping this updated".
Therefore I've fixed a couple of bugs (most of the fixes can be found in the recent patch), and I'm going to update the coding-wiki to facilitate for the community and new coders to help out in the future.
Because of the above I have two questions:
1. The code for Sylvan Library, Armadillo Cloak and a couple of other cards cannot be found in the card code files. I assume they are located in the exe, but they are not listed as such in the manalink.h file. Therefore I conjecture that not all cards in the exe are written in the manalink.h file. My question is thus, how would one recode a card in the exe that is not listed in manalink.h? Can you just rewrite the card with new C code using SkyMagic Editor, or do you have to do something else?
2. The lifelink keyword seems to be faulty. To be more precise, in the following code:
- Code: Select all
card_data_t card_d = get_card_data(player, card);
if(card_d.static_ability & KEYWORD_LIFELINK){
life[player] = 1337;
}