Moved tabletop characters to left side of the screen

This commit is contained in:
Thaum Rystra
2024-04-12 17:05:20 +02:00
parent 4793b34a55
commit 08640f2bf2
27 changed files with 496 additions and 1370 deletions

View File

@@ -0,0 +1,9 @@
import Creatures from '/imports/api/creature/creatures/Creatures';
export default function writeErrorsAndPropCount(creatureId, errors = [], propCount) {
if (errors.length) {
Creatures.update(creatureId, { $set: { computeErrors: errors, propCount } });
} else {
Creatures.update(creatureId, { $set: { propCount }, $unset: { computeErrors: 1 } });
}
}