Merge pull request #2138 from Henddher/improve_help_of_puzzles_use_command

Make Puzzle's use command user-friendly.
This commit is contained in:
Griatch 2020-05-18 00:19:02 +02:00 committed by GitHub
commit 6393d69cb2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -588,15 +588,30 @@ def _matching_puzzles(puzzles, puzzlename_tags_dict, puzzle_ingredients):
class CmdUsePuzzleParts(MuxCommand):
"""
Use an object, or a group of objects at once.
Example:
You look around you and see a pole, a long string, and a needle.
use pole, long string, needle
Genius! You built a fishing pole.
Usage:
use <obj1> [,obj2,...]
"""
# Technical explanation
"""
Searches for all puzzles whose parts match the given set of objects. If there are matching
puzzles, the result objects are spawned in their corresponding location if all parts have been
passed in.
Usage:
use <part1[,part2,...>]
"""
key = "use"
aliases = "combine"
locks = "cmd:pperm(use) or pperm(Player)"