Gods, screen and bugfixes

This commit is contained in:
sladecraven 2022-02-20 10:12:25 +01:00
parent 83188e6aae
commit f63692b6b5
28 changed files with 62 additions and 17 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
images/bol_alchimie.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
images/bol_armes.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
images/bol_armes_bonus.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
images/bol_armures.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
images/bol_creature.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
images/bol_demon.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

BIN
images/bol_difficulte.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
images/bol_init.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
images/bol_jetaction.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

BIN
images/bol_pnj.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

BIN
images/bol_portee.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

BIN
images/bol_sorts.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
images/plan_halakh.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

BIN
images/plan_satarla.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 MiB

BIN
images/plan_ucerb.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 MiB

BIN
images/vademecum.webp Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 78 KiB

View File

@ -151,6 +151,7 @@
"BOL.featureSubtypes.boon": "Avantage", "BOL.featureSubtypes.boon": "Avantage",
"BOL.featureSubtypes.flaw": "Désavantage", "BOL.featureSubtypes.flaw": "Désavantage",
"BOL.featureSubtypes.language": "Langage", "BOL.featureSubtypes.language": "Langage",
"BOL.featureSubtypes.gods": "Faith & Gods",
"BOL.itemCategory.object": "Objet", "BOL.itemCategory.object": "Objet",
"BOL.itemCategory.equipment": "Équipement", "BOL.itemCategory.equipment": "Équipement",

View File

@ -153,6 +153,7 @@
"BOL.featureSubtypes.boon": "Avantage", "BOL.featureSubtypes.boon": "Avantage",
"BOL.featureSubtypes.flaw": "Désavantage", "BOL.featureSubtypes.flaw": "Désavantage",
"BOL.featureSubtypes.language": "Langue", "BOL.featureSubtypes.language": "Langue",
"BOL.featureSubtypes.gods": "Dieux & Foi",
"BOL.itemCategory.object": "Objet", "BOL.itemCategory.object": "Objet",
"BOL.itemCategory.equipment": "Équipement", "BOL.itemCategory.equipment": "Équipement",

View File

