#161 Amenagement sur beaute

This commit is contained in:
sladecraven 2021-02-21 22:24:39 +01:00
parent 1f61c955b7
commit e5738aaca3
3 changed files with 9 additions and 2 deletions

View File

@ -66,6 +66,7 @@ export class RdDActorSheet extends ActorSheet {
currentCarac.xpNext = RdDUtility.getCaracNextXp(currentCarac.value); currentCarac.xpNext = RdDUtility.getCaracNextXp(currentCarac.value);
currentCarac.isLevelUp = (currentCarac.xp >= currentCarac.xpNext); currentCarac.isLevelUp = (currentCarac.xp >= currentCarac.xpNext);
} }
sum += (data.data.beaute >= 0) ? (data.data.beaute - 10) : 0;
data.data.caracSum = sum; data.data.caracSum = sum;
// Force empty arme, at least for Esquive // Force empty arme, at least for Esquive

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT", "description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.3.22", "version": "1.3.23",
"manifestPlusVersion": "1.0.0", "manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.7.5", "minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.9", "compatibleCoreVersion": "0.7.9",

View File

@ -155,6 +155,11 @@
</div> </div>
<div class="flex-group-left flexcol" > <div class="flex-group-left flexcol" >
<ul class="carac-list"> <ul class="carac-list">
<li class="competence flexrow list-item">
<span class="competence-label flexrow" name="beaute">Beauté :
<input class="description-value" type="text" name="data.beaute" value="{{data.beaute}}" data-dtype="String" {{#unless @root.data.editCaracComp}}disabled{{/unless}}/>
</span>
</li>
{{#each data.attributs as |attr key|}} {{#each data.attributs as |attr key|}}
<li class="competence flexrow list-item" data-attribute="{{key}}"> <li class="competence flexrow list-item" data-attribute="{{key}}">
<span class="competence-label flexrow" name="data.attributs.{{key}}.label">{{attr.label}} : <span class="competence-label flexrow" name="data.attributs.{{key}}.label">{{attr.label}} :
@ -1038,7 +1043,8 @@
</li> </li>
<li class="item flexrow list-item"> <li class="item flexrow list-item">
<label class="description-label competence-label">Beauté : <label class="description-label competence-label">Beauté :
<input class="description-value flexrow" type="text" name="data.beaute" value="{{data.beaute}}" data-dtype="String"/> <label class="description-label competence-label">{{data.beaute}}
</label>
</label> </label>
</li> </li>
<li class="item flexrow list-item"> <li class="item flexrow list-item">