diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/draft-release.yaml index 5ea359a..7763240 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/draft-release.yaml @@ -15,9 +15,9 @@ jobs: # Install required packages - run: npm install - - name: Reading the module.json for the version + - name: Reading the system.json for the version id: "version" - run: cat module.json | echo version=`jq -r ".version"` >> "$GITHUB_OUTPUT" + run: cat system.json | echo version=`jq -r ".version"` >> "$GITHUB_OUTPUT" # Check that tag doesn't exist - uses: mukunku/tag-exists-action@v1.5.0 @@ -33,13 +33,13 @@ jobs: if: ${{ vars.files_to_release == '' }} run: exit 1 - - name: Move module.json to a temp file + - name: Move system.json to a temp file id: manifest-move - run: mv module.json module.temp.json + run: mv system.json module.temp.json - name: Update the download property in the manifest id: manifest-update - run: cat module.temp.json | jq -r --tab '.download = "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip"' > module.json + run: cat module.temp.json | jq -r --tab '.download = "https://github.com/${{ github.repository }}/releases/download/v${{ steps.version.outputs.version }}/release.zip"' > system.json - name: Create the zip run: zip -r release.zip ${{ vars.files_to_release }} @@ -51,4 +51,4 @@ jobs: commit: ${{ github.ref }} draft: true generateReleaseNotes: true - artifacts: "release.zip,module.json" \ No newline at end of file + artifacts: "release.zip,system.json" \ No newline at end of file diff --git a/langs/en-ca.json b/langs/en-ca.json index 9e26dfe..6297e90 100644 --- a/langs/en-ca.json +++ b/langs/en-ca.json @@ -1 +1,7 @@ -{} \ No newline at end of file +{ + "TYPES": { + "Actor": { + "hero": "Hero" + } + } +} diff --git a/module/data/Actor/Hero.mjs b/module/data/Actor/Hero.mjs new file mode 100644 index 0000000..9aef870 --- /dev/null +++ b/module/data/Actor/Hero.mjs @@ -0,0 +1,10 @@ +export class HeroData extends foundry.abstract.TypeDataModel { + static defineSchema() { + const schema = {}; + return schema; + }; + + prepareBaseData() {}; + + prepareDerivedData() {}; +}; diff --git a/module/hooks/init.mjs b/module/hooks/init.mjs index 878994f..4d9e1cf 100644 --- a/module/hooks/init.mjs +++ b/module/hooks/init.mjs @@ -1,5 +1,9 @@ +import { HeroData } from "../data/Actor/Hero.mjs"; import { Logger } from "../utils/Logger.mjs"; Hooks.once(`init`, () => { Logger.log(`Initializing`); + + // Datamodel registrations + CONFIG.Actor.dataModels.hero = HeroData; }); diff --git a/ripcrypt.lock b/ripcrypt.lock new file mode 100644 index 0000000..82ef623 --- /dev/null +++ b/ripcrypt.lock @@ -0,0 +1 @@ +🔒 \ No newline at end of file diff --git a/module.json b/system.json similarity index 94% rename from module.json rename to system.json index d2d75da..ae53692 100644 --- a/module.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "ripcrypt", "title": "RipCrypt", "description": "", - "version": "0.0.0", + "version": "0.0.1", "compatibility": { "minimum": 12, "verified": 12, @@ -37,7 +37,9 @@ } }, "documentTypes": { - "Actor": {}, + "Actor": { + "hero": {} + }, "Item": {} } } \ No newline at end of file