mirror of
https://github.com/evennia/evennia.git
synced 2026-03-24 16:56:32 +01:00
Merge pull request #2137 from Henddher/bug_puzzles_arent_persisted
Bug: Puzzles do not survive server reload (because their scripts aren't persisted)
This commit is contained in:
commit
dff5d9e5df
1 changed files with 2 additions and 2 deletions
|
|
@ -289,7 +289,7 @@ class CmdCreatePuzzleRecipe(MuxCommand):
|
|||
proto_parts = [proto_def(obj) for obj in parts]
|
||||
proto_results = [proto_def(obj) for obj in results]
|
||||
|
||||
puzzle = create_script(PuzzleRecipe, key=puzzle_name)
|
||||
puzzle = create_script(PuzzleRecipe, key=puzzle_name, persistent=True)
|
||||
puzzle.save_recipe(puzzle_name, proto_parts, proto_results)
|
||||
puzzle.locks.add("control:id(%s) or perm(Builder)" % caller.dbref[1:])
|
||||
|
||||
|
|
@ -488,7 +488,7 @@ class CmdArmPuzzle(MuxCommand):
|
|||
|
||||
Notes:
|
||||
Create puzzles with `@puzzle`; get list of
|
||||
defined puzzles using `@lspuzlerecipies`.
|
||||
defined puzzles using `@lspuzzlerecipes`.
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue