Update 5th Edition OGL by Roll20.html

This commit is contained in:
SteveKoontz
2017-10-23 11:20:50 -07:00
committed by GitHub
parent 6a18a32042
commit 5637d4bbc6
@@ -927,7 +927,7 @@
<input type="hidden" name="attr_rollbase">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<input type="hidden" name="attr_spellprepared"><span class="prep"></span>
<span class="spellname" name="attr_spellname"></span>
@@ -1901,14 +1901,14 @@
<div class="row">
<span data-i18n="school:-u">SCHOOL:</span>
<select name="attr_spellschool">
<option value="Abjuration" data-i18n="abjuration">Abjuration</option>
<option value="Conjuration" data-i18n="conjuration">Conjuration</option>
<option value="Divination" data-i18n="divination">Divination</option>
<option value="Enchantment" data-i18n="enchantment">Enchantment</option>
<option value="Evocation" data-i18n="evocation">Evocation</option>
<option value="Illusion" data-i18n="illusion">Illusion</option>
<option value="Necromancy" data-i18n="necromancy">Necromancy</option>
<option value="Transmutation" data-i18n="transmutation">Transmutation</option>
<option value="abjuration" data-i18n="abjuration">Abjuration</option>
<option value="conjuration" data-i18n="conjuration">Conjuration</option>
<option value="divination" data-i18n="divination">Divination</option>
<option value="enchantment" data-i18n="enchantment">Enchantment</option>
<option value="evocation" data-i18n="evocation">Evocation</option>
<option value="illusion" data-i18n="illusion">Illusion</option>
<option value="necromancy" data-i18n="necromancy">Necromancy</option>
<option value="transmutation" data-i18n="transmutation">Transmutation</option>
</select>
<input type="checkbox" name="attr_spellritual" value="{{ritual=1}}">
<span data-i18n="ritual-u">RITUAL</span>
@@ -2047,7 +2047,7 @@
<input type="hidden" name="attr_spelllevel" value="cantrip">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<span class="spellname" name="attr_spellname"></span>
<input class="innate_flag" type="hidden" name="attr_innate" value="">
@@ -2237,7 +2237,7 @@
<input type="hidden" name="attr_spelllevel" value="1">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<input type="hidden" name="attr_spellprepared" value="1"><span class="prep"></span>
<span class="spellname" name="attr_spellname"></span>
@@ -2424,7 +2424,7 @@
<input type="hidden" name="attr_spelllevel" value="2">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<input type="hidden" name="attr_spellprepared" value="1"><span class="prep"></span>
<span class="spellname" name="attr_spellname"></span>
@@ -2614,7 +2614,7 @@
<input type="hidden" name="attr_spelllevel" value="3">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<input type="hidden" name="attr_spellprepared" value="1"><span class="prep"></span>
<span class="spellname" name="attr_spellname"></span>
@@ -2801,7 +2801,7 @@
<input type="hidden" name="attr_spelllevel" value="4">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<input type="hidden" name="attr_spellprepared" value="1"><span class="prep"></span>
<span class="spellname" name="attr_spellname"></span>
@@ -2988,7 +2988,7 @@
<input type="hidden" name="attr_spelllevel" value="5">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<input type="hidden" name="attr_spellprepared" value="1"><span class="prep"></span>
<span class="spellname" name="attr_spellname"></span>
@@ -3178,7 +3178,7 @@
<input type="hidden" name="attr_spelllevel" value="6">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<input type="hidden" name="attr_spellprepared" value="1"><span class="prep"></span>
<span class="spellname" name="attr_spellname"></span>
@@ -3365,7 +3365,7 @@
<input type="hidden" name="attr_spelllevel" value="7">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<input type="hidden" name="attr_spellprepared" value="1"><span class="prep"></span>
<span class="spellname" name="attr_spellname"></span>
@@ -3739,7 +3739,7 @@
<input type="hidden" name="attr_spelllevel" value="9">
</div>
<div class="display">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} @{spellconcentration} @{charname_output}">
<input type="hidden" name="attr_rollcontent" value="@{wtype}&{template:spell} {{level=@{spellschool} @{spelllevel}}} {{name=@{spellname}}} {{castingtime=@{spellcastingtime}}} {{range=@{spellrange}}} {{target=@{spelltarget}}} @{spellcomp_v} @{spellcomp_s} @{spellcomp_m} {{material=@{spellcomp_materials}}} {{duration=@{spellduration}}} {{description=@{spelldescription}}} {{athigherlevels=@{spellathigherlevels}}} @{spellritual} {{innate=@{innate}}} @{spellconcentration} @{charname_output}">
<button class="spellcard" type="roll" name="roll_spell" value="@{rollcontent}">
<input type="hidden" name="attr_spellprepared" value="1"><span class="prep"></span>
<span class="spellname" name="attr_spellname"></span>
@@ -5515,9 +5515,14 @@
<script type="text/worker">
on("sheet:opened", function(eventinfo) {
// getCompendiumPage("Fireball", function(pageData) {
// dropCompendiumData("licensecontainer", pageData, function() {
// console.log("FINISHED DROP!!!!!");
// })
// });
versioning();
// cleanup_drop_fields();
// v2_old_values_check();
v2_old_values_check();
});
on("sheet:compendium-drop", function() {
@@ -6576,6 +6581,7 @@
if(v.drop_name) {update["repeating_spell-" + lvl + "_" + id + "_spellname"] = v.drop_name};
if(v.drop_spellritualflag) {update["repeating_spell-" + lvl + "_" + id + "_spellritual"] = "{{ritual=1}}"};
if(v.drop_spellschool) {update["repeating_spell-" + lvl + "_" + id + "_spellschool"] = v.drop_spellschool.toLowerCase()};
console.log(update);
if(v.drop_spellcastingtime) {update["repeating_spell-" + lvl + "_" + id + "_spellcastingtime"] = v.drop_spellcastingtime};
if(v.drop_range) {update["repeating_spell-" + lvl + "_" + id + "_spellrange"] = v.drop_range};
if(v.drop_spelltarget) {update["repeating_spell-" + lvl + "_" + id + "_spelltarget"] = v.drop_spelltarget};
@@ -8938,7 +8944,7 @@
};
var v2_old_values_check = function() {
update_attacks("all");
// update_attacks("all");
var update = {};
var attrs = ["simpletraits","features_and_traits","initiative_bonus","npc","character_id"];
getSectionIDs("repeating_spell-npc", function(idarray) {