Threat System Works Weirdly

So this script
https://euphoria337.wordpress.com/2014/08/16/threat-system-v1-0/
Is supposed to add values to a gauge whenever a skill with <threat: x> in notetags is used. It does that, but ONLY if said skill has something in effects, like inflict state or call a common event. Without that - doesn't add nothing. Not even default amount for skills with notetag, which would be 5.
upload_2018-4-7_22-24-58.png

Which is weird and is not mentioned in description.

For items, it doesn't add any Threat with or without effects. Just ignores the tag altogether.
Both of those were on the clean project with no other scripts.

On my main project however, skills act the same, but items do add default amount, still ignoring the tag.
Weird.

I know I should probably ask the author first, but they've been offline for 4 years, and also maybe there's just some obscure typo that ruins the whole thing, and not a bigger problem with how the script plays out. Anyone care to take a look?
https://www.dropbox.com/s/qspcxdeyztlszx6/Euphoria - Threat System - 15.rb
The problem is in this part of the code:

Code:
  #ALIAS - ITEM_APPLY
  alias euphoria_threat_gamebattler_itemapply_15 item_apply
  def item_apply(user, item)
    if item_has_any_valid_effects?(user, item)
      if item.threat_plus == nil
        user.threat += Euphoria::Threat::DEFAULT
        user.threat = 100 if user.threat > 100
        user.threat = 0 if user.threat < 0
      else
        user.threat += item.threat_plus
        user.threat = 100 if user.threat > 100
        user.threat = 0 if user.threat < 0
      end
    end
    euphoria_threat_gamebattler_itemapply_15(user, item)
  end

The entire thread add is after the line if item_has_any_valid_effects?(user, item), which is forcing it to only add threat in the event of an item effect. Now you could probably make it work by just having every skill that you want to add threat add a dummy state with 100% chance that you call threat which has no icon (so the player doesn't see it).

No idea why they coded it that way though, and I'm not sure deleting that line and the 2nd end in that list would have any problems, as that would remove the if check and it should then apply it for everything. But maybe there were problems with that, which is why it is this way.

Original thread: https://forums.rpgmakerweb.com/threads/threat-system-works-weirdly.93746/