chiark / gitweb /
dice: Make moveable
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 17:43:31 +0000 (18:43 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 21:43:43 +0000 (22:43 +0100)
Don't bake into the piece implementation that these aren't moveable.
If this is desired, it can be part of the game spec.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/dice.rs

index 26703512d515f7c81f86f0f17dd3ed4dd1347bb3..f5b92e6a6f0d4a496d5f33a1e54352ac4a262bfd 100644 (file)
@@ -83,7 +83,6 @@ impl PieceSpec for Spec {
   #[throws(SpecError)]
   fn load(&self, _: usize, gpc: &mut GPiece, ig: &Instance, depth: SpecDepth)
           -> PieceSpecLoaded {
-    gpc.moveable = PieceMoveable::IfWresting;
     gpc.rotateable = false;
 
     let SpecLoaded { p: image, occultable: img_occultable } =