Correction des bonus des Cyans
This commit is contained in:
@@ -76,7 +76,7 @@ export class RdDItemRace extends RdDItem {
|
||||
ui.notifications.warn("La Taille est inférieur au minimum racial")
|
||||
return min
|
||||
}
|
||||
const raceMax = this.system.carac.taille.max;
|
||||
const raceMax = this.system.carac.taille.max == undefined ? 15 + this.system.carac.taille.value : this.system.carac.taille.max
|
||||
const max = raceMax < 0 ? taille + 1 : raceMax
|
||||
if (max < taille) {
|
||||
ui.notifications.warn("La Taille est supérieure au maximum racial")
|
||||
|
||||
@@ -2684,11 +2684,11 @@ items:
|
||||
descriptionmj: ''
|
||||
carac:
|
||||
taille:
|
||||
value: 1
|
||||
value: 0
|
||||
min: 6
|
||||
max: null
|
||||
apparence:
|
||||
value: 0
|
||||
value: 1
|
||||
constitution:
|
||||
value: 0
|
||||
force:
|
||||
|
||||
@@ -6,11 +6,11 @@ system:
|
||||
descriptionmj: ''
|
||||
carac:
|
||||
taille:
|
||||
value: 1
|
||||
value: 0
|
||||
min: 6
|
||||
max: 15
|
||||
apparence:
|
||||
value: 0
|
||||
value: 1
|
||||
constitution:
|
||||
value: 0
|
||||
force:
|
||||
|
||||
@@ -31,25 +31,18 @@
|
||||
name="system.carac.force.limitmessage"
|
||||
value="{{@root.system.carac.force.limitmessage}}" />
|
||||
</div>
|
||||
<hr/>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label for="system.attributs.protection.value">{{carac-label 'protection'}}</label>
|
||||
<input type="number" data-dtype="number"
|
||||
name="system.attributs.protection.value"
|
||||
value="{{system.attributs.protection.value}}" />
|
||||
</div>
|
||||
<hr/>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label>Caractéristique</label>
|
||||
<label class="flex-group-right">Bonus</label>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="system.background.beaute.value">{{carac-label 'beaute'}}</label>
|
||||
<input type="number" data-dtype="number"
|
||||
name="system.background.beaute.value"
|
||||
value="{{system.background.beaute.value}}" />
|
||||
</div>
|
||||
<div class="form-group"></div>
|
||||
{{#each system.carac as |carac key|}}
|
||||
<div class="form-group">
|
||||
<label for="system.carac.{{key}}.value">{{carac-label key}}</label>
|
||||
@@ -58,7 +51,14 @@
|
||||
value="{{carac.value}}" />
|
||||
</div>
|
||||
{{/each}}
|
||||
<hr/>
|
||||
<hr>
|
||||
<div class="form-group">
|
||||
<label for="system.background.beaute.value">{{carac-label 'beaute'}}</label>
|
||||
<input type="number" data-dtype="number"
|
||||
name="system.background.beaute.value"
|
||||
value="{{system.background.beaute.value}}" />
|
||||
</div>
|
||||
<hr>
|
||||
{{>"systems/foundryvtt-reve-de-dragon/templates/item/partial-description.hbs"}}
|
||||
</section>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user