Added overview of proficiencies

This commit is contained in:
Peter Bjerg Lidegaard
2022-06-11 21:37:46 +02:00
parent f2c78c352c
commit 00a7bd817d
11 changed files with 3640 additions and 685 deletions
+8 -5
View File
@@ -17,12 +17,12 @@ spellsJs.forEach(jsFile => {
html += pug.renderFile(path.join(pugFolder, 'spellsDatalists.pug'), {pretty: true, data: spells});
if (jsFile === 'wizardSpells.js') {
let schoolTable = pug.renderFile(path.join(pugFolder, 'schoolOverview.pug'), {pretty: true, data: spells});
fs.writeFileSync(path.join(miscFolder, 'school-overview.html'), schoolTable);
let schoolTable = pug.renderFile(path.join(pugFolder, 'schoolsOverview.pug'), {pretty: true, data: spells});
fs.writeFileSync(path.join(miscFolder, 'schools-overview.html'), schoolTable);
}
if (jsFile === 'priestSpells.js') {
let sphereTable = pug.renderFile(path.join(pugFolder, 'sphereOverview.pug'), {pretty: true, data: spells});
fs.writeFileSync(path.join(miscFolder, 'sphere-overview.html'), sphereTable);
let sphereTable = pug.renderFile(path.join(pugFolder, 'spheresOverview.pug'), {pretty: true, data: spells});
fs.writeFileSync(path.join(miscFolder, 'spheres-overview.html'), sphereTable);
}
});
@@ -32,11 +32,14 @@ const weapons = require(path.join(jsFolder, 'weapons.js'));
const weaponsProficiencies = require(path.join(jsFolder, 'weaponProficiencies.js'));
html += pug.renderFile(path.join(pugFolder, 'weaponsDatalists.pug'), {pretty: true, data: weapons, proficiencies: weaponsProficiencies});
const nonWeaponProfs = require(path.join(jsFolder, 'nonweaponProficiencies.js'));
const nonWeaponProfTable = pug.renderFile(path.join(pugFolder, 'nonweaponProficienciesOverview.pug'), {pretty: true, data: nonWeaponProfs});
fs.writeFileSync(path.join(miscFolder, 'nonweapon-proficiencies-overview.html'), nonWeaponProfTable);
let weaponTable = pug.renderFile(path.join(pugFolder, 'weaponsOverview.pug'), {pretty: true, data: weapons});
fs.writeFileSync(path.join(miscFolder, 'weapons-overview.html'), weaponTable);
const simpleDatalists = [
['nonweaponProficiencies.js','nonweapon-proficiencies'],
['players-option-talents.js','talents'],
['players-option-traits.js','traits'],
['players-option-disadvantages.js','disadvantages']
+2 -2
View File
@@ -14,12 +14,12 @@
<li>Added Lorloveim's Creeping Shadow from Tome of Magic</li>
<li>Added Sheet Setting to enable the rearranged Priest Spheres from the Player's Option: Spells & Magic book
<ul>
<li>Changes can be seen here: <span class="sheet-selectable">https://htmlpreview.github.io/?https://github.com/Roll20/roll20-character-sheets/blob/master/ADnD_2E_Revised/misc/sphere-overview.html</span></li>
<li>Changes can be seen here: <span class="sheet-selectable">https://htmlpreview.github.io/?https://github.com/Roll20/roll20-character-sheets/blob/master/ADnD_2E_Revised/misc/spheres-overview.html</span></li>
</ul>
</li>
<li>Added Sheet Setting to enable the rearranged Wizard Schools from the Player's Option: Spells & Magic book
<ul>
<li>Changes can be seen here: <span class="sheet-selectable">https://htmlpreview.github.io/?https://github.com/Roll20/roll20-character-sheets/blob/master/ADnD_2E_Revised/misc/school-overview.html</span></li>
<li>Changes can be seen here: <span class="sheet-selectable">https://htmlpreview.github.io/?https://github.com/Roll20/roll20-character-sheets/blob/master/ADnD_2E_Revised/misc/schools-overview.html</span></li>
</ul>
</li>
<li>Reworked weapons autofill to support different version of weapons, to accommodate differences between the PO: Combat & Tactics and other books.
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -19,9 +19,9 @@
</style>
<table>
<tr class="gray">
<th>name</th>
<th>schools</th>
<th>book</th>
<th>Name</th>
<th>Schools</th>
<th>Book</th>
</tr>
<tr>
<td>Affect Normal Fires</td>
@@ -19,9 +19,9 @@
</style>
<table>
<tr class="gray">
<th>name</th>
<th>spheres</th>
<th>book</th>
<th>Name</th>
<th>Spheres</th>
<th>Book</th>
</tr>
<tr>
<td>Command</td>
+16 -16
View File
@@ -20,22 +20,22 @@
</style>
<table>
<tr class="gray">
<th>name</th>
<th>group</th>
<th>noProf</th>
<th>size</th>
<th>ammo<br>size</th>
<th>type</th>
<th>speed</th>
<th>reach</th>
<th>rof</th>
<th>range</th>
<th>strength</th>
<th>small<br>medium</th>
<th>large</th>
<th>knockdown</th>
<th>book</th>
<th>category</th>
<th>Name</th>
<th>Group</th>
<th>NoProf</th>
<th>Size</th>
<th>Ammo<br>size</th>
<th>Type</th>
<th>Speed</th>
<th>Reach</th>
<th>Rof</th>
<th>Range</th>
<th>Strength</th>
<th>Small<br>Medium</th>
<th>Large</th>
<th>Knockdown</th>
<th>Book</th>
<th>Category</th>
</tr>
<tr>
<td style="background-color:white">Acid</td>
@@ -0,0 +1,48 @@
style("text/css").
table {
border-collapse: collapse;
position: relative;
text-align: left;
width: 100%;
}
tr.gray th {
background: lightgray;
}
th, td {
padding: 2px;
}
th {
position: sticky;
top: 0;
}
table
tr(class="gray")
th Name
th Slots
th Ability Score
th Modifier
th Classes
th Book
- let processedNonWeaponProfs = new Set()
- let keys = Object.keys(data).sort()
each key in keys
- let nonWeaponProfList = data[key]
if processedNonWeaponProfs.has(nonWeaponProfList)
- continue
- processedNonWeaponProfs.add(nonWeaponProfList)
- let slotsColor = nonWeaponProfList.every( (ele,i,arr) => ele.slots === arr[0].slots) ? "white" : "orange"
- let abilityScoreColor = nonWeaponProfList.every( (ele,i,arr) => ele.abilityScore === arr[0].abilityScore) ? "white" : "orange"
- let modifierColor = nonWeaponProfList.every( (ele,i,arr) => ele.modifier === arr[0].modifier) ? "white" : "orange"
- let classesColor = nonWeaponProfList.every( (ele,i,arr) => ele.classes === arr[0].classes) ? "white" : "orange"
each nonWeaponProf in nonWeaponProfList
each book in nonWeaponProf.book
tr
td #{key}
td(style=`background-color:${slotsColor}`) #{nonWeaponProf.slots}
td(style=`background-color:${abilityScoreColor}`) #{nonWeaponProf.abilityScore}
td(style=`background-color:${modifierColor}`) #{nonWeaponProf.modifier}
td(style=`background-color:${classesColor}`) #{nonWeaponProf.classes}
td #{book}
tr
td &nbsp;
@@ -17,9 +17,9 @@ style("text/css").
table
tr(class="gray")
th name
th schools
th book
th Name
th Schools
th Book
each levelObject, level in data
each spell, spellName in levelObject
if (!spell['school-spells-and-magic'])
@@ -17,9 +17,9 @@ style("text/css").
table
tr(class="gray")
th name
th spheres
th book
th Name
th Spheres
th Book
each levelObject, level in data
each spell, spellName in levelObject
if (!spell['sphere-druids'] && !spell['sphere-necromancers'] && !spell['sphere-spells-and-magic'])
+16 -16
View File
@@ -18,22 +18,22 @@ style("text/css").
table
tr(class="gray")
th name
th group
th noProf
th size
th ammo<br>size
th type
th speed
th reach
th rof
th range
th strength
th small<br>medium
th large
th knockdown
th book
th category
th Name
th Group
th NoProf
th Size
th Ammo<br>size
th Type
th Speed
th Reach
th Rof
th Range
th Strength
th Small<br>Medium
th Large
th Knockdown
th Book
th Category
- let processedWeapons = new Set()
- let keys = Object.keys(data).sort()
each key in keys