From: Ian Jackson Date: Sat, 13 Feb 2021 23:53:20 +0000 (+0000) Subject: hand: Fixes to track claiming and unclaiming X-Git-Tag: otter-0.4.0~496 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f939bbdb4bc368a7fde4bf409e0043b08544fcd6;p=otter.git hand: Fixes to track claiming and unclaiming Signed-off-by: Ian Jackson --- 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, }} })