Update spells structure + minor changes
This commit is contained in:
		
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 31 KiB | 
							
								
								
									
										
											BIN
										
									
								
								images/icons/skill1.webp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								images/icons/skill1.webp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 17 KiB | 
										
											Binary file not shown.
										
									
								
							| Before Width: | Height: | Size: 30 KiB | 
							
								
								
									
										
											BIN
										
									
								
								images/icons/spell1.webp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								images/icons/spell1.webp
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| After Width: | Height: | Size: 15 KiB | 
| @@ -16,7 +16,7 @@ export class Avd12ItemSheet extends ItemSheet { | |||||||
|       template: "systems/fvtt-avd12/templates/item-sheet.hbs", |       template: "systems/fvtt-avd12/templates/item-sheet.hbs", | ||||||
|       dragDrop: [{ dragSelector: null, dropSelector: null }], |       dragDrop: [{ dragSelector: null, dropSelector: null }], | ||||||
|       width: 620, |       width: 620, | ||||||
|       height: 550, |       height: 'fit-content', | ||||||
|       tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }] |       tabs: [{ navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description" }] | ||||||
|     }); |     }); | ||||||
|   } |   } | ||||||
|   | |||||||
| @@ -5,7 +5,7 @@ export class Avd12RollDialog extends Dialog { | |||||||
|   /* -------------------------------------------- */ |   /* -------------------------------------------- */ | ||||||
|   static async create(actor, rollData) { |   static async create(actor, rollData) { | ||||||
|  |  | ||||||
|     let options = { classes: ["Avd12Dialog"], width: 540, height: 340, 'z-index': 99999 }; |     let options = { classes: ["Avd12Dialog"], width: 540, height: 'fit-content', 'z-index': 99999 }; | ||||||
|     let html = await renderTemplate('systems/fvtt-avd12/templates/dialogs/roll-dialog-generic.html', rollData); |     let html = await renderTemplate('systems/fvtt-avd12/templates/dialogs/roll-dialog-generic.html', rollData); | ||||||
|  |  | ||||||
|     return new CrucibleRollDialog(actor, rollData, html, options); |     return new CrucibleRollDialog(actor, rollData, html, options); | ||||||
|   | |||||||
| @@ -152,12 +152,14 @@ export class Avd12Utility { | |||||||
|       'systems/fvtt-avd12/templates/items/partial-item-nav.hbs', |       'systems/fvtt-avd12/templates/items/partial-item-nav.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-item-description.hbs', |       'systems/fvtt-avd12/templates/items/partial-item-description.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs', |       'systems/fvtt-avd12/templates/items/partial-common-item-fields.hbs', | ||||||
|  |       'systems/fvtt-avd12/templates/items/partial-options-damage-types.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-options-weapon-types.hbs', |       'systems/fvtt-avd12/templates/items/partial-options-weapon-types.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-options-weapon-categories.hbs', |       'systems/fvtt-avd12/templates/items/partial-options-weapon-categories.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-options-attributes.hbs', |       'systems/fvtt-avd12/templates/items/partial-options-attributes.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-options-equipment-types.hbs', |       'systems/fvtt-avd12/templates/items/partial-options-equipment-types.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs', |       'systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-options-spell-levels.hbs', |       'systems/fvtt-avd12/templates/items/partial-options-spell-levels.hbs', | ||||||
|  |       'systems/fvtt-avd12/templates/items/partial-options-spell-schools.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-options-focus-bond.hbs', |       'systems/fvtt-avd12/templates/items/partial-options-focus-bond.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-options-focus-treatment.hbs', |       'systems/fvtt-avd12/templates/items/partial-options-focus-treatment.hbs', | ||||||
|       'systems/fvtt-avd12/templates/items/partial-options-focus-core.hbs', |       'systems/fvtt-avd12/templates/items/partial-options-focus-core.hbs', | ||||||
|   | |||||||
| @@ -35,7 +35,7 @@ | |||||||
|   ], |   ], | ||||||
|   "title": "AnyVenture D12 RPG", |   "title": "AnyVenture D12 RPG", | ||||||
|   "url": "https://www.uberwald.me/gitea/public/fvtt-avd12", |   "url": "https://www.uberwald.me/gitea/public/fvtt-avd12", | ||||||
|   "version": "10.0.7", |   "version": "10.0.8", | ||||||
|   "download": "https://www.uberwald.me/gitea/public/fvtt-avd12/archive/fvtt-avd12-v10.0.7.zip", |   "download": "https://www.uberwald.me/gitea/public/fvtt-avd12/archive/fvtt-avd12-v10.0.8.zip", | ||||||
|   "background": "systems/fvtt-avd12/images/ui/avd12_welcome_page.webp" |   "background": "systems/fvtt-avd12/images/ui/avd12_welcome_page.webp" | ||||||
| } | } | ||||||
| @@ -404,6 +404,15 @@ | |||||||
|     }, |     }, | ||||||
|     "spell": { |     "spell": { | ||||||
|       "spelltype": "", |       "spelltype": "", | ||||||
|  |       "actions": "", | ||||||
|  |       "chargeeffect": "", | ||||||
|  |       "school": "", | ||||||
|  |       "damage": "", | ||||||
|  |       "damagetype": "", | ||||||
|  |       "range": 0, | ||||||
|  |       "components": "", | ||||||
|  |       "reaction": false, | ||||||
|  |       "sustained": false, | ||||||
|       "level":"", |       "level":"", | ||||||
|       "value": 0, |       "value": 0, | ||||||
|       "description": "" |       "description": "" | ||||||
|   | |||||||
| @@ -44,8 +44,7 @@ | |||||||
|                 </li> |                 </li> | ||||||
|                   {{#each choice.features as |feature id|}} |                   {{#each choice.features as |feature id|}} | ||||||
|                   <li class="flexrow item" data-level-index="{{@../../index}}" data-choice-index="{{choiceIndex}}" data-feature-id="{{feature._id}}" > |                   <li class="flexrow item" data-level-index="{{@../../index}}" data-choice-index="{{choiceIndex}}" data-feature-id="{{feature._id}}" > | ||||||
|                     <label class="item-field-label-medium">{{feature.name}}</label> |                     <label class="item-field-label-long2">{{feature.name}}</label> | ||||||
|                     <label class="item-field-label-long2">{{{feature.descriptionHTML}}}</label> |  | ||||||
|                     <div class="item-controls item-controls-fixed"> |                     <div class="item-controls item-controls-fixed"> | ||||||
|                       <a class="item-control module-feature-delete" title="Delete Feature"><i class="fas fa-trash"></i></a> |                       <a class="item-control module-feature-delete" title="Delete Feature"><i class="fas fa-trash"></i></a> | ||||||
|                     </div> |                     </div> | ||||||
|   | |||||||
| @@ -25,7 +25,6 @@ | |||||||
|                 {{> systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs}} |                 {{> systems/fvtt-avd12/templates/items/partial-options-spell-types.hbs}} | ||||||
|               {{/select}} |               {{/select}} | ||||||
|             </select>  |             </select>  | ||||||
|  |  | ||||||
|           </li> |           </li> | ||||||
|  |  | ||||||
|           <li class="flexrow"> |           <li class="flexrow"> | ||||||
| @@ -37,6 +36,59 @@ | |||||||
|             </select>  |             </select>  | ||||||
|           </li> |           </li> | ||||||
|  |  | ||||||
|  |           <li class="flexrow"> | ||||||
|  |             <label class="item-field-label-long">Actions</label> | ||||||
|  |             <input type="text" class="item-field-label-long2" name="system.actions" value="{{system.actions}}" data-dtype="String"/>           | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="flexrow"> | ||||||
|  |             <label class="item-field-label-long">Charge Effect</label> | ||||||
|  |             <input type="text" class="item-field-label-long2" name="system.chargeeffect" value="{{system.chargeeffect}}" data-dtype="String"/>           | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="flexrow"> | ||||||
|  |             <label class="item-field-label-long">School</label> | ||||||
|  |             <select class="item-field-label-long" type="text" name="system.school" value="{{system.school}}" data-dtype="String"> | ||||||
|  |               {{#select system.school}} | ||||||
|  |                 {{> systems/fvtt-avd12/templates/items/partial-options-spell-schools.hbs}} | ||||||
|  |               {{/select}} | ||||||
|  |             </select>  | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="flexrow"> | ||||||
|  |             <label class="item-field-label-long">Damage</label> | ||||||
|  |             <input type="text" class="item-field-label-short" name="system.damage" value="{{system.damage}}" data-dtype="String"/>           | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="flexrow"> | ||||||
|  |             <label class="item-field-label-long">Damage Type</label> | ||||||
|  |             <select class="item-field-label-long" type="text" name="system.damagetype" value="{{system.damagetype}}" data-dtype="String"> | ||||||
|  |               {{#select system.damagetype}} | ||||||
|  |                 {{> systems/fvtt-avd12/templates/items/partial-options-damage-types.hbs}} | ||||||
|  |               {{/select}} | ||||||
|  |             </select>  | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="flexrow"> | ||||||
|  |             <label class="item-field-label-long">Range</label> | ||||||
|  |             <input type="text" class="item-field-label-short" name="system.range" value="{{system.range}}" data-dtype="Number"/> | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="flexrow"> | ||||||
|  |             <label class="item-field-label-long">Components</label> | ||||||
|  |             <input type="text" class="item-field-label-long2" name="system.components" value="{{system.components}}" data-dtype="String"/> | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="flexrow"> | ||||||
|  |             <label class="item-field-label-long">Reaction?</label> | ||||||
|  |             <input type="checkbox" class="item-field-label-short" name="system.reaction" {{checked system.reaction}} /> | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="flexrow"> | ||||||
|  |             <label class="item-field-label-long">Sustained?</label> | ||||||
|  |             <input type="checkbox" class="item-field-label-short" name="system.sustained" {{checked system.sustained}} /> | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|         </ul> |         </ul> | ||||||
|     </div> |     </div> | ||||||
|   </div> |   </div> | ||||||
|   | |||||||
| @@ -90,7 +90,11 @@ | |||||||
|               <label class="item-field-label-long">{{upperFirst key}}</label> |               <label class="item-field-label-long">{{upperFirst key}}</label> | ||||||
|               <div class="flexrow"> |               <div class="flexrow"> | ||||||
|                 <label class="item-field-label-short">Type</label> |                 <label class="item-field-label-short">Type</label> | ||||||
|                 <input type="text" class="item-field-label-short" name="system.damages.{{key}}.damagetype" value="{{damage.damagetype}}" data-dtype="Number"/> |                 <select class="item-field-label-long" type="text" name="system.damages.{{key}}.damagetype" value="{{system.damagetype}}" data-dtype="String"> | ||||||
|  |                   {{#select system.damagetype}} | ||||||
|  |                     {{> systems/fvtt-avd12/templates/items/partial-options-damage-types.hbs}} | ||||||
|  |                   {{/select}} | ||||||
|  |                 </select>  | ||||||
|               </div> |               </div> | ||||||
|               <div class="flexrow"> |               <div class="flexrow"> | ||||||
|                 <label class="item-field-label-short">Dice</label> |                 <label class="item-field-label-short">Dice</label> | ||||||
|   | |||||||
							
								
								
									
										8
									
								
								templates/items/partial-options-damage-types.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								templates/items/partial-options-damage-types.hbs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,8 @@ | |||||||
|  | <option value="physical">Physical</option> | ||||||
|  | <option value="psychic">Psychic</option> | ||||||
|  | <option value="fire">Fire</option> | ||||||
|  | <option value="lightning">Lightning</option> | ||||||
|  | <option value="cold">Cold</option> | ||||||
|  | <option value="dark">Dark</option> | ||||||
|  | <option value="divine">Divine</option> | ||||||
|  | <option value="arcane">Arcane</option> | ||||||
							
								
								
									
										12
									
								
								templates/items/partial-options-spell-schools.hbs
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								templates/items/partial-options-spell-schools.hbs
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,12 @@ | |||||||
|  | <option value="abjuration">Abjuration</option> | ||||||
|  | <option value="evocation">Evocation</option> | ||||||
|  | <option value="tansmutation">Transmutation</option> | ||||||
|  | <option value="divine">Divine</option> | ||||||
|  | <option value="druidic">Druidic</option> | ||||||
|  | <option value="necromancy">Necromancy</option> | ||||||
|  | <option value="auguration">Auguration</option> | ||||||
|  | <option value="illusion">Illusion</option> | ||||||
|  | <option value="draconic">Draconic</option> | ||||||
|  | <option value="cosmic">Cosmic</option> | ||||||
|  | <option value="fiend">Fiend</option> | ||||||
|  | <option value="fey">Fey</option> | ||||||
| @@ -5,3 +5,4 @@ | |||||||
| <option value="sonic">Sonic</option> | <option value="sonic">Sonic</option> | ||||||
| <option value="vision">Vision</option> | <option value="vision">Vision</option> | ||||||
| <option value="touchmelee">Touch/Melee Attack</option> | <option value="touchmelee">Touch/Melee Attack</option> | ||||||
|  | <option value="utility">Utility</option> | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user