Work on MArcomage card support

More involved than I thought. Those things need a lot of new functions...

Signed-off-by: GreatEmerald <pastas4@gmail.com>