forked from public/foundryvtt-reve-de-dragon
		
	Enchantement des gemmes et potions
This commit is contained in:
		
							
								
								
									
										50
									
								
								templates/enchantement/dialog-enchanter.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										50
									
								
								templates/enchantement/dialog-enchanter.hbs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,50 @@ | ||||
| <form class="rdd-dialog-enchanter"> | ||||
|   <img class="chat-icon" src="{{item.img}}" data-tooltip="Enchanter {{item.name}}" /> | ||||
|   <div class="flexcol"> | ||||
|     <h4>Enchanter {{item.name}}</h4> | ||||
|     <div class="flexrow"> | ||||
|       <label class="flex-grow">Points de rêve (actuels: {{item.system.pr}})</label> | ||||
|       <input class="attribute-value reve flex-shrink number-x2" | ||||
|         data-dtype="Number" type="number" min="0" max="50" | ||||
|         name="reve" value="{{reve}}" {{#unless options.isGM}}disabled{{/unless}}/> | ||||
|     </div> | ||||
|     {{#if (or options.isGM (not item.system.magique) item.system.purifie purification)}} | ||||
|       {{#each nouveauxpr as |nouveaupr idx|}} | ||||
|       <div class="flexrow"> | ||||
|         <label class="flex-grow">Enchantement de {{nouveaupr}} points de rêve</label> | ||||
|         <input class="attribute-value enchantement flex-shrink" type="checkbox" data-reve="{{nouveaupr}}" data-idx="{{idx}}" | ||||
|           {{#if (eq idx ../idx)}}checked{{/if}}> | ||||
|         </input> | ||||
|       </div> | ||||
|       {{/each}} | ||||
|     {{/if}} | ||||
|  | ||||
|     {{#if (or purification options.isGM)}} | ||||
|     <div class="flexrow"> | ||||
|       <label for="rendrepurifie">Purifier {{#if (and item.system.magique item.system.purifie)}}(déja purifiée){{/if}}</label> | ||||
|       <input class="attribute-value rendrepurifie" type="checkbox" name="rendrepurifie" | ||||
|       {{#unless options.isGM}} | ||||
|         {{#if item.system.magique}} | ||||
|           {{#if item.system.purifie}} | ||||
|             disabled | ||||
|           {{else if purification}} | ||||
|             checked disabled | ||||
|           {{/if}} | ||||
|         {{else}} | ||||
|           {{#unless purification}} | ||||
|             disabled | ||||
|           {{/unless}} | ||||
|         {{/if}} | ||||
|       {{/unless}} /> | ||||
|     </div> | ||||
|     {{/if}} | ||||
|  | ||||
|     {{#if (or permanence options.isGM)}} | ||||
|     <div class="flexrow"> | ||||
|       <label for="rendrepermanent">Potion permanente</label> | ||||
|       <input class="attribute-value rendrepermanent" type="checkbox" name="rendrepermanent"/> | ||||
|     </div> | ||||
|     {{/if}} | ||||
|   </div> | ||||
| </form> | ||||
|  | ||||
							
								
								
									
										34
									
								
								templates/enchantement/partial-enchantement.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										34
									
								
								templates/enchantement/partial-enchantement.hbs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,34 @@ | ||||
| {{#if isEnchantementPossible}} | ||||
|   <div class="form-group"> | ||||
|     <label for="system.magique">Magique {{#if system.magique}}<i class="fa-solid fa-sparkles"></i>{{/if}}</label> | ||||
|     <input class="attribute-value" type="checkbox" name="system.magique" {{#if system.magique}}checked{{/if}}/> | ||||
|     <label></label> | ||||
|   </div> | ||||
|   {{#if system.magique}} | ||||
|     <div class="form-group"> | ||||
|       <label for="system.pr">Points de rêve</label> | ||||
|       <input class="attribute-value" type="text" name="system.pr" value="{{system.pr}}" data-dtype="Number" /> | ||||
|     </div> | ||||
|     <div class="form-group"> | ||||
|       <label for="system.purifie">Purifiée</label> | ||||
|       <input class="attribute-value" type="checkbox" name="system.purifie"  {{#if system.purifie}}checked{{/if}}/> | ||||
|       <label></label> | ||||
|     </div> | ||||
|     <div class="form-group"> | ||||
|       <label for="system.prpermanent">Permanente</label> | ||||
|       <input class="attribute-value" type="checkbox" name="system.prpermanent"  {{#if system.prpermanent}}checked{{/if}}/> | ||||
|       <label></label> | ||||
|     </div> | ||||
|     <div class="form-group"> | ||||
|       <label for="enchantement.jour">Date de l'Enchantement : Jour/Mois (date actuelle : {{dateActuelle}})</label> | ||||
|     </div> | ||||
|     <div class="form-group"> | ||||
|       <input type="number" name="enchantement.jour" class="date-enchantement" value="{{enchantement.jour}}" data-dtype="Number" min="1" max="28"/> | ||||
|       <select name="enchantement.mois" class="date-enchantement" data-dtype="String"> | ||||
|           {{#select enchantement.mois}} | ||||
|           {{>"systems/foundryvtt-reve-de-dragon/templates/enum-heures.html"}} | ||||
|           {{/select}} | ||||
|         </select> | ||||
|     </div> | ||||
|   {{/if}} | ||||
| {{/if}} | ||||
		Reference in New Issue
	
	Block a user