chiark / gitweb /
hand: Fixes to track claiming and unclaiming
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 13 Feb 2021 23:53:20 +0000 (23:53 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 14 Feb 2021 16:03:30 +0000 (16:03 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/pieces.rs

index a04fd01fe32f423a1a392230c983bd9bb98c1b0f..b74f6f67ece1b4e4f8edec257cc9f89aa31e8367 100644 (file)
@@ -364,17 +364,17 @@ impl Piece for Hand {
       if let Some(xdata) = gpc.xdata.get::<HandState>()?;
       if let Some(_owner) = &xdata.owner;
       then { UoDescription {
-        kind: UoKind:: GlobalExtra,
+        kind: UoKind:: Piece,
         def_key: 'C',
-        opname: "claim".to_owned(),
-        desc: Html::lit("Claim this as your hand"),
+        opname: "deactivate".to_owned(),
+        desc: Html::lit("Deactivate hand"),
         wrc: WRC::Unpredictable,
       }}
       else { UoDescription {
-        kind: UoKind:: GlobalExtra,
+        kind: UoKind:: Piece,
         def_key: 'C',
-        opname: "deactivate".to_owned(),
-        desc: Html::lit("Deactivate hand"),
+        opname: "claim".to_owned(),
+        desc: Html::lit("Claim this as your hand"),
         wrc: WRC::Unpredictable,
       }}
     })