Roll window + Reroll #7
| @@ -33,9 +33,9 @@ Hooks.once('init', async function () { | |||||||
|    */ |    */ | ||||||
|   CONFIG.Combat.initiative = { |   CONFIG.Combat.initiative = { | ||||||
|     formula: "2d6+@attributes.mind.value+@aptitudes.init.value", |     formula: "2d6+@attributes.mind.value+@aptitudes.init.value", | ||||||
|     decimals: 2 |     decimals: 3 | ||||||
|   }; |   }; | ||||||
|   0 |    | ||||||
|   // Define custom Entity classes |   // Define custom Entity classes | ||||||
|   CONFIG.Actor.documentClass = BoLActor; |   CONFIG.Actor.documentClass = BoLActor; | ||||||
|   CONFIG.Item.documentClass = BoLItem; |   CONFIG.Item.documentClass = BoLItem; | ||||||
|   | |||||||
| @@ -44,7 +44,7 @@ export class BoLCombatManager extends Combat { | |||||||
|           fvttInit = 6 |           fvttInit = 6 | ||||||
|         }  |         }  | ||||||
|       } |       } | ||||||
|       fvttInit += (cId / 10) |       fvttInit += (cId / 100) | ||||||
|       await this.updateEmbeddedDocuments("Combatant", [{ _id: ids[cId], initiative: fvttInit }]); |       await this.updateEmbeddedDocuments("Combatant", [{ _id: ids[cId], initiative: fvttInit }]); | ||||||
|     } |     } | ||||||
|     console.log("TODO : Compute init for actor"); |     console.log("TODO : Compute init for actor"); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user