Welcome to IOPWiki, Commander.
We are searching for editors to complete gameplay topics in all games. You can contribute without an account. Learn how to contribute and join our Discord server.

Widget:costumeSwitcher: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
Debug Log
Added function for calculated values
Line 8: Line 8:
   var statContainer = selectBox.closest('.stattable');
   var statContainer = selectBox.closest('.stattable');
    
    
   console.log(element);
   tdollData = updateCalculatedValues(tdollData);
  console.log(selectedValue);
    
    
   for (var key in tdollData) {
   for (var key in tdollData) {
Line 15: Line 14:
       var valField = statContainer.find('*[data-tdoll-stat-id="' + key + '"]');
       var valField = statContainer.find('*[data-tdoll-stat-id="' + key + '"]');
       var newValue = tdollData[key];
       var newValue = tdollData[key];
      console.log(valField, newValue);
       valField.text(newValue);
       valField.text(newValue);
     }
     }
   }
   }
}
function updateCalculatedValues(data) {
  var ret = data;
 
  // Calculating Max HP for full dummied T-Doll
  if (ret.hasOwnProperty("hpmax")) {
    ret.hpmaxwd = ret.hpmax * 5;
  }
 
  return ret;
}
}



Revision as of 14:37, 30 January 2018


test