@ -312,13 +312,16 @@ export class BoLActor extends Actor {
/*-------------------------------------------- */ /*-------------------------------------------- */
async manageHealthState() { async manageHealthState() {
if (this.data.data.resources.hp.value <= 0 && this.data.lastHP != this.data.data.resources.hp.value) { let lastHP = await this.getFlag("world", "lastHP")
this.data.lastHP = this.data.data.resources.hp.value if ( lastHP != this.data.data.resources.hp.value ) {
ChatMessage.create({ await this.setFlag("world", "lastHP", this.data.data.resources.hp.value)
alias: this.name, if (this.data.data.resources.hp.value <= 0 ) {
whisper: BoLUtility.getWhisperRecipientsAndGMs(this.name), ChatMessage.create({
content: await renderTemplate('systems/bol/templates/chat/chat-vitality-zero.hbs', { name: this.name, hp: this.data.lastHP} ) alias: this.name,
}) whisper: BoLUtility.getWhisperRecipientsAndGMs(this.name),
content: await renderTemplate('systems/bol/templates/chat/chat-vitality-zero.hbs', { name: this.name, hp: this.data.data.resources.hp.value} )
})
}
} }
} }

View File

@ -94,7 +94,6 @@ export class BoLRoll {
mod: 0, mod: 0,
label: (weapon.name) ? weapon.name : game.i18n.localize('BOL.ui.noWeaponName'), label: (weapon.name) ? weapon.name : game.i18n.localize('BOL.ui.noWeaponName'),
description: actor.name + " - " + game.i18n.localize('BOL.ui.weaponAttack'), description: actor.name + " - " + game.i18n.localize('BOL.ui.weaponAttack'),
adv: "2",
} }
console.debug("WEAPON!", attackDef, weaponData); console.debug("WEAPON!", attackDef, weaponData);
return this.displayRollDialog(attackDef); return this.displayRollDialog(attackDef);
@ -314,7 +313,7 @@ export class BoLRoll {
return return
} }
rollData.registerInit = (rollData.aptKey == 'init') ? $('#register-init').is(":checked") : false; rollData.registerInit = (rollData.aptitude && rollData.aptitude.key == 'init') ? $('#register-init').is(":checked") : false;
const isMalus = rollData.mDice > 0 const isMalus = rollData.mDice > 0
rollData.nbDice += (rollData.attackBonusDice) ? 1 : 0 rollData.nbDice += (rollData.attackBonusDice) ? 1 : 0
@ -374,7 +373,7 @@ export class BoLDefaultRoll {
} }
if (this.rollData.registerInit) { if (this.rollData.registerInit) {
this.rollData.actor.registerInit(r.total, this.rollData.isCritical); this.rollData.actor.registerInit(r.total, this.rollData.isCritical, this.rollData.isFumble)
} }
if (this.rollData.isSuccess && this.rollData.mode == "spell") { // PP cost management if (this.rollData.isSuccess && this.rollData.mode == "spell") { // PP cost management
this.rollData.actor.spendPowerPoint(this.rollData.ppCost) this.rollData.actor.spendPowerPoint(this.rollData.ppCost)

View File

@ -25,7 +25,8 @@ export class BoLCombatManager extends Combat {
const combatant = this.combatants.get(ids[cId]); const combatant = this.combatants.get(ids[cId]);
let fvttInit = 5 let fvttInit = 5
if (combatant.actor.type == 'character') { if (combatant.actor.type == 'character') {
let initData = combatant.actor.getLastInitData(); let initData = combatant.actor.getLastInitData()
console.log("Init data !!!", initData)
if (initData.isLegendary) { if (initData.isLegendary) {
fvttInit = 10 fvttInit = 10
} else if (initData.isCritical) { } else if (initData.isCritical) {

View File

@ -253,7 +253,8 @@ BOL.featureSubtypes = {
"career" : "BOL.featureSubtypes.career", "career" : "BOL.featureSubtypes.career",
"boon" : "BOL.featureSubtypes.boon", "boon" : "BOL.featureSubtypes.boon",
"flaw" : "BOL.featureSubtypes.flaw", "flaw" : "BOL.featureSubtypes.flaw",
"language" : "BOL.featureSubtypes.language" "language" : "BOL.featureSubtypes.language",
"godsfaith" : "BOL.featureSubtypes.gods"
} }
BOL.itemIcons = { BOL.itemIcons = {

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

24
packs/godsfaith.db Normal file
View File

@ -0,0 +1,24 @@
{"_id":"1wKT8PUphVwAprIp","name":"Charkond, Dieu de la Guerre et des Batailles","type":"feature","img":"icons/weapons/swords/sword-flanged-lightning.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"5TGdq8jdgCwGrnf8","name":"Afyra, Deesse de la Vie","type":"feature","img":"icons/magic/life/ankh-gold-blue.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"9AEZGZSvV68ab729","name":"Karyzon, le seigneur des vents","type":"feature","img":"icons/magic/air/wind-tornado-cyclone-purple-blue.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"9Cu96tVOAMBXM3lj","name":"Dyr, Dieu des Tempêtes et du Tonnerre","type":"feature","img":"icons/magic/lightning/bolt-blue.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"9y157RebGAHz717b","name":"Iondal le débauché","type":"feature","img":"icons/consumables/drinks/alcohol-beer-mug-yellow.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"CaL3AXDqYrlxX8Nk","name":"Hadron le Noir , seigneur du Néant","type":"feature","img":"icons/magic/unholy/barrier-shield-glowing-pink.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"ItT2rZgMIxsf5SAx","name":"Grondil, le dieu bâtisseur","type":"feature","img":"icons/magic/symbols/cog-orange-red.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"JX5ojD11f3jF8CQ9","name":"Quathoomar, dieu du voyage","type":"feature","img":"icons/environment/settlement/wagon-black.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"JdlJoouctsgbdO78","name":"Zalkyr le Lumineux, dieu du soleil","type":"feature","img":"icons/magic/light/explosion-star-large-orange-purple.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"KPdC5B2Y7ScMMjIw","name":"Chiomalla, Deesse des Grains et des Moissons","type":"feature","img":"icons/magic/nature/cornucopia-orange.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"QVxQAJaTFtKGBmOh","name":"Tharungozoth le massacreur, seigneur des souffrances","type":"feature","img":"icons/magic/unholy/hand-claw-fire-blue.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"SN00kJabUUw6pJAS","name":"Knothakon, dieu de la sagesse, seigneur des âges","type":"feature","img":"icons/sundries/documents/document-symbol-eye.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"SO0MsavWOETi1XS7","name":"Zaggath, seigneur du Feu","type":"feature","img":"icons/magic/fire/flame-burning-skull-orange.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"ShTt09DvtMwT2B7g","name":"Piandra, déesse de la chance, Dame Fortune","type":"feature","img":"icons/sundries/gaming/dice-runed-brown.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"TXJjOpNdVcz4tVY9","name":"SaTel, dieu des étoiles","type":"feature","img":"icons/magic/light/explosion-star-glow-blue-purple.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"UCFLRvupXT7zPyeo","name":"Lilandra la séductrice","type":"feature","img":"icons/magic/life/heart-hand-gold-green-light.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"XFyavCqoMoyxHRwJ","name":"Hurm, le père des dieux, seigneur du ciel","type":"feature","img":"icons/magic/symbols/runes-star-pentagon-blue.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"YkJ5a6J7uSoUpvmS","name":"Nemmereth du long sommeil, dieu de la mort","type":"feature","img":"icons/magic/death/skull-energy-light-white.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"Zgo3VgKCuT4Q4DKf","name":"Morgazzon, roi-démon de la folie","type":"feature","img":"icons/magic/unholy/silhouette-robe-evil-power.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"gPQPniCmYExvYekA","name":"Fillana, déesse des étoiles","type":"feature","img":"icons/magic/air/weather-sunlight-sky.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"rKx8i2O95WBsaKdk","name":"Zylidith, seigneur du sang, dieu du sacrifice","type":"feature","img":"icons/magic/death/skull-horned-goat-pentagram-red.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"rxdqQKG4qV6RwRye","name":"Fyrzon la Sentinelle, lInébranlable","type":"feature","img":"icons/magic/defensive/shield-barrier-flaming-diamond-blue.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"suAaP3uwJirPuQux","name":"Yrzlak le dieu forgeron","type":"feature","img":"icons/skills/trades/smithing-anvil-horseshoe.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}
{"_id":"xR5KdgOQucELl1sn","name":"Shazzadion, dieu des mers","type":"feature","img":"icons/magic/water/wave-water-blue.webp","data":{"category":null,"subtype":"godsfaith","description":"","properties":{"sorcerer":false,"alchemist":false,"priest":false,"isadvantage":false,"isbonusdice":false,"ismalusdice":false},"rank":0},"effects":[],"folder":null,"sort":0,"permission":{"default":0,"kQghu0tL1dft5xLu":3},"flags":{"core":{"sourceId":"Item.SgiHjyZQfdeWv8Y0"}}}

View File

@ -7,7 +7,7 @@
"url": "https://github.com/ZigmundKreud/bol", "url": "https://github.com/ZigmundKreud/bol",
"license": "LICENSE.txt", "license": "LICENSE.txt",
"flags": {}, "flags": {},
"version": "1.0.9", "version": "1.0.10",
"templateVersion": 20, "templateVersion": 20,
"minimumCoreVersion": "0.8.6", "minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "9", "compatibleCoreVersion": "9",
@ -126,6 +126,15 @@
"system": "bol", "system": "bol",
"entity": "Item", "entity": "Item",
"private": false "private": false
},
{
"label": "Dieux",
"type": "Item",
"name": "godsfaith",
"path": "packs/godsfaith.db",
"system": "bol",
"entity": "Item",
"private": false
} }
], ],
"system": [], "system": [],

View File

@ -13,7 +13,7 @@
{{/if}} {{/if}}
{{#if (lt hp -5)}} {{#if (lt hp -5)}}
<br>{{name}} est mort ! <br><strong>{{name}} est mort ! </strong>
<br>Que son nom soit honoré sur les champs de batailles de Lémurie ! <br>Que son nom soit honoré sur les champs de batailles de Lémurie !
{{/if}} {{/if}}