Use initiative
This commit is contained in:
parent
b798cde48d
commit
9a30275640
@ -463,7 +463,7 @@ export class Hero6Actor extends Actor {
|
|||||||
getBaseInit(turn) {
|
getBaseInit(turn) {
|
||||||
if ( turn != this.turn) {
|
if ( turn != this.turn) {
|
||||||
let r = new Roll("1d6").roll({ async: false })
|
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
|
this.turn = turn
|
||||||
}
|
}
|
||||||
return this.currentInit
|
return this.currentInit
|
||||||
|
@ -44,7 +44,7 @@ export class Hero6Combat extends Combat {
|
|||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
holdAction(combatantId) {
|
holdAction(combatantId) {
|
||||||
this.rebuildInitiative()
|
this.rebuildInitiative()
|
||||||
console.log("Rebuilding.....")
|
//console.log("Rebuilding.....")
|
||||||
}
|
}
|
||||||
|
|
||||||
/* -------------------------------------------- */
|
/* -------------------------------------------- */
|
||||||
@ -145,7 +145,7 @@ export class Hero6Combat extends Combat {
|
|||||||
}
|
}
|
||||||
if (updList.length > 0) {
|
if (updList.length > 0) {
|
||||||
await this.updateEmbeddedDocuments("Combatant", updList);
|
await this.updateEmbeddedDocuments("Combatant", updList);
|
||||||
console.log("Rebuild INIT", updList)
|
//console.log("Rebuild INIT", updList)
|
||||||
for (let c of updList) {
|
for (let c of updList) {
|
||||||
if (c.initiative != 0) {
|
if (c.initiative != 0) {
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user