chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1365921
)
dice: Make moveable
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Fri, 15 Apr 2022 17:43:31 +0000
(18:43 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/dice.rs
b/src/dice.rs
index 26703512d515f7c81f86f0f17dd3ed4dd1347bb3..f5b92e6a6f0d4a496d5f33a1e54352ac4a262bfd 100644
(file)
--- a/
src/dice.rs
+++ b/
src/dice.rs
@@
-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 } =