Gestion de l'astrologie
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
<a class="item" data-tab="actions">{{localize "BOL.ui.tab.actions"}}</a>
|
||||
<a class="item" data-tab="features">{{localize "BOL.ui.tab.features"}}</a>
|
||||
<a class="item" data-tab="equipment">{{localize "BOL.ui.tab.equipment"}}</a>
|
||||
{{#if (or isSorcerer isAlchemist)}}
|
||||
{{#if isMysteries}}
|
||||
<a class="item" data-tab="spellalchemy">{{localize "BOL.ui.tab.spellalchemy"}}</a>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
@@ -66,7 +66,7 @@
|
||||
{{> "systems/bol/templates/actor/parts/tabs/actor-features.hbs"}}
|
||||
</div>
|
||||
|
||||
{{#if (or isSorcerer isAlchemist)}}
|
||||
{{#if isMysteries}}
|
||||
<div class="tab features" data-group="primary" data-tab="spellalchemy">
|
||||
{{> "systems/bol/templates/actor/parts/tabs/actor-spellalchemy.hbs"}}
|
||||
</div>
|
||||
|
@@ -21,6 +21,7 @@
|
||||
</div>
|
||||
<div class="item-field flex1 right">
|
||||
<a class="item-control item-edit" title="{{localize "BOL.ui.edit"}}"><i class="fas fa-square"></i></a>
|
||||
|
||||
<a class="item-control item-delete" title="{{localize "BOL.ui.delete"}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
@@ -57,9 +58,74 @@
|
||||
</div>
|
||||
<div class="item-field flex1 right">
|
||||
<a class="item-control item-edit" title="{{localize "BOL.ui.edit"}}"><i class="fas fa-square"></i></a>
|
||||
|
||||
<a class="item-control item-delete" title="{{localize "BOL.ui.delete"}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/if}}
|
||||
|
||||
<!--ASTROLOGIE-->
|
||||
{{#if isAstrologer}}
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-name flex4 left">{{localize "BOL.ui.astrologerPoints"}}</div>
|
||||
<div class="item-name flex4 left"> </div>
|
||||
</li>
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<h4 class="item-name flex4 left">
|
||||
<div class="item-image"><img src="icons/magic/perception/hand-eye-fire-blue.webp" /></div>
|
||||
{{localize "BOL.ui.astrologerPointsLabel"}}
|
||||
</h4>
|
||||
<input class="field-value" type="text" name="system.resources.astrologypoints.value" value="{{resources.astrologypoints.value}}" data-dtype="Number"/>
|
||||
</li>
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<h4 class="item-name flex4 left">
|
||||
<div class="item-image"><img src="icons/magic/perception/eye-ringed-glow-angry-large-teal.webp" /></div>
|
||||
<a class="rollable" data-roll-type="horoscope-minor">{{localize "BOL.ui.astrologyMinor"}} <i class="darkgreen fas fa-dice"></i></a>
|
||||
</h4>
|
||||
<h4 class="item-name flex4 left">
|
||||
<div class="item-image"><img src="icons/magic/perception/eye-ringed-glow-angry-large-red.webp" /></div>
|
||||
<a class="rollable" data-roll-type="horoscope-major">{{localize "BOL.ui.astrologyMajor"}} <i class="darkgreen fas fa-dice"></i></a>
|
||||
</h4>
|
||||
</li>
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<h4 class="item-name flex4 left">
|
||||
<div class="item-image"><img src="icons/magic/perception/eye-ringed-glow-angry-large-red.webp" /></div>
|
||||
<a class="rollable" data-roll-type="horoscope-major-group">{{localize "BOL.ui.astrologyMajorGroup"}} <i class="darkgreen fas fa-dice"></i></a>
|
||||
</h4>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
<ol class="items-list">
|
||||
<li class="item flexrow item-header">
|
||||
<div class="item-name flex4 left">{{localize "BOL.ui.astrology"}}</div>
|
||||
<div class="item-field flex2 center">{{localize "BOL.ui.type"}}</div>
|
||||
<div class="item-field flex2 center">{{localize "BOL.ui.answer"}}</div>
|
||||
<div class="item-field flex1 right"></div>
|
||||
</li>
|
||||
{{#each horoscopes as |item id|}}
|
||||
<li class="item flexrow" data-item-id="{{item._id}}">
|
||||
<h4 class="item-name flex4 left">
|
||||
<div class="item-image"><img src="{{item.img}}" title="{{item.name}}"/></div>{{item.name}}
|
||||
</h4>
|
||||
<div class="item-field flex2 center">
|
||||
{{#if item.system.properties.ishoroscopemajor}}
|
||||
<span class="item-field">Majeur (de groupe)</span>
|
||||
{{else}}
|
||||
<span class="item-field">Mineur</span>
|
||||
{{/if}}
|
||||
</div>
|
||||
<div class="item-field flex2 center">
|
||||
<span class="item-field">{{localize (concat 'BOL.ui.horoscope' item.system.properties.horoscopeanswer)}}</span>
|
||||
</div>
|
||||
<div class="item-field flex1 right">
|
||||
<a class="item-control item-edit" title="{{localize "BOL.ui.edit"}}"><i class="fas fa-square"></i></a>
|
||||
|
||||
<a class="item-control item-delete" title="{{localize "BOL.ui.delete"}}"><i class="fas fa-trash"></i></a>
|
||||
</div>
|
||||
</li>
|
||||
{{/each}}
|
||||
</ol>
|
||||
{{/if}}
|
@@ -46,34 +46,19 @@
|
||||
<hr/>
|
||||
<div class="resources flexrow">
|
||||
{{#each resources as |resource id|}}
|
||||
{{#if (eq resource.key "alchemypoints")}}
|
||||
{{#if @root.isAlchemist}}
|
||||
<div class="resource stat flex1 flex-group-center">
|
||||
<label class="stat-label">{{localize label}}</label><br/>
|
||||
<input class="stat-value resources-value" type="text" name="system.resources.{{key}}.value" value="{{numberFormat value decimals=0 sign=false}}" data-dtype="Number"/>
|
||||
{{#if (eq @root.chartype 'player')}}
|
||||
{{#if (exists bonus)}}
|
||||
<span class="flexrow"><label class="stat-max bonus-text">Bonus</label><input class="resource-bonus resources-value" type="text" name="system.resources.{{key}}.bonus" value="{{numberFormat bonus decimals=0 sign=false}}" data-dtype="Number"/></span>
|
||||
{{else}}
|
||||
<span class="flexrow"><label class="stat-max resources-value"> </label><input class="resource-bonus resources-novalue" type="text" value="" disabled></span>
|
||||
{{#if resource.ismain}}
|
||||
<div class="resource stat flex1 flex-group-center">
|
||||
<label class="stat-label">{{localize label}}</label><br/>
|
||||
<input class="stat-value resources-value" type="text" name="system.resources.{{key}}.value" value="{{numberFormat value decimals=0 sign=false}}" data-dtype="Number"/>
|
||||
{{#if (eq @root.charType 'player')}}
|
||||
{{#if (exists bonus)}}
|
||||
<span class="flexrow"><label class="stat-max bonus-text">Bonus</label><input class="resource-bonus resources-value" type="text" name="system.resources.{{key}}.bonus" value="{{numberFormat bonus decimals=0 sign=false}}" data-dtype="Number"/></span>
|
||||
{{else}}
|
||||
<span class="flexrow"><label class="stat-max"> </label><input class="resource-bonus resources-novalue" type="text" value="" disabled></span>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<input class="resources-value" type="text" name="system.resources.{{key}}.max" value="{{numberFormat max decimals=0 sign=false}}" data-dtype="Number"/>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{else}}
|
||||
<div class="resource stat flex1 flex-group-center">
|
||||
<label class="stat-label">{{localize label}}</label><br/>
|
||||
<input class="stat-value resources-value" type="text" name="system.resources.{{key}}.value" value="{{numberFormat value decimals=0 sign=false}}" data-dtype="Number"/>
|
||||
{{#if (eq @root.chartype 'player')}}
|
||||
{{#if (exists bonus)}}
|
||||
<span class="flexrow"><label class="stat-max bonus-text">Bonus</label><input class="resource-bonus resources-value" type="text" name="system.resources.{{key}}.bonus" value="{{numberFormat bonus decimals=0 sign=false}}" data-dtype="Number"/></span>
|
||||
{{else}}
|
||||
<span class="flexrow"><label class="stat-max"> </label><input class="resource-bonus resources-novalue" type="text" value="" disabled></span>
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
<input class="resources-value" type="text" name="system.resources.{{key}}.max" value="{{numberFormat max decimals=0 sign=false}}" data-dtype="Number"/>
|
||||
</div>
|
||||
<input class="resources-value" type="text" name="system.resources.{{key}}.max" value="{{numberFormat max decimals=0 sign=false}}" data-dtype="Number"/>
|
||||
</div>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
@@ -70,7 +70,14 @@
|
||||
{{#if alchemy}}
|
||||
{{> "systems/bol/templates/chat/rolls/alchemy-roll-card.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (eq mode "horoscope")}}
|
||||
{{> "systems/bol/templates/chat/rolls/horoscope-roll-card.hbs"}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (count selectedHoroscope)}}
|
||||
{{> "systems/bol/templates/chat/rolls/selected-horoscope-roll-card.hbs"}}
|
||||
{{/if}}
|
||||
|
||||
{{#if reroll}}
|
||||
<button class="chat-button button hero-reroll bol-margin-tb-2" data-roll-id=="{{rollId}}" data-actor-id="{{actor.id}}">{{localize "BOL.chat.reroll"}}</button>
|
||||
{{/if}}
|
||||
|
26
templates/chat/rolls/horoscope-roll-card.hbs
Normal file
26
templates/chat/rolls/horoscope-roll-card.hbs
Normal file
@@ -0,0 +1,26 @@
|
||||
<h4><strong>{{localize "BOL.chat.horoscope"}} {{localize horoscopeTypeLabel}}</strong></h4>
|
||||
<h4><strong>{{localize "BOL.chat.horoscopepoints" points=astrologyPointsCost}}</strong></h4>
|
||||
|
||||
{{#if (eq horoscopeType "minor")}}
|
||||
{{#if isSuccess}}
|
||||
{{localize "BOL.chat.horoscopeminorsuccess"}}
|
||||
{{else}}
|
||||
{{localize "BOL.chat.horoscopeminorfailure"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq horoscopeType "major")}}
|
||||
{{#if isSuccess}}
|
||||
{{localize "BOL.chat.horoscopemajorsuccess"}}
|
||||
{{else}}
|
||||
{{localize "BOL.chat.horoscopemajorfailure"}}
|
||||
{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#if (eq horoscopeType "majorgroup")}}
|
||||
{{#if isSuccess}}
|
||||
{{localize "BOL.chat.horoscopemajorgroupsuccess" careerBonus=careerBonus}}
|
||||
{{else}}
|
||||
{{localize "BOL.chat.horoscopemajorgroupfailure" careerBonus=careerBonus}}
|
||||
{{/if}}
|
||||
{{/if}}
|
8
templates/chat/rolls/selected-horoscope-roll-card.hbs
Normal file
8
templates/chat/rolls/selected-horoscope-roll-card.hbs
Normal file
@@ -0,0 +1,8 @@
|
||||
<div>
|
||||
{{#each selectedHoroscope as |horo id|}}
|
||||
{{localize "BOL.chat.usedhoroscope"}} : {{horo.name}}
|
||||
{{/each}}
|
||||
</div>
|
||||
|
||||
<div>{{localize "BOL.chat.horoscopedeleted"}}</div>
|
||||
|
@@ -34,6 +34,8 @@
|
||||
|
||||
{{> "systems/bol/templates/dialogs/effect-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/horoscope-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
|
||||
|
@@ -16,6 +16,8 @@
|
||||
|
||||
{{> "systems/bol/templates/dialogs/flaws-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/horoscope-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/effect-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
|
||||
|
39
templates/dialogs/horoscope-roll-dialog.hbs
Normal file
39
templates/dialogs/horoscope-roll-dialog.hbs
Normal file
@@ -0,0 +1,39 @@
|
||||
<form class="{{cssClass}}" autocomplete="off">
|
||||
{{!-- Sheet Header --}}
|
||||
<header class="sheet-header">
|
||||
<div class="row flexrow table-header">
|
||||
<div class="flex1 center">
|
||||
<h3>{{localize 'BOL.ui.makeHoroscope'}} {{localize horoscopeTypeLabel}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
{{> "systems/bol/templates/dialogs/attribute-roll-part.hbs"}}
|
||||
|
||||
<div class="flexrow" style="margin-bottom: 1px;">
|
||||
<div class="flex1 center bg-darkred">
|
||||
<label for="mod">{{localize 'BOL.ui.astrologerRank'}}</label>
|
||||
</div>
|
||||
<div class="flex1 center cell">{{careerBonus}}</div>
|
||||
</div>
|
||||
|
||||
<div class="flexrow" style="margin-bottom: 1px;">
|
||||
<div class="flex1 center bg-darkred">
|
||||
<label for="mod">{{localize 'BOL.ui.horoscopeCost'}}</label>
|
||||
</div>
|
||||
<div class="flex1 center cell" id="astrologyPointsCost">{{astrologyPointsCost}}</div>
|
||||
</div>
|
||||
|
||||
{{> "systems/bol/templates/dialogs/boons-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/flaws-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/effect-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/adv-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/mod-roll-part.hbs"}}
|
||||
|
||||
{{> "systems/bol/templates/dialogs/total-roll-part.hbs"}}
|
||||
|
||||
</form>
|
49
templates/dialogs/horoscope-roll-part.hbs
Normal file
49
templates/dialogs/horoscope-roll-part.hbs
Normal file
@@ -0,0 +1,49 @@
|
||||
{{#if (count horoscopeBonusList)}}
|
||||
<div class='flexrow roll-box'>
|
||||
<div class='flex1 center bg-darkred'>
|
||||
<label for='mod'>
|
||||
{{localize 'BOL.ui.horoscopesBonus'}}
|
||||
</label>
|
||||
</div>
|
||||
<div class='flex1 center cell'>
|
||||
<select
|
||||
class='flex1'
|
||||
name='horoscope-bonus-applied'
|
||||
id='horoscope-bonus-applied'
|
||||
data-type='String'
|
||||
multiple
|
||||
>
|
||||
{{#each horoscopeBonusList as |horoscope id|}}
|
||||
<option value="{{id}}">
|
||||
{{horoscope.name}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
||||
|
||||
{{#if (count horoscopeMalusList)}}
|
||||
<div class='flexrow roll-box'>
|
||||
<div class='flex1 center bg-darkred'>
|
||||
<label for='mod'>
|
||||
{{localize 'BOL.ui.horoscopesMalus'}}
|
||||
</label>
|
||||
</div>
|
||||
<div class='flex1 center cell'>
|
||||
<select
|
||||
class='flex1'
|
||||
name='horoscope-malus-applied'
|
||||
id='horoscope-malus-applied'
|
||||
data-type='String'
|
||||
multiple
|
||||
>
|
||||
{{#each horoscopeMalusList as |horoscope id|}}
|
||||
<option value="{{id}}">
|
||||
{{horoscope.name}}
|
||||
</option>
|
||||
{{/each}}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{{/if}}
|
@@ -27,3 +27,6 @@
|
||||
{{#if (equals item.system.subtype "boleffect")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/effect-properties.hbs"}}
|
||||
{{/if}}
|
||||
{{#if (equals item.system.subtype "horoscope")}}
|
||||
{{> "systems/bol/templates/item/parts/properties/feature/horoscope-properties.hbs"}}
|
||||
{{/if}}
|
||||
|
@@ -15,3 +15,7 @@
|
||||
<label class="property-label">{{localize "BOL.ui.isPriest"}}</label>
|
||||
<input class="field-value" type="checkbox" name="system.properties.priest" {{checked item.system.properties.priest}}>
|
||||
</div>
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.isAstrologer"}}</label>
|
||||
<input class="field-value" type="checkbox" name="system.properties.astrologer" {{checked item.system.properties.astrologer}}>
|
||||
</div>
|
||||
|
@@ -0,0 +1,17 @@
|
||||
<h3 class="form-header">{{localize 'BOL.featureSubtypes.horoscope'}}</h3>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.answer"}}</label>
|
||||
<select name="system.properties.horoscopeanswer" data-dtype="String">
|
||||
{{#select item.system.properties.horoscopeanswer}}
|
||||
{{#each config.horoscopeAnswer as |item id|}}
|
||||
<option value="{{id}}">{{localize item}}</option>
|
||||
{{/each}}
|
||||
{{/select}}
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="property flexrow">
|
||||
<label class="property-label">{{localize "BOL.ui.rank"}}</label>
|
||||
<input class="field-value" type="text" name="system.properties.rank" value={{item.system.properties.rank}} data-type="Number">
|
||||
</div>
|
Reference in New Issue
Block a user