Working on 0.8.x

- NPC with all ring on strengths/weaknesses (CSS TODO).
- Removed Custom tech "Links" as they are in fact "Bonds" and need more work.
- Added Bonds, SignatureScroll, ItemPatterns and working on titles
This commit is contained in:
Vlyan
2021-05-09 14:43:46 +02:00
parent 0bef6afc66
commit cda02bd8c7
62 changed files with 1658 additions and 222 deletions

View File

@@ -20,12 +20,15 @@ export default class HooksL5r5e {
/**
* Do anything once the system is ready
*/
static ready() {
static async ready() {
// Migration stuff
if (game.l5r5e.migrations.needUpdate()) {
game.l5r5e.migrations.migrateWorld();
}
// For some reasons, not always really ready, so wait a little
await new Promise((r) => setTimeout(r, 500));
// Settings TN and EncounterType
if (game.user.isGM) {
new game.l5r5e.GmToolsDialog().render(true);
@@ -40,9 +43,10 @@ export default class HooksL5r5e {
.on("click", () => new game.l5r5e.HelpDialog().render(true))
.prop("title", game.i18n.localize("l5r5e.logo.alt"));
// Spanish specific - Disclaimer "not translated by Edge"
if (game.i18n.lang === "es") {
ui.notifications.info(game.i18n.localize("l5r5e.global.edge_translation_disclaimer"));
// If any disclaimer "not translated by Edge"
const disclaimer = game.i18n.localize("l5r5e.global.edge_translation_disclaimer");
if (disclaimer !== "l5r5e.global.edge_translation_disclaimer") {
ui.notifications.info(disclaimer);
}
}