Bug: Puzzles do not survive server reload (because their scripts aren't persisted).
This commit is contained in:
parent
f0eda7db74
commit
60ca9f19cf
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_parts = [proto_def(obj) for obj in parts]
|
||||||
proto_results = [proto_def(obj) for obj in results]
|
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.save_recipe(puzzle_name, proto_parts, proto_results)
|
||||||
puzzle.locks.add("control:id(%s) or perm(Builder)" % caller.dbref[1:])
|
puzzle.locks.add("control:id(%s) or perm(Builder)" % caller.dbref[1:])
|
||||||
|
|
||||||
|
|
@ -488,7 +488,7 @@ class CmdArmPuzzle(MuxCommand):
|
||||||
|
|
||||||
Notes:
|
Notes:
|
||||||
Create puzzles with `@puzzle`; get list of
|
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