New card adding guideline:
-
Before all please be sure that you don't have any changes in your local project and do
git pull origin master
to update your local project. If you have uncommited local changes pleasecommit
it and dogit pull origin master
and then dogit push origin master
if you didn't get anyconflicts
If you gotconflicts
after you rangit pull origin master
, please message to @qscgyjqscgyj -
Copy any card directory in
service/cards/lib
and rename it for new card name copyservice/cards/lib/fool
renameservice/cards/lib/fool_copy
toservice/cards/lib/<new_card_name>
-
Replace data inside
service/cards/lib/<new_card_name>
with new card data -
Replace image inside
service/cards/lib/<new_card_name>
with new card image -
Replace const name in
service/cards/lib/<new_card_name>
with new card nameexport const fool
should becomeexport const <new_card_name>
-
Add
<new_card_name>
inservices/cards/cards.ts
returning arrayreturn [fool, magician];
should becomereturn [fool, magician, <new_card_name>];
-
To be shure that
<new_card_name>
has been added in imports on top of theservices/cards/cards.ts
file
import { fool } from './lib/fool/card';
import { magician } from './lib/magician/card';
import { CardData } from './types';
should become
import { fool } from './lib/fool/card';
import { magician } from './lib/magician/card';
import { <new_card_name> } from './lib/<new_card_name>/card';
import { CardData } from './types';
- Save all you changes