Fix init creature + minor changes
This commit is contained in:
parent
1bbefd3499
commit
1ac9605f08
16
lang/fr.json
16
lang/fr.json
@ -106,8 +106,8 @@
|
|||||||
"BOL.ui.success": "Succès",
|
"BOL.ui.success": "Succès",
|
||||||
"BOL.ui.failure": "Échec",
|
"BOL.ui.failure": "Échec",
|
||||||
"BOL.ui.fumble": "Échec critique",
|
"BOL.ui.fumble": "Échec critique",
|
||||||
"BOL.ui.critical": "Succès critique",
|
"BOL.ui.critical": "Succès Héroïque",
|
||||||
"BOL.ui.criticallegend": "Succès légendaire !",
|
"BOL.ui.criticallegend": "Succès Légendaire !",
|
||||||
"BOL.ui.maneuvers": "Actions de combat",
|
"BOL.ui.maneuvers": "Actions de combat",
|
||||||
"BOL.ui.stacksize": "Taille de pile (max)",
|
"BOL.ui.stacksize": "Taille de pile (max)",
|
||||||
"BOL.ui.weapons": "Armes",
|
"BOL.ui.weapons": "Armes",
|
||||||
@ -522,7 +522,17 @@
|
|||||||
"BOL.chat.horoscopemajorgroupfailure": "Votre horoscope majeur de groupe est un échec. Vous et vos amis souffrez de {careerBonus} dés malus pendant cette aventure.",
|
"BOL.chat.horoscopemajorgroupfailure": "Votre horoscope majeur de groupe est un échec. Vous et vos amis souffrez de {careerBonus} dés malus pendant cette aventure.",
|
||||||
"BOL.chat.usedhoroscope": "Horoscope utilisé",
|
"BOL.chat.usedhoroscope": "Horoscope utilisé",
|
||||||
"BOL.chat.horoscopedeleted": "Le(s) Horoscopes utilisé(s) a/ont été supprimé(s) automatiquement.",
|
"BOL.chat.horoscopedeleted": "Le(s) Horoscopes utilisé(s) a/ont été supprimé(s) automatiquement.",
|
||||||
|
"BOL.chat.criticaloptions": "Succès critique !! Vous pouvez faire (1 option au choix) :",
|
||||||
|
"BOL.chat.criticalcarnage": "Faire un Carnage : vous avez une attaque gratuite supplémentaire. Cette seconde attaque ne peut bénéficier d'un Point d'Héroisme.",
|
||||||
|
"BOL.chat.criticalplus6": "Coup Dévastateur : +6 aux dommages (cf bouton ci-dessous).",
|
||||||
|
"BOL.chat.criticalprecise": "Coup Précis : Vous frappez pour diminuer les capacités de votre adversaire. Décrivez ce que vous faites, et si le MJ l'accepte, votre opposant subira un Dé de Malus pour les actions concernées.",
|
||||||
|
"BOL.chat.criticalunarm": "Désarmement : Si votre adversaire a une arme en main, vous le désarmez.",
|
||||||
|
"BOL.chat.criticalrabble": "Massacrer la piétaille : Si vous combattez de la Piétaille, les résultats des dommages indiquent le nombre d'adversaires mis hors de combat.",
|
||||||
|
"BOL.chat.criticalpush": "Renversement : Si la taille le permet, vous poussez votre adversaire au sol, il souffrira d'1 Dé de Malus pour toutes ses actions au round suivant.",
|
||||||
|
"BOL.chat.criticalup": "Transformer en Légendaire : En dépensant 1 point d'Héroisme, vous pouvez transformer ce Succès Héroïque en Légendaire, qui vous permet de prendre 2 options dans la liste ci-dessus (cf. bouton pour un +12 aux dommages par exemple).",
|
||||||
|
"BOL.chat.criticalinfo": "C'est un succès Héroïque ou Légendaire ! Choisissez vos options et effets !",
|
||||||
|
"BOL.chat.criticalbuttonjournal": "Succès Héroïque/Légendaire",
|
||||||
|
|
||||||
"BOL.dialog.soeasy": "Inmanquable (+4)",
|
"BOL.dialog.soeasy": "Inmanquable (+4)",
|
||||||
"BOL.dialog.veryeasy": "Trés Facile (+2)",
|
"BOL.dialog.veryeasy": "Trés Facile (+2)",
|
||||||
"BOL.dialog.easy": "Facile (+1)",
|
"BOL.dialog.easy": "Facile (+1)",
|
||||||
|
@ -756,6 +756,14 @@ export class BoLActor extends Actor {
|
|||||||
this.unsetFlag("world", "last-initiative" )
|
this.unsetFlag("world", "last-initiative" )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*-------------------------------------------- */
|
||||||
|
getSize() {
|
||||||
|
if (this.system.details.size.length > 0 && game.bol.config.creatureSize[this.system.details.size]) {
|
||||||
|
return game.bol.config.creatureSize[this.system.details.size].order
|
||||||
|
}
|
||||||
|
return game.bol.config.creatureSize["medium"].order // Medium size per default
|
||||||
|
}
|
||||||
|
|
||||||
/*-------------------------------------------- */
|
/*-------------------------------------------- */
|
||||||
getInitiativeRank(rollData = undefined, isCombat = false) {
|
getInitiativeRank(rollData = undefined, isCombat = false) {
|
||||||
if (!rollData) {
|
if (!rollData) {
|
||||||
@ -787,6 +795,17 @@ export class BoLActor extends Actor {
|
|||||||
if ( this.getCharType() == 'tough') {
|
if ( this.getCharType() == 'tough') {
|
||||||
fvttInit = 6
|
fvttInit = 6
|
||||||
}
|
}
|
||||||
|
if ( this.getCharType() == 'creature') {
|
||||||
|
let mySize = this.getSize()
|
||||||
|
let sizeSmall = game.bol.config.creatureSize["small"].order
|
||||||
|
let sizeMedium = game.bol.config.creatureSize["medium"].order
|
||||||
|
if ( mySize >= sizeSmall && mySize <= sizeMedium) {
|
||||||
|
fvttInit = 6
|
||||||
|
}
|
||||||
|
if ( mySize > sizeMedium) {
|
||||||
|
fvttInit = 7
|
||||||
|
}
|
||||||
|
}
|
||||||
return fvttInit
|
return fvttInit
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,7 +35,7 @@ export class BoLCombatManager extends Combat {
|
|||||||
nextRound() {
|
nextRound() {
|
||||||
let combatants = this.combatants.contents
|
let combatants = this.combatants.contents
|
||||||
for (let c of combatants) {
|
for (let c of combatants) {
|
||||||
let actor = game.actors.get( c.data.actorId )
|
let actor = game.actors.get( c.actorId )
|
||||||
actor.clearRoundModifiers()
|
actor.clearRoundModifiers()
|
||||||
}
|
}
|
||||||
super.nextRound()
|
super.nextRound()
|
||||||
@ -45,7 +45,7 @@ export class BoLCombatManager extends Combat {
|
|||||||
_onDelete() {
|
_onDelete() {
|
||||||
let combatants = this.combatants.contents
|
let combatants = this.combatants.contents
|
||||||
for (let c of combatants) {
|
for (let c of combatants) {
|
||||||
let actor = game.actors.get(c.data.actorId)
|
let actor = game.actors.get(c.actorId)
|
||||||
actor.clearInitiative()
|
actor.clearInitiative()
|
||||||
}
|
}
|
||||||
super._onDelete()
|
super._onDelete()
|
||||||
|
@ -313,18 +313,18 @@ BOL.bougetteDice = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
BOL.creatureSize = {
|
BOL.creatureSize = {
|
||||||
"tiny": "BOL.size.tiny",
|
"tiny": {order: 1, label: "BOL.size.tiny"},
|
||||||
"verysmall": "BOL.size.verysmall",
|
"verysmall": {order: 2, label: "BOL.size.verysmall"},
|
||||||
"small": "BOL.size.small",
|
"small": {order: 3, label: "BOL.size.small"},
|
||||||
"medium": "BOL.size.medium",
|
"medium": {order: 4, label: "BOL.size.medium"},
|
||||||
"large": "BOL.size.large",
|
"large": {order: 5, label: "BOL.size.large"},
|
||||||
"verylarge": "BOL.size.verylarge",
|
"verylarge": {order: 6, label: "BOL.size.verylarge"},
|
||||||
"huge": "BOL.size.huge",
|
"huge": {order: 7, label: "BOL.size.huge"},
|
||||||
"massive": "BOL.size.massive",
|
"massive": {order: 8, label: "BOL.size.massive"},
|
||||||
"enormous": "BOL.size.enormous",
|
"enormous": {order: 9, label: "BOL.size.enormous"},
|
||||||
"gigantic": "BOL.size.gigantic",
|
"gigantic": {order: 10, label: "BOL.size.gigantic"},
|
||||||
"immense": "BOL.size.immense",
|
"immense": {order: 11, label: "BOL.size.immense"},
|
||||||
"colossal": "BOL.size.colossal"
|
"colossal": {order: 12, label: "BOL.size.colossal"}
|
||||||
}
|
}
|
||||||
|
|
||||||
BOL.horoscopeAnswer = {
|
BOL.horoscopeAnswer = {
|
||||||
|
File diff suppressed because one or more lines are too long
@ -14,7 +14,7 @@
|
|||||||
],
|
],
|
||||||
"url": "https://www.uberwald.me/gitea/public/bol",
|
"url": "https://www.uberwald.me/gitea/public/bol",
|
||||||
"license": "LICENSE.txt",
|
"license": "LICENSE.txt",
|
||||||
"version": "10.5.0",
|
"version": "10.5.1",
|
||||||
"compatibility": {
|
"compatibility": {
|
||||||
"minimum": "10",
|
"minimum": "10",
|
||||||
"verified": "10",
|
"verified": "10",
|
||||||
@ -203,7 +203,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.5.0.zip",
|
"download": "https://www.uberwald.me/gitea/public/bol/archive/bol-v10.5.1.zip",
|
||||||
"background": "systems/bol/ui/page_accueil.webp",
|
"background": "systems/bol/ui/page_accueil.webp",
|
||||||
"gridDistance": 1.5,
|
"gridDistance": 1.5,
|
||||||
"gridUnits": "m",
|
"gridUnits": "m",
|
||||||
|
@ -74,9 +74,9 @@
|
|||||||
data-dtype='String'
|
data-dtype='String'
|
||||||
>
|
>
|
||||||
{{#select details.size}}
|
{{#select details.size}}
|
||||||
{{#each config.creatureSize as |value id|}}
|
{{#each config.creatureSize as |sizeData id|}}
|
||||||
<option value="{{id}}">
|
<option value="{{id}}">
|
||||||
{{localize value}}
|
{{localize sizeData.label}}
|
||||||
</option>
|
</option>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{/select}}
|
{{/select}}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
<button class="chat-damage-roll bol-margin-tb-2" data-damage-mode="normal-damage" data-attack-id="{{id}}">{{localize "BOL.chat.rolldamage"}}</button>
|
<button class="chat-damage-roll bol-margin-tb-2" data-damage-mode="normal-damage" data-attack-id="{{id}}">{{localize "BOL.chat.rolldamage"}}</button>
|
||||||
|
|
||||||
{{#if isCritical}}
|
{{#if isCritical}}
|
||||||
<button class="chat-damage-roll bol-margin-tb-2 " data-damage-mode="damage-plus-6" data-attack-id="{{id}}">{{localize "BOL.chat.rolldamage6"}}</button>
|
<button class="chat-damage-roll bol-margin-tb-2 " data-damage-mode="damage-plus-6" data-attack-id="{{id}}">{{localize "BOL.chat.rolldamage6"}}</button>
|
||||||
<button class="chat-damage-roll bol-margin-tb-2" data-damage-mode="damage-plus-12" data-attack-id="{{id}}">{{localize "BOL.chat.rolldamage12"}}</button>
|
<button class="chat-damage-roll bol-margin-tb-2" data-damage-mode="damage-plus-12" data-attack-id="{{id}}">{{localize "BOL.chat.rolldamage12"}}</button>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
@ -55,9 +55,13 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
{{#if isRealCritical}}
|
{{#if isCritical}}
|
||||||
|
<div>
|
||||||
|
{{localize "BOL.chat.criticalinfo"}}
|
||||||
|
</div>
|
||||||
<div class="bol-margin-tb-2">
|
<div class="bol-margin-tb-2">
|
||||||
<a class="content-link" draggable="true" data-uuid="Compendium.bol.aides-de-jeu.Yl1RKQb0BjVUtilk" data-id="Yl1RKQb0BjVUtilk" data-type="JournalEntry" data-pack="bol.aides-de-jeu" data-tooltip="un journal"><i class="fas fa-book-open"></i>Succès Héroïque</a>
|
<a class="content-link" draggable="true" data-uuid="Compendium.bol.aides-de-jeu.Yl1RKQb0BjVUtilk" data-id="Yl1RKQb0BjVUtilk" data-type="JournalEntry" data-pack="bol.aides-de-jeu" data-tooltip="un journal">
|
||||||
|
<i class="fas fa-book-open"></i>{{localize "BOL.chat.criticalbuttonjournal"}}</a>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user