mana-scribe 2.0.1 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,41 +1,41 @@
1
- {
2
- "name": "mana-scribe",
3
- "version": "2.0.1",
4
- "description": "Library for parsing and querying Magic: The Gathering mana costs — with support for CMC, devotion, and color identity.",
5
- "keywords": [
6
- "mtg",
7
- "magic the gathering",
8
- "mana",
9
- "cost",
10
- "parser"
11
- ],
12
- "bugs": {
13
- "url": "https://github.com/matortheeternal/mana-scribe/issues"
14
- },
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/matortheeternal/mana-scribe.git"
18
- },
19
- "license": "MIT",
20
- "author": "mator",
21
- "type": "module",
22
- "main": "./src/index.js",
23
- "exports": {
24
- ".": "./src/index.js"
25
- },
26
- "devDependencies": {
27
- "c8": "^10.1.3",
28
- "jasmine": "^5.12.0"
29
- },
30
- "scripts": {
31
- "test": "jasmine --config=jasmine.json",
32
- "debug:test": "node --inspect-brk node_modules/jasmine/bin/jasmine.js --config=jasmine.json",
33
- "coverage": "c8 npm test"
34
- },
35
- "files": [
36
- "src/",
37
- "README.md",
38
- "LICENSE",
39
- "package.json"
40
- ]
41
- }
1
+ {
2
+ "name": "mana-scribe",
3
+ "version": "2.1.1",
4
+ "description": "Library for parsing and querying Magic: The Gathering mana costs — with support for CMC, devotion, and color identity.",
5
+ "keywords": [
6
+ "mtg",
7
+ "magic the gathering",
8
+ "mana",
9
+ "cost",
10
+ "parser"
11
+ ],
12
+ "bugs": {
13
+ "url": "https://github.com/matortheeternal/mana-scribe/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/matortheeternal/mana-scribe.git"
18
+ },
19
+ "license": "MIT",
20
+ "author": "mator",
21
+ "type": "module",
22
+ "main": "./src/index.js",
23
+ "exports": {
24
+ ".": "./src/index.js"
25
+ },
26
+ "devDependencies": {
27
+ "c8": "^10.1.3",
28
+ "jasmine": "^5.12.0"
29
+ },
30
+ "scripts": {
31
+ "test": "jasmine --config=jasmine.json",
32
+ "debug:test": "node --inspect-brk node_modules/jasmine/bin/jasmine.js --config=jasmine.json",
33
+ "coverage": "c8 npm test"
34
+ },
35
+ "files": [
36
+ "src/",
37
+ "README.md",
38
+ "LICENSE",
39
+ "package.json"
40
+ ]
41
+ }
@@ -17,4 +17,8 @@ export default class GenericHybridManaSymbol extends Symbol {
17
17
  cmcValue() {
18
18
  return 1;
19
19
  }
20
+
21
+ get hybrid() {
22
+ return true;
23
+ }
20
24
  }
@@ -18,4 +18,8 @@ export default class HybridManaSymbol extends Symbol {
18
18
  cmcValue() {
19
19
  return 1;
20
20
  }
21
+
22
+ get hybrid() {
23
+ return true;
24
+ }
21
25
  }
@@ -34,6 +34,10 @@ export default class Symbol {
34
34
  return [];
35
35
  }
36
36
 
37
+ get hybrid() {
38
+ return false;
39
+ }
40
+
37
41
  apply(symbols) {
38
42
  symbols.push(this);
39
43
  }