rework ID

This commit is contained in:
sladecraven 2022-09-02 16:08:56 +02:00
parent 51c1e205e9
commit 5c13cde07a
3 changed files with 15 additions and 26 deletions

View File

@ -140,7 +140,7 @@ export class BoLActorSheet extends ActorSheet {
formData.ammos = this.actor.ammos formData.ammos = this.actor.ammos
formData.misc = this.actor.misc formData.misc = this.actor.misc
formData.combat = this.actor.buildCombat() formData.combat = this.actor.buildCombat()
formData.combatCreature = this.actor.buildCombatCreature() //formData.combatCreature = this.actor.buildCombatCreature()
formData.features = this.actor.buildFeatures() formData.features = this.actor.buildFeatures()
formData.isGM = game.user.isGM formData.isGM = game.user.isGM
formData.options = this.options formData.options = this.options

View File

@ -479,6 +479,15 @@ export class BoLActor extends Actor {
"options": false, "options": false,
"items": this.melee "items": this.melee
}, },
"natural": {
"label": "BOL.combatCategory.natural",
"weapon": true,
"protection": false,
"blocking": false,
"ranged": false,
"options": false,
"items": this.natural
},
"ranged": { "ranged": {
"label": "BOL.combatCategory.ranged", "label": "BOL.combatCategory.ranged",
"weapon": true, "weapon": true,
@ -518,28 +527,6 @@ export class BoLActor extends Actor {
} }
} }
buildCombatCreature() {
return {
"natural": {
"label": "BOL.combatCategory.natural",
"weapon": true,
"protection": false,
"blocking": false,
"ranged": false,
"options": false,
"items": this.natural
},
"protections": {
"label": "BOL.combatCategory.protections",
"weapon": false,
"protection": true,
"blocking": false,
"ranged": false,
"options": false,
"items": this.protections
},
}
}
/*-------------------------------------------- */ /*-------------------------------------------- */
buildRollList() { buildRollList() {

View File

@ -14,9 +14,11 @@
], ],
"url": "https://www.uberwald.me/gitea/public/bol", "url": "https://www.uberwald.me/gitea/public/bol",
"license": "LICENSE.txt", "license": "LICENSE.txt",
"version": "10.0.6", "version": "10.0.7",
"compatibility": { "compatibility": {
"minimum": "10" "minimum": "10",
"verified": "10.284",
"maximum": "10"
}, },
"esmodules": [ "esmodules": [
"module/bol.js" "module/bol.js"
@ -192,7 +194,7 @@
], ],
"socket": true, "socket": true,
"manifest": "https://www.uberwald.me/gitea/public/bol/raw/v10/system.json", "manifest": "https://www.uberwald.me/gitea/public/bol/raw/v10/system.json",
"download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.0.6.zip", "download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.0.7.zip",
"background": "systems/images/map_lemurie.webp", "background": "systems/images/map_lemurie.webp",
"gridDistance": 1.5, "gridDistance": 1.5,
"gridUnits": "m", "gridUnits": "m",