Inisght affliction tracking package.
Returns an array of afflictions on current target.
insight.currentAffs();// ['asthma', 'paralysis', 'clumsiness'];Returns an array of afflictions on current target in string format including probability.
insight.currentAffDisplay();// ['asthma: 0.5', 'clumsiness: 0.5', 'paralysis: 1'];Returns an HTML friendly display of the current affs, including probability.
insight.currentAffDisplayHTML();// ['asthma: 0.5', 'clumsiness: 0.5', 'paralysis: 1'];Returns a boolean for affliction on target meeting a provided probability from 0 - 1.
//Target afflictions ['asthma: 0.5', 'clumsiness: 0.5', 'paralysis: 1'];insight.hasAff({id: 'asthma'});// trueinsight.hasAff({id: 'asthma',probability: 0.75});//falseinsight.hasAff({id: 'asthma',probability: 0.25});// trueReturns a boolean for the presence of any aff listed in the array meeting a provided probability from 0 - 1 for the current target.
//Target afflictions ['asthma: 0.5', 'clumsiness: 0.5', 'paralysis: 1'];insight.hasAnAff({ids: ['asthma','clumsiness']});// trueinsight.hasAnAff({ids: ['nausea','slickness']});// falseinsight.hasAnAff({ids: ['asthma','paralysis'],probability: 0.75});// trueinsight.hasAnAff({ids: ['asthma','clumsiness'],probability: 1});// falseReturns a boolean for the presence of all affs listed in the array meeting a provided probability from 0 - 1 for the current target.
//Target afflictions ['asthma: 0.5', 'clumsiness: 0.5', 'paralysis: 1'];insight.hasAffs({ids: ['asthma','clumsiness']});// trueinsight.hasAffs({ids: ['asthma','slickness']});// falseinsight.hasAffs({ids: ['asthma','paralysis'],probability: 1});// falseinsight.hasAffs({ids: ['asthma','clumsiness'],probability: 0.5});// trueReturns a boolean for the state of a tracked defense on the target.
//Target defense rebounding = true, shield = false;insight.hasDef({id: 'rebounding'});// trueinsight.hasDef({id: 'shield'});// falseReturns the stored value of any status variable tracked by insight on the current target.
//Target health = 5000, mana = 4500insight.getStatus({id: 'hp'});// 5000Used to confirm if a tracked aff is either 1.0 or no longer present; e.g. A target with tacked asthma smoking.
//Target afflictions ['asthma: 0.5', 'clumsiness: 0.5', 'paralysis: 1'];insight.confirmAff({id: 'asthma',state: true});//Target afflictions ['asthma: 1', 'clumsiness: 0.5', 'paralysis: 1'];insight.confirmAff({id: 'paralysis',state: false});//Target afflictions ['asthma: 1', 'clumsiness: 0.5''];//Target afflictions: ['asthma: 1', 'clumsiness: 1'];insight.usedCure({id: "kelp",player: "Khaseem"});//Target afflictions: ['asthma: 0.5', 'clumsiness: 0.5'];