Skip to content

Commit

Permalink
update appear documentation and arity
Browse files Browse the repository at this point in the history
  • Loading branch information
byorgey committed Apr 28, 2024
1 parent 900727a commit c4d05fe
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/swarm-lang/Swarm/Language/Syntax.hs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ data Const
Log
| -- | View a certain robot.
View
| -- | Set what characters are used for display.
| -- | Set color and what characters are used for display.
Appear
| -- | Create an entity out of thin air. Only
-- available in creative mode.
Expand Down Expand Up @@ -739,9 +739,10 @@ constInfo c = case c of
[ "This will recenter the map on the target robot and allow its inventory and logs to be inspected."
]
Appear ->
command 1 short . doc (Set.singleton $ Mutation Cosmetic) "Set how the robot is displayed." $
[ "You can either specify one character or five (for each direction)."
command 2 short . doc (Set.singleton $ Mutation Cosmetic) "Set how the robot is displayed." $
[ "You can either specify one character or five (one for each direction: down, north, east, south, west)."
, "The default is \"X^>v<\"."
, "The second argument is for optionally setting a display attribute (i.e. color)."
]
Create ->
command 1 short . doc (Set.fromList [Mutation EntityChange, Mutation $ RobotChange InventoryChange]) "Create an item out of thin air." $
Expand Down

0 comments on commit c4d05fe

Please sign in to comment.