Merge pull request #3766 from jaborsh/typos

Resolving Syntax Error in Spawner/Prototypes Doc
This commit is contained in:
Griatch 2025-04-26 12:32:46 +02:00 committed by GitHub
commit ea51a4d3ca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ In dictionary form, a prototype can look something like this:
```
If you wanted to load it into the spawner in-game you could just put all on one line:
spawn {"prototype_key="house", "key": "Large house", ...}
spawn {"prototype_key"="house", "key": "Large house", ...}
> Note that the prototype dict as given on the command line must be a valid Python structure - so you need to put quotes around strings etc. For security reasons, a dict inserted from-in game cannot have any other advanced Python functionality, such as executable code, `lambda` etc. If builders are supposed to be able to use such features, you need to offer them through [$protfuncs](Spawner-and- Prototypes#protfuncs), embedded runnable functions that you have full control to check and vet before running.