Skip to content

Commit

Permalink
Remove create capability
Browse files Browse the repository at this point in the history
  • Loading branch information
xsebek committed Jun 16, 2022
1 parent 83a7b66 commit 7fc7051
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Swarm/Game/Exception.hs
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ formatIncapableFix = \case
-- please install:
-- - the one ring or magic wand
--
-- >>> incapableError (S.singleton CCreate) (TConst Create)
-- Missing the create capability for:
-- 'create'
-- >>> incapableError (S.singleton CRandom) (TConst Random)
-- Missing the random capability for:
-- 'random'
-- but no device yet provides it. See
-- https://github.com/swarm-game/swarm/issues/26
formatIncapable :: EntityMap -> IncapableFix -> Set Capability -> Term -> Text
Expand Down
2 changes: 1 addition & 1 deletion src/Swarm/Language/Capability.hs
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ constCaps =
Has -> []
Count -> [CCount]
If -> [CCond]
Create -> [CCreate]
Blocked -> [CSensefront]
Scan -> [CScan]
Ishere -> [CSensehere]
Expand All @@ -295,6 +294,7 @@ constCaps =
As -> [CGod]
RobotNamed -> [CGod]
RobotNumbered -> [CGod]
Create -> [CGod]
-- String operations, which for now are enabled by CLog
Format -> [CLog]
Concat -> [CLog]
Expand Down

0 comments on commit 7fc7051

Please sign in to comment.