Scrython/docs/scrython.symbology/ParseMana.md

99 lines
1.6 KiB
Markdown
Raw Normal View History

2018-10-28 05:49:01 +00:00
# **class** `scrython.symbology.ParseMana()`
2018-10-28 05:52:40 +00:00
These docs will likely not be as detailed as the official Scryfall Documentation, and you should reference that for more information.
2018-10-28 05:49:01 +00:00
2018-10-28 05:52:40 +00:00
>In the event that a key isn't found or has been changed, you can access the full JSON output with the `scryfallJson` variable (`ParseMana().scryfallJson`).
2018-10-28 05:53:50 +00:00
2018-10-28 05:49:01 +00:00
## Args
|arg|type|description|
|:---:|:---:|:---:|
|cost|string|The given mana cost you want.|
|format|string, optional|Returns data in the specified method. Defaults to JSON.|
|pretty|string, optional|Returns a prettier version of the json object. Note that this may break functionality with Scrython.|
## Returns
N/A
## Raises
2018-10-28 06:02:37 +00:00
N/A
2018-10-28 05:49:01 +00:00
## Examples
```python
>>> mana = scrython.symbology.ParseMana(cost="xcug")
>>> mana.colors()
```
## Methods
---
### `cmc()`
```
The converted mana cost of the card 
Returns:
float
```
---
### `colorless()`
```
True if the mana cost is colorless
Returns:
boolean
```
---
### `colors()`
```
A list of all colors in the mana cost
Returns:
list
```
---
### `mana_cost()`
```
The formatted mana cost
Returns:
string
```
---
### `monocolored()`
```
True if the mana cost is mono colored
Returns:
boolean
```
---
### `multicolored()`
```
True if the mana cost is a multicolored cost
Returns:
boolean
```
---
### `object()`
```
Returns the type of object it is
(card, error, etc)
Returns:
string
```