Fix a couple of errors. Make roll dialog verbiage clearer.

This commit is contained in:
Aaron Lutomski
2026-05-30 16:26:08 -07:00
parent e2f722602e
commit e87a3e8ea2
5 changed files with 25 additions and 12 deletions
+8 -2
View File
@@ -1,5 +1,7 @@
import DG from "../config/index.js";
const { ForcedDeletion } = foundry.data.operators;
const MIGRATION_VERSION = 2;
const ACTOR_TYPES_WITH_SKILLS = ["agent", "npc", "unnatural"];
const OBSOLETE_WORLD_SETTINGS = [
@@ -41,8 +43,12 @@ export default async function runWorldMigration() {
for (const actor of actors) {
if (actor.system.skills?.ritual) {
await actor.update({
"system.skills.-=ritual": null,
"system.schemaVersion": MIGRATION_VERSION,
system: {
skills: {
ritual: new ForcedDeletion(),
},
schemaVersion: MIGRATION_VERSION,
},
});
migratedActors += 1;
}