From c4d05feaa39492a176e611cf76104410b4e824ce Mon Sep 17 00:00:00 2001 From: Brent Yorgey Date: Sun, 28 Apr 2024 13:38:23 -0500 Subject: [PATCH] update `appear` documentation and arity --- src/swarm-lang/Swarm/Language/Syntax.hs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/swarm-lang/Swarm/Language/Syntax.hs b/src/swarm-lang/Swarm/Language/Syntax.hs index 57c58ca57..a80a33bd5 100644 --- a/src/swarm-lang/Swarm/Language/Syntax.hs +++ b/src/swarm-lang/Swarm/Language/Syntax.hs @@ -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. @@ -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." $