mirror of
https://github.com/EDCD/EDMarketConnector.git
synced 2025-06-06 18:33:13 +03:00
PLUGINS.md: fix typo & example for journal_entry
This commit is contained in:
parent
52193a9f07
commit
589f0cf454
@ -375,7 +375,7 @@ def journal_entry(
|
|||||||
if entry['event'] == 'FSDJump':
|
if entry['event'] == 'FSDJump':
|
||||||
# We arrived at a new system!
|
# We arrived at a new system!
|
||||||
if 'StarPos' in entry:
|
if 'StarPos' in entry:
|
||||||
logger.info(f'Arrived at {entry["StarSystem"]} {entry["StarPos"')
|
logger.info(f'Arrived at {entry["StarSystem"]} {entry["StarPos"]}')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
logger.info(f'Arrived at {entry["StarSystem"]}')
|
logger.info(f'Arrived at {entry["StarSystem"]}')
|
||||||
@ -396,7 +396,7 @@ Content of `state` (updated to the current journal entry):
|
|||||||
|
|
||||||
| Field | Type | Description |
|
| Field | Type | Description |
|
||||||
| :------------- | :-------------------------: | :-------------------------------------------------------------------------------------------------------------- |
|
| :------------- | :-------------------------: | :-------------------------------------------------------------------------------------------------------------- |
|
||||||
| `Captian` | `Optional[str]` | Name of the commander who's crew you're on, if any |
|
| `Captain` | `Optional[str]` | Name of the commander who's crew you're on, if any |
|
||||||
| `Cargo` | `dict` | Current cargo. Note that this will be totals, and any mission specific duplicates will be counted together |
|
| `Cargo` | `dict` | Current cargo. Note that this will be totals, and any mission specific duplicates will be counted together |
|
||||||
| `CargoJSON` | `dict` | content of cargo.json as of last read. |
|
| `CargoJSON` | `dict` | content of cargo.json as of last read. |
|
||||||
| `Credits` | `int` | Current credits balance |
|
| `Credits` | `int` | Current credits balance |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user