-
Notifications
You must be signed in to change notification settings - Fork 2
Entities/Universe
biqqles edited this page Feb 14, 2021
·
1 revision
This section describes entities defined in initialworld.ini
and universe.ini
.
A star system, containing Solars.
Attributes | Type | Notes |
---|---|---|
file |
str |
|
navmapscale |
float |
|
Methods | ||
definition_path() |
str |
The absolute path to the file that defines this system's contents |
contents() |
EntitySet[Solar] |
All solars in this system |
zones() |
EntitySet[Zone] |
All zones in this system |
objects() |
EntitySet[Object] |
All objects in this system |
bases() |
EntitySet[BaseSolar] |
All base solars in this system |
planets() |
EntitySet[Planet] |
All planets in this system |
stars() |
EntitySet[Star] |
All stars in this system |
connections() |
Dict[Jump, str] |
The connections this system has to other systems |
lanes() |
List[List[TradeLaneRing]] |
A list of lists of rings, where each nested list represents a complete trade lane and contains each ring in that lane in order |
region() |
str |
The name of the region this system is in, extracted from the infocard |
A space station or colonised planet, operated by a Faction.
Attributes | Type | Notes |
---|---|---|
system |
str |
|
_market |
Dict |
|
Methods | ||
system_() |
System |
The entity of the system this base resides in |
has_solar() |
bool |
Whether this base has a physical solar |
solar() |
Optional[BaseSolar] |
Confusingly, Freelancer defines bases separately to their physical representation |
sector() |
System |
The sector of this base's solar in its system |
buys() |
Dict[Good, int] |
The goods this base buys, of the form {good -> price} |
sells() |
Dict[Good, int] |
The goods this base sells, of the form {good -> price} |
sells_commodities() |
Dict[Commodity, int] |
The commodities represented by the goods this base sells, mapped to their prices |
buys_commodities(self) |
Dict[Commodity, int] |
The commodities represented by the goods this base buys, mapped to their prices |
sells_equipment(self) |
Dict[Equipment, int] |
The equipment represented by the goods this base sells, mapped to their prices |
sells_ships(self) |
Dict[Ship, int] |
The ships represented by the goods this base sells, mapped to their cost |
A faction, also known as a group, is an organisation in the Freelancer universe. Factions can own bases or control territory.
Attributes | Type | Notes |
---|---|---|
ids_short_name |
Tuple[float, str]] |
Resource id for short form name |
rep |
Tuple[float, str]] |
Float is between 1 (adored) and -1 (reviled) |
Methods | ||
short_name() |
str |
The short form of this faction's name |
bases() |
EntitySet[BaseSolar] |
Bases owned by this faction |
rep_sheet() |
Dict[Faction, float] |
How this faction views other factions - its reputation sheet |
can_dock_at(base: BaseSolar) |
bool |
Whether this faction can dock at the given base |