Skip to content

Commit

Permalink
removed old console logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakkon committed Oct 2, 2024
1 parent d27657b commit 7aebc73
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 2 additions & 4 deletions js/charbuilder/sheet.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ class ActorCharactermancerSheet extends ActorCharactermancerBaseComponent{
$divClassFeatures.empty();
$divSubclassFeatures.empty();
$lblProfBonus.text("+2"); //Default, even for lvl 0 characters
const hideGainSubclassFeature = true;
const bannedFeatureNames = ["ability score improvement"]; //Any features with this name (in lower case) will not be displayed
let classData = ActorCharactermancerSheet.getClassData(this._parent.compClass);
const tracker = this._parent.featureSourceTracker_;
Expand Down Expand Up @@ -277,6 +278,7 @@ class ActorCharactermancerSheet extends ActorCharactermancerBaseComponent{
if(feature.level > d.targetLevel){return text;}
let drawParentFeature = false;
if(bannedFeatureNames.includes(feature.name.toLowerCase())){return text;}
if(hideGainSubclassFeature && feature.gainSubclassFeature){return text;}
for(let l of feature.loadeds) {
if(bannedLoadedsNames.includes(l.entity.name.toLowerCase())){continue;}
if(l.entity.level > d.targetLevel){continue;} //Must not be from a higher level than we are
Expand Down Expand Up @@ -735,7 +737,6 @@ class ActorCharactermancerSheet extends ActorCharactermancerBaseComponent{
}
dmg1 = formula;
}
console.log(dmg1);
const dmg = //spell.item.dmg1 +
dmg1 + (attr>=0? "+" : "") + attr.toString();
return {toHit:(toHit>=0? "+" : "")+toHit.toString(), dmg:dmg, dmgType:dmgType};//spell.item.dmgType};
Expand Down Expand Up @@ -884,7 +885,6 @@ class ActorCharactermancerSheet extends ActorCharactermancerBaseComponent{
//Get spells from our race
const raceSpells = ActorCharactermancerSheet.getAdditionalRaceSpells(this._parent.compRace, this._parent.compClass, this._parent.compSpell);

console.log("RACE SPELLS", raceSpells);
//Add additional cantrips to cantrips list
for(let sp of raceSpells.known[0]){ //cantrips are always known, never innate
knownInnateSpellsByLevel[0].push(sp.spell);
Expand Down Expand Up @@ -955,7 +955,6 @@ class ActorCharactermancerSheet extends ActorCharactermancerBaseComponent{
//sp.name = printData.name;
//sp.source = printData.source;
innateSpellsPrint.push({spell: sp});
console.log("sp", sp);
}
$$`<div>${spellsListStr_Innate(innateSpellsPrint, true, true)}</div>`.appendTo($divSpells);
}
Expand Down Expand Up @@ -986,7 +985,6 @@ class ActorCharactermancerSheet extends ActorCharactermancerBaseComponent{

//Add innate spells from race to the innate spell list
for(let lvl = 1; lvl < raceSpells.innate.length; ++lvl){
console.log("known at lvl ", lvl, raceSpells.innate[lvl]);
for(let sp of raceSpells.innate[lvl]){
innateSpells.push({name:sp.spell.name, source:sp.spell.source, charges:sp.charges, rechargeMode:sp.rechargeMode});
}
Expand Down
3 changes: 1 addition & 2 deletions js/charbuilder/todo
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ MINOR_BUGS:
- Adding sources without removing any, should that really have to wipe class?

MAJOR_BUGS:
- Wizard lvl 20 feature 'Signature Spells' not having any FOS
- Wizard 'Arcane Tradition' not having any FOS
- Wizard features 'Spell Mastery' and 'Signature Spells' not having any FOS
----------------------------------------------------------------------------
WEB:
- Add UI more notifications for various errors and warnings
Expand Down

0 comments on commit 7aebc73

Please sign in to comment.