1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-05-30 15:19:40 +03:00

PLUGINS.md: Fix Flags to reference edmc_data, not plug.

This commit is contained in:
Athanasius 2021-05-09 10:32:58 +01:00
parent 316bbba99d
commit 63a0456a9f

View File

@ -674,7 +674,7 @@ before returning from this function.
import plug
def dashboard_entry(cmdr: str, is_beta: bool, entry: Dict[str, Any]):
is_deployed = entry['Flags'] & plug.FlagsHardpointsDeployed
is_deployed = entry['Flags'] & edmc_data.FlagsHardpointsDeployed
sys.stderr.write("Hardpoints {}\n".format(is_deployed and "deployed" or "stowed"))
```
@ -693,7 +693,7 @@ typically about once a second when in orbital flight.
For more info on `Status.json`, See the "Status File" section in the Frontier
[Journal documentation](https://forums.frontier.co.uk/showthread.php/401661).
That includes the available `entry` properties and the list of `"Flags"`.
Refer to the source code of [plug.py](./plug.py) for the list of available
Refer to [edmc_data.py](./edmc_data.py) for the list of available
constants.
---