MZ Item note not adding value?

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:

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.
I can't see any troubles here, but this is just a tiny extraction from your plugin. What it does is, it accepts either items, weapons, or armors and for each of those having this note tag, it applies
Code:
_sharpnessBoost
on it.

So the variable is there, but we can't see if it's actually read or used at all. Here we would need the full plugin.
I can't see any troubles here, but this is just a tiny extraction from your plugin. What it does is, it accepts either items, weapons, or armors and for each of those having this note tag, it applies
Code:
_sharpnessBoost
on it.

So the variable is there, but we can't see if it's actually read or used at all. Here we would need the full plugin.
Come to think of it, I don't think I saw that "sharpnessBoost" anywhere in the script... Unfortunately I don't know how I would implement it, the developer was in a rush and no longer helps.
Come to think of it, I don't think I saw that "sharpnessBoost" anywhere in the script... Unfortunately I don't know how I would implement it, the developer was in a rush and no longer helps.
If you don't mind waiting a bit I'd be happy to take a look at it for you once my workload's a bit lighter.

Original thread: https://forums.rpgmakerweb.com/threads/item-note-not-adding-value.146474/