iitc-project / ingress-intel-total-conversion

ingress.com/intel total conversion user script with some new features. Should allow easier extension of the intel map.
http://iitc.jonatkins.com/
ISC License
991 stars 553 forks source link

Player Tracker Plugin - Exclude "__MACHINA__" and/or Team "NEUTRAL" #1322

Open jmansson19 opened 1 year ago

jmansson19 commented 1 year ago

There is no reason to track the "player" named "__MACHINA__" in the NEUTRAL team. It just causes mess on the map.

The "quick and dirty" solution would be to change this:

  case 'PLAYER':
         plrname = markup[1].plain;

into this:

  case 'PLAYER':
    if(markup[1].team === "RESISTANCE" || markup[1].team === "ENLIGHTENED") {
      plrname = markup[1].plain;
    } 

But there is probably a better way solving it...

Suburbanno commented 11 months ago

@jmansson19 is fixed here

https://github.com/IITC-CE/ingress-intel-total-conversion