Sync with deliveries
This commit is contained in:
parent
2332d81e24
commit
b0d5f441ee
@ -44,7 +44,7 @@ export class CrucibleActor extends Actor {
|
||||
|
||||
if (data.type == 'character') {
|
||||
const skills = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills");
|
||||
data.items = skills.map(i => i.toObject());
|
||||
data.items = skills.map(i => i.toObject())
|
||||
}
|
||||
if (data.type == 'npc') {
|
||||
}
|
||||
|
@ -86,7 +86,6 @@ function welcomeMessage() {
|
||||
/* -------------------------------------------- */
|
||||
Hooks.once("ready", function () {
|
||||
|
||||
CrucibleUtility.ready();
|
||||
// User warning
|
||||
if (!game.user.isGM && game.user.character == undefined) {
|
||||
ui.notifications.info("Warning ! No character linked to your user !");
|
||||
@ -103,7 +102,8 @@ Hooks.once("ready", function () {
|
||||
}
|
||||
|
||||
welcomeMessage();
|
||||
});
|
||||
CrucibleUtility.ready()
|
||||
})
|
||||
|
||||
/* -------------------------------------------- */
|
||||
/* Foundry VTT Initialization */
|
||||
|
@ -18,8 +18,6 @@ export class CrucibleUtility {
|
||||
});
|
||||
|
||||
this.rollDataStore = {}
|
||||
this.skills = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills");
|
||||
this.weaponSkills = this.skills.filter( item => item.data.data.isweaponskill)
|
||||
|
||||
CrucibleCommands.init();
|
||||
|
||||
@ -59,11 +57,11 @@ export class CrucibleUtility {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static async ready() {
|
||||
const specs = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills");
|
||||
this.specs = specs.map(i => i.toObject());
|
||||
const skills = await CrucibleUtility.loadCompendium("fvtt-crucible-rpg.skills")
|
||||
this.skills = skills.map(i => i.toObject())
|
||||
this.weaponSkills = duplicate( this.skills.filter( item => item.data.isweaponskill))
|
||||
}
|
||||
|
||||
|
||||
/* -------------------------------------------- */
|
||||
static async loadCompendiumData(compendium) {
|
||||
const pack = game.packs.get(compendium);
|
||||
|
0
packs/action-tokens.db
Executable file → Normal file
0
packs/action-tokens.db
Executable file → Normal file
0
packs/armor.db
Executable file → Normal file
0
packs/armor.db
Executable file → Normal file
0
packs/classpowers.db
Executable file → Normal file
0
packs/classpowers.db
Executable file → Normal file
0
packs/conditions.db
Executable file → Normal file
0
packs/conditions.db
Executable file → Normal file
0
packs/equipment.db
Executable file → Normal file
0
packs/equipment.db
Executable file → Normal file
0
packs/feats.db
Executable file → Normal file
0
packs/feats.db
Executable file → Normal file
0
packs/lore-air.db
Executable file → Normal file
0
packs/lore-air.db
Executable file → Normal file
0
packs/lore-earth.db
Executable file → Normal file
0
packs/lore-earth.db
Executable file → Normal file
0
packs/lore-fire.db
Executable file → Normal file
0
packs/lore-fire.db
Executable file → Normal file
0
packs/lore-shadow.db
Executable file → Normal file
0
packs/lore-shadow.db
Executable file → Normal file
0
packs/lore-water.db
Executable file → Normal file
0
packs/lore-water.db
Executable file → Normal file
0
packs/monster-powers.db
Executable file → Normal file
0
packs/monster-powers.db
Executable file → Normal file
0
packs/poisons.db
Executable file → Normal file
0
packs/poisons.db
Executable file → Normal file
0
packs/shields.db
Executable file → Normal file
0
packs/shields.db
Executable file → Normal file
1
packs/skills.db
Executable file → Normal file
1
packs/skills.db
Executable file → Normal file
@ -6,6 +6,7 @@
|
||||
{"_id":"8o812uFRJbtKrbvc","name":"Blessings Lore","type":"skill","img":"systems/fvtt-crucible-rpg/images/icons/skills/Blessing%20Lore.png","data":{"ability":"cha","armorpenalty":false,"bonusdice":"none","level":0,"background":0,"basic":0,"class":0,"exp":0,"description":"<p>Chaplain Class Only</p>\n<p> </p>\n<p>You can use the Chaplain Blessings Class Power</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||
{"_id":"BKRHCd3kMfmQ7tcI","name":"Water Lore","type":"skill","img":"systems/fvtt-crucible-rpg/images/icons/skills/Water%20Lore.webp","data":{"ability":"int","armorpenalty":true,"bonusdice":"","level":0,"background":0,"basic":0,"class":0,"exp":0,"description":"<p>You can cast Water Lore spells.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||
{"_id":"KR9JDNO8QkeNPa8W","name":"Haggle","type":"skill","img":"systems/fvtt-crucible-rpg/images/icons/skills/Haggle.png","data":{"ability":"wit","armorpenalty":false,"bonusdice":"none","level":0,"background":0,"basic":0,"class":0,"exp":0,"description":"<p>I'll give you half of your asking price and make you like it.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||
{"name":"Axe","type":"skill","img":"systems/fvtt-crucible-rpg/images/icons/icon_skill.webp","data":{"ability":"agi","armorpenalty":false,"isproficient":true,"isweaponskill":true,"isinnate":false,"bonusdice":"none","level":2,"background":0,"basic":0,"class":0,"exp":0,"description":""},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{"core":{"sourceId":"Item.49wlzRnFpAaOx3A6"}},"_id":"LQD7mPqaM6RizBdu"}
|
||||
{"_id":"SyaqDmAk6PEG2wZI","name":"Air Lore","type":"skill","img":"systems/fvtt-crucible-rpg/images/icons/skills/Air%20Lore.webp","data":{"ability":"int","armorpenalty":true,"bonusdice":"none","level":0,"background":0,"basic":0,"class":0,"exp":0,"description":"<p>You can cast Air Lore Spells.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||
{"_id":"T4YzMBGXyDrzEaBA","name":"Earth Lore","type":"skill","img":"systems/fvtt-crucible-rpg/images/icons/skills/Earth%20Lore.webp","data":{"ability":"int","armorpenalty":true,"bonusdice":"","level":0,"background":0,"basic":0,"class":0,"exp":0,"description":"<p>You can cast Earth Lore spells.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||
{"_id":"XenGlvxetLv0A92F","name":"Acrobatics","type":"skill","img":"systems/fvtt-crucible-rpg/images/icons/skills/Acrobatics.webp","data":{"ability":"agi","armorpenalty":true,"bonusdice":"","level":0,"background":0,"basic":0,"class":0,"exp":0,"description":"<p>Handy for swinging from Chandaliers, sliding down stair rails, rolling between the legs of a Giant, and other feats of astonishing balance and agility.</p>"},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"Up3b6rNa3VKAFQC3":3},"flags":{}}
|
||||
|
0
packs/trickstraps.db
Executable file → Normal file
0
packs/trickstraps.db
Executable file → Normal file
0
packs/weapons.db
Executable file → Normal file
0
packs/weapons.db
Executable file → Normal file
@ -1238,7 +1238,7 @@ ul, li {
|
||||
color: #CCC
|
||||
}
|
||||
#pause > img {
|
||||
content: url(../images/ui/crucible_logo_v1.webp);
|
||||
content: url(../images/ui/crucible_game_logo.png);
|
||||
height: 160px;
|
||||
width: 256px;
|
||||
top: -80px;
|
||||
@ -1246,7 +1246,7 @@ ul, li {
|
||||
}
|
||||
|
||||
#logo {
|
||||
content : url(../images/ui/crucible_logo_v1.webp);
|
||||
content : url(../images/ui/crucible_game_logo.png);
|
||||
width: 100px;
|
||||
height: 60px;
|
||||
}
|
||||
|
@ -34,7 +34,7 @@
|
||||
<select class="competence-base flexrow" type="text" name="data.skill" value="{{data.skill}}" data-dtype="Number">
|
||||
{{#select data.skill}}
|
||||
{{#each weaponSkills as |skill idx|}}
|
||||
<option value="{{skill.name}}">{{skll.name}}</option>
|
||||
<option value="{{skill.name}}">{{skill.name}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
|
Loading…
Reference in New Issue
Block a user