So, I have a weapon sharpness plugin I commissioned and it was incredibly half assed. Each weapon has its own sharpness bar and I have an item named "whetstone" that is supposed to increase the equipped weapon sharpness by X amount.
I'm terrible at JS but I tried digging through the code and found this:
Is that written correctly? I paid about $150 for this plugin but I won't hesitate to share it to a long time forum member so it can get adjusted so it works properly.
-edit-
The notetag that should add sharpness should be <Sharpness ADD: X> and should add it in battle.
I'm terrible at JS but I tried digging through the code and found this:
JavaScript:
DataManager.processItemSharpness = function(data) {
for ( var i = 1; i < data.length; i++) {
var obj = data[i];
if (obj.name == '') continue;
obj._sharpnessBoost = 0;
var notedata = obj.note.split(/[\r\n]+/);
for ( var j = 0; j < notedata.length; j++) {
var line = notedata[j];
if (line.match(/<Sharpness ADD:[ ]([+-]?\d+)>/i)) {
obj._sharpnessBoost = Number(RegExp.$1);
continue;
}
}
}
};
Is that written correctly? I paid about $150 for this plugin but I won't hesitate to share it to a long time forum member so it can get adjusted so it works properly.
-edit-
The notetag that should add sharpness should be <Sharpness ADD: X> and should add it in battle.