mirror of
https://github.com/Nighthawk42/roll20-character-sheets.git
synced 2026-08-30 03:40:32 +00:00
[Knight] Bugfix
This commit is contained in:
@@ -477,6 +477,9 @@ div.charsheet > div.content input[type=hidden].armureLegendeListe[value=wizard]
|
||||
div.charsheet > div.content input[type=hidden].armureLegendeListe[value=wizard] ~ div .MALWizard {
|
||||
display: flex;
|
||||
}
|
||||
div.charsheet > div.content input[type=hidden].tabEgide[value="0"] ~ div div.egide {
|
||||
display: none;
|
||||
}
|
||||
div.charsheet > div.content input[type=hidden].tabResilience[value="0"] ~ div div.resilience {
|
||||
display: none;
|
||||
}
|
||||
|
||||
+379
-437
@@ -1656,6 +1656,383 @@ on("sheet:opened",function()
|
||||
donneesPJ["Armure"] = armure;
|
||||
donneesPJ["ArmureLegende"] = armureL;
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeCaC", function(idarray) {
|
||||
_.each(idarray,function(id) {
|
||||
_.each(wpnContactData,function(data) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${data}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${data}`] || "0";
|
||||
|
||||
if(wpnData[id] == undefined)
|
||||
wpnData[id] = {};
|
||||
|
||||
wpnData[id][data] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffects,function(effet) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${effet}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnE[id] == undefined)
|
||||
wpnE[id] = {};
|
||||
|
||||
wpnE[id][effet] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffectsValue,function(effet) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${effet}`] || "0";
|
||||
|
||||
if(wpnEValue[id] == undefined)
|
||||
wpnEValue[id] = {};
|
||||
|
||||
wpnEValue[id][effet] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationS,function(AS) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${AS}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${AS}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAS[id] == undefined)
|
||||
wpnAS[id] = {};
|
||||
|
||||
wpnAS[id][AS] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationO,function(AO) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${AO}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${AO}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAO[id] == undefined)
|
||||
wpnAO[id] = {};
|
||||
|
||||
wpnAO[id][AO] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecial,function(special) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${special}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnS[id] == undefined)
|
||||
wpnS[id] = {};
|
||||
|
||||
wpnS[id][special] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecialValue,function(special) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${special}`] || "0";
|
||||
|
||||
if(wpnSValue[id] == undefined)
|
||||
wpnSValue[id] = {};
|
||||
|
||||
wpnSValue[id][special] = value;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeDist", function(idarray) {
|
||||
_.each(idarray,function(id) {
|
||||
_.each(wpnDistanceData,function(data) {
|
||||
getAttrs([`repeating_armeDist_${id}_${data}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${data}`] || "0";
|
||||
|
||||
if(wpnData[id] == undefined)
|
||||
wpnData[id] = {};
|
||||
|
||||
wpnData[id][data] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffects,function(effet) {
|
||||
getAttrs([`repeating_armeDist_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${effet}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnE[id] == undefined)
|
||||
wpnE[id] = {};
|
||||
|
||||
wpnE[id][effet] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffectsValue,function(effet) {
|
||||
getAttrs([`repeating_armeDist_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${effet}`] || "0";
|
||||
|
||||
if(wpnEValue[id] == undefined)
|
||||
wpnEValue[id] = {};
|
||||
|
||||
wpnEValue[id][effet] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationA,function(AA) {
|
||||
getAttrs([`repeating_armeDist_${id}_${AA}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${AA}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAA[id] == undefined)
|
||||
wpnAA[id] = {};
|
||||
|
||||
wpnAA[id][AA] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationAValue,function(AAV) {
|
||||
getAttrs([`repeating_armeDist_${id}_${AAV}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${AAV}`] || "0";
|
||||
|
||||
if(wpnAAValue[id] == undefined)
|
||||
wpnAAValue[id] = {};
|
||||
|
||||
wpnAAValue[id][AAV] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecial,function(special) {
|
||||
getAttrs([`repeating_armeDist_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${special}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnS[id] == undefined)
|
||||
wpnS[id] = {};
|
||||
|
||||
wpnS[id][special] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecialValue,function(special) {
|
||||
getAttrs([`repeating_armeDist_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${special}`] || "0";
|
||||
|
||||
if(wpnSValue[id] == undefined)
|
||||
wpnSValue[id] = {};
|
||||
|
||||
wpnSValue[id][special] = value;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeautre", function(idarray) {
|
||||
_.each(idarray,function(id) {
|
||||
_.each(wpnAutreData,function(data) {
|
||||
getAttrs([`repeating_armeautre_${id}_${data}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${data}`] || "0";
|
||||
|
||||
if(wpnData[id] == undefined)
|
||||
wpnData[id] = {};
|
||||
|
||||
wpnData[id][data] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffects,function(effet) {
|
||||
getAttrs([`repeating_armeautre_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${effet}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnE[id] == undefined)
|
||||
wpnE[id] = {};
|
||||
|
||||
wpnE[id][effet] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffectsValue,function(effet) {
|
||||
getAttrs([`repeating_armeautre_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${effet}`] || "0";
|
||||
|
||||
if(wpnEValue[id] == undefined)
|
||||
wpnEValue[id] = {};
|
||||
|
||||
wpnEValue[id][effet] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationA,function(AA) {
|
||||
getAttrs([`repeating_armeautre_${id}_${AA}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${AA}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAA[id] == undefined)
|
||||
wpnAA[id] = {};
|
||||
|
||||
wpnAA[id][AA] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationAValue,function(AAV) {
|
||||
getAttrs([`repeating_armeautre_${id}_${AAV}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${AAV}`] || "0";
|
||||
|
||||
if(wpnAAValue[id] == undefined)
|
||||
wpnAAValue[id] = {};
|
||||
|
||||
wpnAAValue[id][AAV] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecial,function(special) {
|
||||
getAttrs([`repeating_armeautre_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${special}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnS[id] == undefined)
|
||||
wpnS[id] = {};
|
||||
|
||||
wpnS[id][special] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecialValue,function(special) {
|
||||
getAttrs([`repeating_armeautre_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${special}`] || "0";
|
||||
|
||||
if(wpnSValue[id] == undefined)
|
||||
wpnSValue[id] = {};
|
||||
|
||||
wpnSValue[id][special] = value;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeDistVehicule", function(idarray) {
|
||||
_.each(idarray,function(id) {
|
||||
_.each(wpnDistanceData,function(data) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${data}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${data}`] || "0";
|
||||
|
||||
if(wpnData[id] == undefined)
|
||||
wpnData[id] = {};
|
||||
|
||||
wpnData[id][data] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffects,function(effet) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${effet}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnE[id] == undefined)
|
||||
wpnE[id] = {};
|
||||
|
||||
wpnE[id][effet] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffectsValue,function(effet) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${effet}`] || "0";
|
||||
|
||||
if(wpnEValue[id] == undefined)
|
||||
wpnEValue[id] = {};
|
||||
|
||||
wpnEValue[id][effet] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationA,function(AA) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${AA}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${AA}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAA[id] == undefined)
|
||||
wpnAA[id] = {};
|
||||
|
||||
wpnAA[id][AA] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationAValue,function(AAV) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${AAV}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${AAV}`] || "0";
|
||||
|
||||
if(wpnAAValue[id] == undefined)
|
||||
wpnAAValue[id] = {};
|
||||
|
||||
wpnAAValue[id][AAV] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecial,function(special) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${special}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnS[id] == undefined)
|
||||
wpnS[id] = {};
|
||||
|
||||
wpnS[id][special] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecialValue,function(special) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${special}`] || "0";
|
||||
|
||||
if(wpnSValue[id] == undefined)
|
||||
wpnSValue[id] = {};
|
||||
|
||||
wpnSValue[id][special] = value;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
_.each(CaracNom, function( value, key ) {
|
||||
@@ -3184,65 +3561,7 @@ on("sheet:opened",function()
|
||||
aspectPNJGrenade:"0",
|
||||
version:17,
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeCaC", function(idarray)
|
||||
{
|
||||
_.each(idarray,function(id) {
|
||||
setAttrs({
|
||||
["repeating_armeCaC_"+id+"_caracteristique1Equipement"]:"0",
|
||||
["repeating_armeCaC_"+id+"_caracteristique2Equipement"]:"0",
|
||||
["repeating_armeCaC_"+id+"_caracteristique3Equipement"]:"0",
|
||||
["repeating_armeCaC_"+id+"_caracteristique4Equipement"]:"0",
|
||||
["repeating_armeCaC_"+id+"_caracteristiqueSPrecis"]:"0",
|
||||
["repeating_armeCaC_"+id+"_aspectPNJ"]:"0"
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeDist", function(idarray)
|
||||
{
|
||||
_.each(idarray,function(id) {
|
||||
setAttrs({
|
||||
["repeating_armeDist_"+id+"_caracteristique1Equipement"]:"0",
|
||||
["repeating_armeDist_"+id+"_caracteristique2Equipement"]:"0",
|
||||
["repeating_armeDist_"+id+"_caracteristique3Equipement"]:"0",
|
||||
["repeating_armeDist_"+id+"_caracteristique4Equipement"]:"0",
|
||||
["repeating_armeDist_"+id+"_aspectPNJ"]:"0"
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeDistVehicule", function(idarray)
|
||||
{
|
||||
_.each(idarray,function(id) {
|
||||
setAttrs({
|
||||
["repeating_armeDistVehicule_"+id+"_caracteristique1Equipement"]:"0",
|
||||
["repeating_armeDistVehicule_"+id+"_caracteristique2Equipement"]:"0",
|
||||
["repeating_armeDistVehicule_"+id+"_caracteristique3Equipement"]:"0",
|
||||
["repeating_armeDistVehicule_"+id+"_caracteristique4Equipement"]:"0",
|
||||
["repeating_armeDistVehicule_"+id+"_aspectPNJ"]:"0"
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeDruidLion", function(idarray)
|
||||
{
|
||||
_.each(idarray,function(id) {
|
||||
setAttrs({
|
||||
["repeating_armeDruidLion_"+id+"_aspectDruidLion"]:"druidLionChair"
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armemaldruidlion", function(idarray)
|
||||
{
|
||||
_.each(idarray,function(id) {
|
||||
setAttrs({
|
||||
["repeating_armemaldruidlion_"+id+"_aspectDruidLion"]:"MALDruidLionChair"
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
_.each(wpnEffects,function(effet) {
|
||||
let couteauService = "pSC";
|
||||
let marteauContact = "mEC";
|
||||
@@ -3508,383 +3827,6 @@ on("sheet:opened",function()
|
||||
wpnAAValue[marteauDistance][AAV] = value;
|
||||
});
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeCaC", function(idarray) {
|
||||
_.each(idarray,function(id) {
|
||||
_.each(wpnContactData,function(data) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${data}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${data}`] || "0";
|
||||
|
||||
if(wpnData[id] == undefined)
|
||||
wpnData[id] = {};
|
||||
|
||||
wpnData[id][data] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffects,function(effet) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${effet}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnE[id] == undefined)
|
||||
wpnE[id] = {};
|
||||
|
||||
wpnE[id][effet] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffectsValue,function(effet) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${effet}`] || "0";
|
||||
|
||||
if(wpnEValue[id] == undefined)
|
||||
wpnEValue[id] = {};
|
||||
|
||||
wpnEValue[id][effet] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationS,function(AS) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${AS}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${AS}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAS[id] == undefined)
|
||||
wpnAS[id] = {};
|
||||
|
||||
wpnAS[id][AS] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationO,function(AO) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${AO}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${AO}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAO[id] == undefined)
|
||||
wpnAO[id] = {};
|
||||
|
||||
wpnAO[id][AO] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecial,function(special) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${special}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnS[id] == undefined)
|
||||
wpnS[id] = {};
|
||||
|
||||
wpnS[id][special] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecialValue,function(special) {
|
||||
getAttrs([`repeating_armeCaC_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeCaC_${id}_${special}`] || "0";
|
||||
|
||||
if(wpnSValue[id] == undefined)
|
||||
wpnSValue[id] = {};
|
||||
|
||||
wpnSValue[id][special] = value;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeDist", function(idarray) {
|
||||
_.each(idarray,function(id) {
|
||||
_.each(wpnDistanceData,function(data) {
|
||||
getAttrs([`repeating_armeDist_${id}_${data}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${data}`] || "0";
|
||||
|
||||
if(wpnData[id] == undefined)
|
||||
wpnData[id] = {};
|
||||
|
||||
wpnData[id][data] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffects,function(effet) {
|
||||
getAttrs([`repeating_armeDist_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${effet}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnE[id] == undefined)
|
||||
wpnE[id] = {};
|
||||
|
||||
wpnE[id][effet] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffectsValue,function(effet) {
|
||||
getAttrs([`repeating_armeDist_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${effet}`] || "0";
|
||||
|
||||
if(wpnEValue[id] == undefined)
|
||||
wpnEValue[id] = {};
|
||||
|
||||
wpnEValue[id][effet] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationA,function(AA) {
|
||||
getAttrs([`repeating_armeDist_${id}_${AA}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${AA}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAA[id] == undefined)
|
||||
wpnAA[id] = {};
|
||||
|
||||
wpnAA[id][AA] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationAValue,function(AAV) {
|
||||
getAttrs([`repeating_armeDist_${id}_${AAV}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${AAV}`] || "0";
|
||||
|
||||
if(wpnAAValue[id] == undefined)
|
||||
wpnAAValue[id] = {};
|
||||
|
||||
wpnAAValue[id][AAV] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecial,function(special) {
|
||||
getAttrs([`repeating_armeDist_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${special}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnS[id] == undefined)
|
||||
wpnS[id] = {};
|
||||
|
||||
wpnS[id][special] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecialValue,function(special) {
|
||||
getAttrs([`repeating_armeDist_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeDist_${id}_${special}`] || "0";
|
||||
|
||||
if(wpnSValue[id] == undefined)
|
||||
wpnSValue[id] = {};
|
||||
|
||||
wpnSValue[id][special] = value;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeautre", function(idarray) {
|
||||
_.each(idarray,function(id) {
|
||||
_.each(wpnAutreData,function(data) {
|
||||
getAttrs([`repeating_armeautre_${id}_${data}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${data}`] || "0";
|
||||
|
||||
if(wpnData[id] == undefined)
|
||||
wpnData[id] = {};
|
||||
|
||||
wpnData[id][data] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffects,function(effet) {
|
||||
getAttrs([`repeating_armeautre_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${effet}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnE[id] == undefined)
|
||||
wpnE[id] = {};
|
||||
|
||||
wpnE[id][effet] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffectsValue,function(effet) {
|
||||
getAttrs([`repeating_armeautre_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${effet}`] || "0";
|
||||
|
||||
if(wpnEValue[id] == undefined)
|
||||
wpnEValue[id] = {};
|
||||
|
||||
wpnEValue[id][effet] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationA,function(AA) {
|
||||
getAttrs([`repeating_armeautre_${id}_${AA}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${AA}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAA[id] == undefined)
|
||||
wpnAA[id] = {};
|
||||
|
||||
wpnAA[id][AA] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationAValue,function(AAV) {
|
||||
getAttrs([`repeating_armeautre_${id}_${AAV}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${AAV}`] || "0";
|
||||
|
||||
if(wpnAAValue[id] == undefined)
|
||||
wpnAAValue[id] = {};
|
||||
|
||||
wpnAAValue[id][AAV] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecial,function(special) {
|
||||
getAttrs([`repeating_armeautre_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${special}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnS[id] == undefined)
|
||||
wpnS[id] = {};
|
||||
|
||||
wpnS[id][special] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecialValue,function(special) {
|
||||
getAttrs([`repeating_armeautre_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeautre_${id}_${special}`] || "0";
|
||||
|
||||
if(wpnSValue[id] == undefined)
|
||||
wpnSValue[id] = {};
|
||||
|
||||
wpnSValue[id][special] = value;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
getSectionIDs("repeating_armeDistVehicule", function(idarray) {
|
||||
_.each(idarray,function(id) {
|
||||
_.each(wpnDistanceData,function(data) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${data}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${data}`] || "0";
|
||||
|
||||
if(wpnData[id] == undefined)
|
||||
wpnData[id] = {};
|
||||
|
||||
wpnData[id][data] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffects,function(effet) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${effet}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnE[id] == undefined)
|
||||
wpnE[id] = {};
|
||||
|
||||
wpnE[id][effet] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnEffectsValue,function(effet) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${effet}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${effet}`] || "0";
|
||||
|
||||
if(wpnEValue[id] == undefined)
|
||||
wpnEValue[id] = {};
|
||||
|
||||
wpnEValue[id][effet] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationA,function(AA) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${AA}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${AA}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnAA[id] == undefined)
|
||||
wpnAA[id] = {};
|
||||
|
||||
wpnAA[id][AA] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnAmeliorationAValue,function(AAV) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${AAV}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${AAV}`] || "0";
|
||||
|
||||
if(wpnAAValue[id] == undefined)
|
||||
wpnAAValue[id] = {};
|
||||
|
||||
wpnAAValue[id][AAV] = value;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecial,function(special) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${special}`] || "0";
|
||||
let nValue = false;
|
||||
|
||||
if(value != "0")
|
||||
nValue = true;
|
||||
|
||||
if(wpnS[id] == undefined)
|
||||
wpnS[id] = {};
|
||||
|
||||
wpnS[id][special] = nValue;
|
||||
});
|
||||
});
|
||||
|
||||
_.each(wpnSpecialValue,function(special) {
|
||||
getAttrs([`repeating_armeDistVehicule_${id}_${special}`], function(v){
|
||||
let value = v[`repeating_armeDistVehicule_${id}_${special}`] || "0";
|
||||
|
||||
if(wpnSValue[id] == undefined)
|
||||
wpnSValue[id] = {};
|
||||
|
||||
wpnSValue[id][special] = value;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
});
|
||||
});var wpnData = {}
|
||||
@@ -15457,7 +15399,7 @@ rollCombatContact.forEach(button => {
|
||||
//FIN DE GESTION DES BONUS SPECIAUX
|
||||
}
|
||||
|
||||
|
||||
log(wpnData);
|
||||
|
||||
//GESTION DES BONUS D'ARMURE
|
||||
|
||||
|
||||
Reference in New Issue
Block a user