Skip to content

Commit 8134405

Browse files
committed
migration message, library version
1 parent 52efc4b commit 8134405

2 files changed

Lines changed: 31 additions & 12 deletions

File tree

scripts/system/migrations.js

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,40 @@
11
export default class Migration {
22

33
static async checkMigration() {
4-
let migrationTarget = "7.0.0"
4+
let migrationTarget = "8.0.0"
55
let systemMigrationVersion = game.settings.get("age-of-sigmar-soulbound", "systemMigrationVersion")
66

77
if (!systemMigrationVersion || foundry.utils.isNewerVersion(migrationTarget, systemMigrationVersion))
88
{
9-
this.migrateWorld();
10-
ChatMessage.create({content : "<h3>The Effect Refactor</h3><p>The Soulbound System has undergone a major refactoring on how it handles effects. Read more <a href='https://github.com/moo-man/AoS-Soulbound-FoundryVTT/releases/tag/7.0.0'>here</a></p>"})
11-
}
129

13-
// if (!systemMigrationVersion || foundry.utils.isNewerVersion(migrationTarget, systemMigrationVersion)) {
14-
// this.migrateExperience();
15-
// }
16-
game.settings.set("age-of-sigmar-soulbound", "systemMigrationVersion", game.system.version)
17-
}
10+
ChatMessage.create({
11+
content: `
12+
<h1>New Users - Read This!</h1>
13+
<p>Welcome! Before you dive in, it may be best to browse the Wiki, below are some important topics:</p>
14+
<ul>
15+
<li><p><a href="https://moo-man.github.io/AoS-Soulbound-FoundryVTT/pages/faq.html">FAQ</a></p></li>
16+
<li><p><a href="https://moo-man.github.io/AoS-Soulbound-FoundryVTT/pages/premium.html">Premium Content</a> (this will tell you how to use any official content you've purchased!</p></li>
17+
<li><p><a href="https://moo-man.github.io/AoS-Soulbound-FoundryVTT/pages/troubleshooting.html">Troubleshooting</a></p></li>
18+
</ul>
19+
<p><strong>Note</strong>: The Wiki is still heavily WIP, having just been created.</p>
20+
<p><strong>Also Note</strong>: Character Creation has not been converted to AppV2 yet (see below), until then, it may have styling issues and bugs!</p>
21+
<hr>
22+
<h1>Soulbound in Foundry V13</h1>
23+
<p>As Foundry itself progresses in its adoption of its new application framework, so too has the Soulbound system. All sheets and applications have been converted to use AppV2, my hope is that I have covered all existing functionality, but it is inevitable that more complex sheets (such as Actor sheets) may be missing some features here and there. Please be patient as I work through issues that arise!
24+
<ul>
25+
<li><p>Actor and Item Sheets in V2 have had their <em>right click</em> functionalities greatly expanded. You can right click any owned Item or Active Effect to see a context menu for various actions.</p></li>
26+
<li><p>Module Initialization has been centralized in the System settings, check the wiki link above!</p></li>
27+
</ul>`
28+
})
29+
30+
if (foundry.utils.isNewerVersion("7.0.0", systemMigrationVersion))
31+
{
32+
this.migrateWorld();
33+
}
1834

35+
game.settings.set("age-of-sigmar-soulbound", "systemMigrationVersion", game.system.version)
36+
}
37+
}
1938
// static async migrateExperience() {
2039
// console.log(`Applying AOS:Soulbound System Migration for version ${game.system.version}. Please be patient and do not close your game or shut down your server.`);
2140

system.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
"requires": [{
88
"id": "warhammer-lib",
99
"type": "module",
10-
"manifest": "https://raw.githubusercontent.com/moo-man/WarhammerLibrary-FVTT/2.2.0/module.json",
10+
"manifest": "https://raw.githubusercontent.com/moo-man/WarhammerLibrary-FVTT/2.5.0/module.json",
1111
"compatibility": {
12-
"minimum" : "2.2.0",
13-
"verified": "2.2.0"
12+
"minimum" : "2.5.0",
13+
"verified": "2.5.0"
1414
}
1515
}]
1616
},

0 commit comments

Comments
 (0)