Skip to content

Commit

Permalink
fix: Remove erroneous word from the spaceport news definition (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheGiraffe3 authored Oct 17, 2024
1 parent f307323 commit 595ae35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wiki/CreatingNews.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ A `news` datafile definition has 4 definable child elements.
* `name`: The name of the [spaceport person](#People) that will appear along with the news message. For flexibility, this uses the same format as creating ship hails, meaning you can define any number of names to be used with the same set of messages.
* `portrait`: The path to a sprite to be displayed in the news message, relative to the `images` directory. Multiple sprites can be provided, and one will be chosen at random when the news message is displayed.
* `message`: The text to be displayed. For flexibility, this uses the same "phrase" format that the news' name element and ship hails use.
* `location` (optional): A [location filter](LocationFilters) that is used to identify on which planets this News message can appear. If not provided, or removed, then this news source will not be displayed anywhere. For the full syntax associated with locations filters see [the reference here](LocationFilters).
* `location`: A [location filter](LocationFilters) that is used to identify on which planets this news message can appear. If not provided, or removed, then this news source will not be displayed anywhere. For the full syntax associated with locations filters see [the reference here](LocationFilters).
* `to show` (optional): A condition set that determines whether this News message can appear. Behaves the same way as `to offer` does for [missions](https://github.com/endless-sky/endless-sky/wiki/CreatingMissions#conditions).

```html
Expand Down Expand Up @@ -221,4 +221,4 @@ event "trouble on the fringes"
```
The first event instructs the game to completely erase the previously defined location, resulting in an empty filter that prevents the news item from being displayed. The second event adds to the location filter, restricting it to planets and systems with the "frontier" attribute.

All 4 datafile elements can be used with the "remove" modifier as shown above, to completely erase the previous value. For portraits, one can also optionally list the specific file paths which should be removed, and the non-listed portraits will remain available.
All 4 datafile elements can be used with the "remove" modifier as shown above, to completely erase the previous value. For portraits, one can also optionally list the specific file paths which should be removed, and the non-listed portraits will remain available.

0 comments on commit 595ae35

Please sign in to comment.