mirror of
https://github.com/correl/mage.git
synced 2025-01-11 11:05:23 +00:00
Added new keyword.txt parameter for gen-card.pl.
This commit is contained in:
parent
9f277547de
commit
5da4b0ffd3
1 changed files with 4 additions and 0 deletions
|
@ -206,7 +206,11 @@ foreach my $setName (keys %{$cards{$cardName}}) {
|
|||
$ability =~ m/({.*})/g;
|
||||
$vars{'abilities'} .= "\n this.addAbility(new " . $kw . 'Ability(new ManaCostsImpl("' . fixCost($1) . '")));';
|
||||
$vars{'abilitiesImports'} .= "\nimport mage.abilities.costs.mana.ManaCostsImpl;";
|
||||
} elsif ($keywords{$kw} eq 'card, manaString') {
|
||||
$ability =~ m/({.*})/g;
|
||||
$vars{'abilities'} .= "\n this.addAbility(new " . $kw . 'Ability(this, "' . fixCost($1) . '"));';
|
||||
}
|
||||
|
||||
|
||||
$vars{'abilitiesImports'} .= "\nimport mage.abilities.keyword." . $kw . "Ability;";
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue