From f939bbdb4bc368a7fde4bf409e0043b08544fcd6 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 13 Feb 2021 23:53:20 +0000 Subject: [PATCH] hand: Fixes to track claiming and unclaiming Signed-off-by: Ian Jackson --- src/pieces.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pieces.rs b/src/pieces.rs index a04fd01f..b74f6f67 100644 --- a/src/pieces.rs +++ b/src/pieces.rs @@ -364,17 +364,17 @@ impl Piece for Hand { if let Some(xdata) = gpc.xdata.get::()?; 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, }} }) -- 2.30.2