Compare commits

...

2 Commits

Author SHA1 Message Date
099bb0d88c Use initiative 2023-07-29 18:12:22 +02:00
9a30275640 Use initiative 2023-07-29 18:11:57 +02:00
3 changed files with 5 additions and 5 deletions

View File

@ -463,7 +463,7 @@ export class Hero6Actor extends Actor {
getBaseInit(turn) {
if ( turn != this.turn) {
let r = new Roll("1d6").roll({ async: false })
this.currentInit = this.system.characteristics.dex.value + (r.total / 10)
this.currentInit = this.system.characteristics.dex.initiative + (r.total / 10)
this.turn = turn
}
return this.currentInit

View File

@ -44,7 +44,7 @@ export class Hero6Combat extends Combat {
/* -------------------------------------------- */
holdAction(combatantId) {
this.rebuildInitiative()
console.log("Rebuilding.....")
//console.log("Rebuilding.....")
}
/* -------------------------------------------- */
@ -145,7 +145,7 @@ export class Hero6Combat extends Combat {
}
if (updList.length > 0) {
await this.updateEmbeddedDocuments("Combatant", updList);
console.log("Rebuild INIT", updList)
//console.log("Rebuild INIT", updList)
for (let c of updList) {
if (c.initiative != 0) {
return true

View File

@ -91,14 +91,14 @@
"styles": [
"styles/simple.css"
],
"version": "10.0.49",
"version": "10.0.50",
"compatibility": {
"minimum": "10",
"verified": "11"
},
"title": "Hero System v6 for FoundrtVTT (Official)",
"manifest": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/raw/branch/main/system.json",
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/archive/fvtt-hero-system-6-v10.0.49.zip",
"download": "https://www.uberwald.me/gitea/uberwald/fvtt-hero-system-6/archive/fvtt-hero-system-6-v10.0.50.zip",
"url": "https://www.uberwald.me/gitea/uberwald/",
"background": "images/ui/hero6_welcome_page.webp",
"id": "fvtt-hero-system-6"