Cleanup
Cleaned up some unnecessary code.
This commit is contained in:
@@ -10941,58 +10941,15 @@
|
||||
'transmute':['showvariablestat'],
|
||||
'unaffected':['showunaffected','showattrsrc'],
|
||||
'weapon':['showdamagetype','showweaponclass']
|
||||
/*
|
||||
'showcollectiontype':'absorption',
|
||||
'showarmorlayer':'armor',
|
||||
'showaugmentedstat':'augmented',
|
||||
'showcapacitytype':'capacity',
|
||||
'showseeinto':'cognition',
|
||||
'showconversiontype':'conversion',
|
||||
'showdefect':'defect',
|
||||
'showvariablestat':'dynamicpowers',
|
||||
'showenemy':'enemyattack',
|
||||
'showenemy':'enemydefense',
|
||||
'showextraarms':'extraarms',
|
||||
'showvariablestat':'features',
|
||||
'showimmunityrole':'immunity',
|
||||
'showvariablestat':'immutable',
|
||||
'showweaponclass':'meleeattack',
|
||||
'showweaponclass':'meleedefense',
|
||||
'showvariablestat':'metamorphosis',
|
||||
'showattrsrc':'mimic',
|
||||
'showattrsrc':'nullify',
|
||||
'showvariablestat':'nullify',
|
||||
'showvariablestat':'powerflux',
|
||||
'showvariablestat':'powervariation',
|
||||
'showdefenseclass':'rangeddefense',
|
||||
'showcollectiontype':'regeneration',
|
||||
'showskillgroup':'skill',
|
||||
'showsupersense':'supersense',
|
||||
'showvariablestat':'transmute',
|
||||
'showunaffected':'unaffected',
|
||||
'showattrsrc':'unaffected',
|
||||
'showdamagetype':'weapon',
|
||||
'showweaponclass':'weapon'
|
||||
*/
|
||||
};
|
||||
const settings_array = settingsObj[attribute] || [];
|
||||
const result =
|
||||
_.map(settings, setting => {
|
||||
clog(debug, timer, 'setting =', setting,'exposeAttrSettingsOnAttributeChange(TEST)');
|
||||
const set = settings_array.indexOf(setting) !== -1 ? 1 : 0;
|
||||
clog(debug, timer, 'set =', set);
|
||||
setObj[`${source}_${setting}`] = set;
|
||||
return `${setting} = ${set}`;
|
||||
});
|
||||
/*
|
||||
const result = _.map(settings, setting => {
|
||||
const set = settingsObj[attribute] === setting ? 1 : 0;
|
||||
setObj[`${source}_${setting}`] = set;
|
||||
return `${setting} = ${set}`;
|
||||
});
|
||||
*/
|
||||
clog(debug, timer, 'result:', result,'exposeAttrSettingsOnAttributeChange()');
|
||||
clog(debug, timer, 'attribute =', attribute);
|
||||
}
|
||||
|
||||
function exposeAttrSettingsOnCustomizationChange(debug, timer, eventInfo, source, customization, setObj) {
|
||||
|
||||
Reference in New Issue
Block a user