ttpg-darrell 1.0.13 → 1.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -60,7 +60,7 @@ class SimpleCardGarbageHandler {
|
|
|
60
60
|
}
|
|
61
61
|
// Discard.
|
|
62
62
|
if (deck) {
|
|
63
|
-
const toFront =
|
|
63
|
+
const toFront = true;
|
|
64
64
|
const offset = 0;
|
|
65
65
|
const animate = true;
|
|
66
66
|
const flipped = false;
|
|
@@ -73,6 +73,15 @@ class SimpleCardGarbageHandler {
|
|
|
73
73
|
const above = snapPoint.getGlobalPosition().add([0, 0, 10]);
|
|
74
74
|
const animationSpeed = 0;
|
|
75
75
|
obj.setPosition(above, animationSpeed);
|
|
76
|
+
// Orient face-up if not shuffling, face down if shuffling.
|
|
77
|
+
if (obj.isFaceUp() && this._shuffleAfterDiscard) {
|
|
78
|
+
// Flip face down for a shuffled discard.
|
|
79
|
+
obj.flipOrUpright();
|
|
80
|
+
}
|
|
81
|
+
else if (!obj.isFaceUp() && !this._shuffleAfterDiscard) {
|
|
82
|
+
// Flip face up for a standard discard.
|
|
83
|
+
obj.flipOrUpright();
|
|
84
|
+
}
|
|
76
85
|
obj.snapToGround();
|
|
77
86
|
obj.snap(); // apply snap point rotation
|
|
78
87
|
}
|
|
@@ -57,7 +57,7 @@ export class SimpleCardGarbageHandler {
|
|
|
57
57
|
}
|
|
58
58
|
// Discard.
|
|
59
59
|
if (deck) {
|
|
60
|
-
const toFront =
|
|
60
|
+
const toFront = true;
|
|
61
61
|
const offset = 0;
|
|
62
62
|
const animate = true;
|
|
63
63
|
const flipped = false;
|
|
@@ -70,6 +70,15 @@ export class SimpleCardGarbageHandler {
|
|
|
70
70
|
const above = snapPoint.getGlobalPosition().add([0, 0, 10]);
|
|
71
71
|
const animationSpeed = 0;
|
|
72
72
|
obj.setPosition(above, animationSpeed);
|
|
73
|
+
// Orient face-up if not shuffling, face down if shuffling.
|
|
74
|
+
if (obj.isFaceUp() && this._shuffleAfterDiscard) {
|
|
75
|
+
// Flip face down for a shuffled discard.
|
|
76
|
+
obj.flipOrUpright();
|
|
77
|
+
}
|
|
78
|
+
else if (!obj.isFaceUp() && !this._shuffleAfterDiscard) {
|
|
79
|
+
// Flip face up for a standard discard.
|
|
80
|
+
obj.flipOrUpright();
|
|
81
|
+
}
|
|
73
82
|
obj.snapToGround();
|
|
74
83
|
obj.snap(); // apply snap point rotation
|
|
75
84
|
}
|