mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-09-11 09:32:33 +00:00
fix all spells
This commit is contained in:
@@ -466,15 +466,21 @@ input.sheet-spells_level-tab7:checked ~ .sheet-spells .sheet-section-level-7:che
|
||||
input.sheet-spells_level-tab8:checked ~ .sheet-spells .sheet-section-level-8:checked ~ .sheet-sect,
|
||||
input.sheet-spells_level-tab9:checked ~ .sheet-spells .sheet-section-level-9:checked ~ .sheet-sect,
|
||||
input.sheet-spells_level-tab99:checked ~ .sheet-spells .sheet-sect,
|
||||
input.sheet-spellclass-tab0:checked ~ div.sheet-section.sheet-section-spellclass-0,
|
||||
input.sheet-spellclass-tab1:checked ~ div.sheet-section.sheet-section-spellclass-1,
|
||||
input.sheet-spellclass-tab2:checked ~ div.sheet-section.sheet-section-spellclass-2 {
|
||||
input.sheet-spellclass-tab0:checked ~ div.sheet-section-spellclass-0,
|
||||
input.sheet-spellclass-tab1:checked ~ div.sheet-section-spellclass-1,
|
||||
input.sheet-spellclass-tab2:checked ~ div.sheet-section-spellclass-2 {
|
||||
max-height: 999999px;
|
||||
visibility: visible;
|
||||
opacity: 1;
|
||||
transition: opacity 0.5s linear 0s;
|
||||
overflow: hidden;
|
||||
}
|
||||
input.sheet-spellclass-tab0:checked ~ div.sheet-section-spellclass-0,
|
||||
input.sheet-spellclass-tab1:checked ~ div.sheet-section-spellclass-1,
|
||||
input.sheet-spellclass-tab2:checked ~ div.sheet-section-spellclass-2 {
|
||||
visibility: visible !important;
|
||||
max-height: 999999px !important;
|
||||
}
|
||||
input.sheet-spells_level-tab99:checked ~ .sheet-spells .sheet-spell-border {
|
||||
display:block !important;
|
||||
}
|
||||
|
||||
@@ -7849,17 +7849,12 @@
|
||||
<div class="sheet-sect">
|
||||
<div class="sheet-table">
|
||||
<div class="sheet-row">
|
||||
put map of old to new ids here
|
||||
<textarea value="attr_spellmap" title="@{spellmap}" style="width:100%;" ></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="sheet-sect">
|
||||
<input type="radio" name="attr_spellclass_tab" value="0" class="sheet-spellclass-tab0" checked="checked" style="display:none;" />
|
||||
|
||||
<input type="radio" name="attr_spellclass_tab" value="1" class="sheet-spellclass-tab1" style="display:none;" >
|
||||
|
||||
<input type="radio" name="attr_spellclass_tab" value="2" class="sheet-spellclass-tab2" style="display:none;" >
|
||||
|
||||
|
||||
|
||||
|
||||
<input type="radio" name="attr_spells_tab" value="0" title="Level 0 Spells" class="sheet-tab sheet-spell_level sheet-spells_level-tab0" checked="checked" />
|
||||
@@ -14959,13 +14954,9 @@ var PFSheet = PFSheet || (function () {
|
||||
},
|
||||
|
||||
spellUserFields=[],
|
||||
|
||||
|
||||
|
||||
|
||||
migrateSpell = function(section,id) {
|
||||
migrateSpell = function(section,id,newId) {
|
||||
var idStr=getRepeatingIDStr(id)
|
||||
,newId= generateRowID()
|
||||
,newIdStr=getRepeatingIDStr(newId)
|
||||
,prefix="repeating_"+section+"_"+idStr
|
||||
,prefixLen=prefix.length
|
||||
@@ -15012,13 +15003,14 @@ var PFSheet = PFSheet || (function () {
|
||||
TAS.debug(v);
|
||||
TAS.debug(setter);
|
||||
setAttrs(setter,{silent:true},function(){
|
||||
updateSpells(newSection);
|
||||
updateSpell(newSection,newId);
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
|
||||
migrateSpells = function () {
|
||||
var idmap={},mapstr;
|
||||
_.each(spellUserFieldDefaults,function(defMap,field){
|
||||
spellUserFields.push(field);
|
||||
});
|
||||
@@ -15027,14 +15019,21 @@ var PFSheet = PFSheet || (function () {
|
||||
,repeatingsection="repeating_"+section ;
|
||||
//TAS.debug(section);
|
||||
getSectionIDs(repeatingsection,function(ids){
|
||||
var newId;
|
||||
//if (ids && ids.length > 0) {TAS.notice(section,ids);}
|
||||
_.each(ids,function(id){
|
||||
migrateSpell(section,id);
|
||||
newId= generateRowID();
|
||||
idmap[id]=newId;
|
||||
migrateSpell(section, id, newId);
|
||||
});
|
||||
setAttrs({"spellmap":mapstr});
|
||||
});
|
||||
});
|
||||
|
||||
},
|
||||
TAS.notice(idmap);
|
||||
mapstr=JSON.stringify(idmap);
|
||||
TAS.notice(mapstr);
|
||||
|
||||
},
|
||||
|
||||
|
||||
/*********************************** ROW ********************************************/
|
||||
|
||||
Reference in New Issue
Block a user