nexsight 0.2.8 → 0.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/insight.min.js +1 -1
- package/insight3.nxs +1 -1
- package/package.json +1 -1
package/insight.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(){var t={95:function(){eventStream.registerEvent("insight.domination.humbugCommand",(function humbugCommand(t){insight.addAff({id:"addiction",player:t.target})}));eventStream.registerEvent("insight.domination.houndCommand",(function houndCommand(t){insight.addAff({id:"weariness",player:t.target})}));eventStream.registerEvent("insight.domination.stormCommand",(function stormCommand(t){insight.addAff({id:"vertigo",player:t.target})}));eventStream.registerEvent("insight.domination.bloodleechCommand",(function bloodleechCommand(t){insight.addAff({id:"haemophilia",player:t.target})}));eventStream.registerEvent("insight.domination.sycophantCommand",(function sycophantCommand(t){insight.addAff({id:"weakenedmind",player:t.target})}));eventStream.registerEvent("insight.domination.slimeCommand",(function slimeCommand(t){insight.addAff({id:"slimeobscure",player:t.target});insight.nextLine(/^Horror overcomes \w+'s face as \w+ body stiffens into paralysis\.$/)&&insight.confirmAff({id:"asthma",player:t.target,state:!0})}));eventStream.registerEvent("insight.domination.chimeraCommandDeaf",(function chimeraCommandDeaf(t){insight.confirmAff({id:"undeaf",state:!1,player:t.target})}));eventStream.registerEvent("insight.domination.chimeraCommand",(function chimeraCommand(t){insight.confirmAff({id:"undeaf",state:!0,player:t.target}),insight.nextLine(insight.target.id)||insight.addAff({id:"hallucinations",player:t.target})}));eventStream.registerEvent("insight.domination.bubonisCommand",(function bubonisCommand(t){insight.hasDef({id:"fangbarrier",player:t.target})?insight.nextLine("The protective coating covering the skin of")?(insight.confirmAff({id:"asthma",player:t.target,state:!0}),insight.addAff({id:"slickness",player:t.target})):insight.addAff({id:"asthma",player:t.target,state:!0}):insight.hasAff({id:"asthma",player:t.target,probability:.49})?insight.addAff({id:"slickness",player:t.target}):insight.addAff({id:"asthma",player:t.target,state:!0})}));eventStream.registerEvent("insight.domination.wormCommand",(function wormCommand(t){insight.addAff({id:"palpatarfeed",player:t.target})}));eventStream.registerEvent("insight.domination.wormTick",(function wormTick(t){insight.addAff({id:"healthleech",player:t.target})}));var t=function croneCommand(t){insight.addAff({id:"broken".concat(affs[0]),player:t.target})};eventStream.registerEvent("insight.domination.croneCommand",t),eventStream.registerEvent("insight.domination.cronePrimebond",t);eventStream.registerEvent("insight.domination.abominationCommandFail",(function abominationCommandFail(t){insight.removeAff({id:"cleanseaura",player:t.target})}));var r=function gremlinCommand(t){insight.removeDef({id:"shield",player:t.target})};eventStream.registerEvent("insight.domination.gremlinCommand",r),eventStream.registerEvent("insight.domination.gremlinCommandFail",r);eventStream.registerEvent("insight.domination.firelordCommand",(function firelordCommand(t){insight.removeDef({id:"shield",player:t.target})}));eventStream.registerEvent("insight.domination.firelordCommandFail",(function firelordCommandFail(t){}));eventStream.registerEvent("insight.domination.wormPrimebond",(function wormPrimebond(t){insight.addAff({id:"nausea",player:t.target})}));eventStream.registerEvent("insight.domination.gremlinPrimebond",(function gremlinPrimebond(t){insight.addAff({id:"dizziness",player:t.target})}));eventStream.registerEvent("insight.domination.gremlinPrimebond2",(function gremlinPrimebond2(t){insight.confirmAff({id:"dizziness",state:!0,player:t.target})}));eventStream.registerEvent("insight.domination.humbugPrimebond",(function humbugPrimebond(t){insight.hasAff({id:"addiction",player:t.target,probability:.49})?(insight.adjustStat({id:"hp",player:t.target,value:-.1}),insight.adjustStat({id:"mana",player:t.target,value:-.1})):(insight.adjustStat({id:"hp",player:t.target,value:-.05}),insight.adjustStat({id:"mana",player:t.target,value:-.05}))}));eventStream.registerEvent("insight.domination.bubonisPrimebond",(function bubonisPrimebond(t){insight.smartAffs({ids:insight.occultist.bubonis,player:t.target})}));eventStream.registerEvent("insight.domination.chimeraPrimebondGas",(function chimeraPrimebondGas(t){insight.removeDef({id:insomnia,player:t.target})}));eventStream.registerEvent("insight.domination.chimeraPrimebondRam",(function chimeraPrimebondRam(t){insight.addAff({id:"prone",player:t.target})}));eventStream.registerEvent("insight.domination.chimeraPrimebondRoar",(function chimeraPrimebondRoar(t){insight.addAff({id:"undeaf",player:t.target}),insight.addAff({id:"prone",player:t.target})}));eventStream.registerEvent("insight.domination.chimeraPrimebondUndeaf",(function chimeraPrimebondUndeaf(t){insight.addAff({id:"undeaf",player:t.target})}))},389:function(){function _readOnlyError(t){throw new TypeError('"'+t+'" is read-only')}eventStream.registerEvent("insight.occultism.instill",(function instill(t){insight.adjustStat({id:"hp",player:t.target,value:-.03}),insight.adjustStat({id:"mana",player:t.target,value:-.03}),"sensitivity"===t.affs[0]?insight.hasAff({id:"undeaf",player:t.target})?insight.addAff({id:"sensitivity",player:t.target}):insight.addAff({id:"undeaf",player:t.target}):insight.addAff({id:t.affs[0],player:t.target})}));eventStream.registerEvent("insight.occultism.enervate",(function enervate(t){insight.adjustStat({id:"mana",player:t.target,value:-.2})}));eventStream.registerEvent("insight.occultism.ague",(function ague(t){insight.hasDef({id:"insulation",player:t.target})?insight.removeDef({id:"insulation",player:t.target}):insight.smartAffs({ids:["shivering","frozen"],player:t.target,ordered:!0})}));eventStream.registerEvent("insight.domination.attend",(function attend(t){insight.addAff({id:"undeaf",player:t.target}),insight.addAff({id:"unblind",player:t.target})}));eventStream.registerEvent("insight.occultism.shrivelTargeted",(function shrivelTargeted(t){insight.addAff({id:t.affs[0],player:t.target})}));eventStream.registerEvent("insight.occultism.shrivelArms",(function shrivelArms(t){insight.smartAffs({ids:["brokenrightarm","brokenleftarm"],player:t.target})}));eventStream.registerEvent("insight.occultism.shrivelLegs",(function shrivelLegs(t){insight.smartAffs({ids:["brokenrightarm","brokenleftarm"],player:t.target})}));eventStream.registerEvent("insight.occultism.shrivelRehit",(function shrivelRehit(t){var r=t.groups.limb.replace(" ","").toLowerCase();"arm"===r?(insight.confirmAff({id:"brokenleftarm",player:t.target,state:!0}),insight.confirmAff({id:"brokenrightarm",player:t.target,state:!0})):"leg"===r?(insight.confirmAff({id:"brokenleftleg",player:t.target,state:!0}),insight.confirmAff({id:"brokenrightleg",player:t.target,state:!0})):insight.confirmAff({id:"broken".concat(r),player:t.target,state:!0})}));eventStream.registerEvent("insight.occultism.unnamableSpeak",(function unnamableSpeak(t){var r=GMCP.RoomPlayers.map((function(t){return t.name}));nexAction.triggers.add({id:"insight.occultism.unnamableSpeak",tags:["insight"],regex:/^(\w+) pales as the blood drains from \w+ face\.$/,action:function action(t){insight.addAff({id:"undeaf",player:t[1]}),r.filter((function(r){return r!==t[1]})),_readOnlyError("players")},onRemove:function onRemove(){r.forEach((function(t){return insight.removeAff({id:"undeaf",player:t})}))}}),eventStream.registerEvent("PromptEvent",(function(){nexAction.triggers.remove("insight.occultism.unnamableSpeak")}),!0)}));eventStream.registerEvent("insight.occultism.unnamableVision",(function unnamableVision(t){var r=GMCP.RoomPlayers.map((function(t){return t.name}));nexAction.triggers.add({id:"insight.occultism.unnamableVision",tags:["insight"],regex:/^(\w+) pales as the blood drains from \w+ face\.$/,action:function action(t){insight.addAff({id:"unblind",player:t[1]}),r.filter((function(r){return r!==t[1]})),_readOnlyError("players")},onRemove:function onRemove(){r.forEach((function(t){return insight.removeAff({id:"unblind",player:t})}))}}),eventStream.registerEvent("PromptEvent",(function(){nexAction.triggers.remove("insight.occultism.unnamableVision")}),!0)}));eventStream.registerEvent("insight.occultism.devolve",(function devolve(t){insight.addAff({id:"shyness",player:t.target}),insight.addAff({id:"disloyalty",player:t.target})}));eventStream.registerEvent("insight.occultism.whisperingmadness",(function whisperingmadness(t){insight.addAff({id:"whisperingmadness",player:t.target})}));eventStream.registerEvent("insight.occultism.whisperingmadnessMiss",(function whisperingmadnessMiss(t){insight.occultist.whisperingmadness.forEach((function(r){return insight.removeAff({id:r,player:t.target})}))}));eventStream.registerEvent("insight.occultism.cleanseaura",(function cleanseaura(t){nexusclient.current_block.find((function(t){return t.line.includes("A look of sudden concern")}))?insight.addAff({id:"cleanseaura",player:t.target}):insight.removeAff({id:"cleanseaura",player:t.target})}))},473:function(){eventStream.registerEvent("insight.tarot.magician",(function magician(t){insight.adjustStat({id:"mana",player:t.target,value:.25})}));eventStream.registerEvent("insight.tarot.priestess",(function priestess(t){insight.adjustStat({id:"hp",player:t.target,value:.25})}));eventStream.registerEvent("insight.tarot.lovers",(function lovers(t){insight.addAff({id:"lovers",player:t.target})}));eventStream.registerEvent("insight.tarot.aeon",(function aeon(t){insight.removeDef({id:"speed",player:t.target}),insight.addAff({id:"aeon",player:t.target})}));eventStream.registerEvent("insight.tarot.aeonStrip",(function aeonStrip(t){insight.removeDef({id:"speed",player:t.target})}));eventStream.registerEvent("insight.tarot.justice",(function justice(t){insight.addAff({id:"justice",player:t.target})}));eventStream.registerEvent("insight.tarot.deathRub",(function deathRub(t){insight.hasDef({id:"insulation",player:t.target})?insight.removeDef({id:"insulation",player:t.target}):insight.addAff({id:"shivering",player:t.target})}));eventStream.registerEvent("insight.tarot.ruinateLovers",(function ruinateLovers(t){insight.addAff({id:"manaleech",player:t.target})}));eventStream.registerEvent("insight.tarot.ruinateJustice",(function ruinateJustice(t){insight.nextLine("violently spasms")||["paralysis","asthma","healthleech","haemophilia","sensitivity","clumsiness","weariness"].forEach((function(t){return insight.confirmAff({id:t,state:!1})}))}));eventStream.registerEvent("insight.tarot.moon",(function moon(t){console.log(JSON.stringify(insight.state.queues[insight.state.lastQueue]));var moon=insight.state.queues[insight.state.lastQueue].match(/FLING MOON AT \w+ (\w+)/);moon?insight.addAff({id:moon[1].toLowerCase(),player:t.target}):insight.smartAffs({ids:["stupidity","masochism","hallucinations","hypersomnia","confusion","epilepsy"],player:t.target})}))}},r={};function __webpack_require__(a){var i=r[a];if(void 0!==i)return i.exports;var o=r[a]={exports:{}};return t[a](o,o.exports,__webpack_require__),o.exports}!function(){"use strict";var t=["itching","paralysis","fear","brokenrightarm","brokenleftarm","brokenrightleg","brokenleftleg","lapsingconsciousness","aeon","lovers","confusion","epilepsy","pacified","blackout","dazed","justice","slashedthroat","hellsight","peace","dazzled","shyness","dizziness","slickness","asthma","nausea","selarnia","weariness","scytherus","haemophilia","clumsiness","hallucinations","healthleech","dementia","recklessness","anorexia","masochism","impatience","stupidity","generosity","addiction","deadening","manaleech","stuttering","paranoia","agoraphobia","loneliness","claustrophobia","vertigo","hypersomnia","shivering","frozen","burning","sensitivity","hypochondria","lethargy","disloyalty","darkshade","voyria","dissonance","phlogisticated","silver","spiritburn","tenderskin","guilt","skullfractures","wristfractures","crackedribs","torntendons","indifference","retribution","shadowmadness","parasite","depression","timeloop","crushedthroat","tension","unweavingspirit","grievouswounds","pyramides","flushings","rebbies","mycalium","sandfever"],r={ferrum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ferrum",order:["darkshade","haemophilia","lethargy","addiction","scytherus","nausea","flushings","unweavingbody"],prio:0},magnesium:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat magnesium",order:["paralysis","slickness","pyramides"],prio:0},aurum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat aurum",order:["clumsiness","healthleech","sensitivity","weariness","asthma","hypochondria","rebbies","parasite"],prio:0},calamine:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat calamine",order:["undeaf","deafness"],delay:2.5,prio:0},argentum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat argentum",order:["masochism","loneliness","vertigo","recklessness","agoraphobia","guilt","whisperingmadness","spiritburn","tenderskin"],prio:0},cuprum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat cuprum",order:["pacified","peace","lovers","justice","generosity","indifference","retribution","pyre","timeloop"],prio:0},antimony:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat antimony",order:["temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine"],prio:0},arsenic:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat arsenic",order:["unblind"],prio:0},stannum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat stannum",order:["claustrophobia","paranoia","confusion","hypersomnia","hallucinations","dementia"],prio:0},plumbum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["horror","stupidity","epilepsy","dizziness","shyness","impatience","dissonance","depression","sandfever","mycalium","shadowmadness","unweavingmind"],command:"eat plumbum",prio:0},calcite:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["pressure"],command:"eat calcite",prio:0},ginseng:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ginseng",order:["darkshade","haemophilia","lethargy","addiction","scytherus","nausea","flushings","unweavingbody"],prio:0},bloodroot:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bloodroot",order:["paralysis","slickness","pyramides"],prio:0},kelp:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat kelp",order:["clumsiness","healthleech","sensitivity","weariness","asthma","hypochondria","rebbies","parasite"],prio:0},hawthorn:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat hawthorn",order:["undeaf","deafness"],delay:2.5,prio:0},lobelia:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat lobelia",order:["masochism","loneliness","vertigo","recklessness","agoraphobia","guilt","whisperingmadness","spiritburn","tenderskin"],prio:0},bellwort:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bellwort",order:["pacified","peace","lovers","justice","generosity","indifference","retribution","pyre","timeloop"],prio:0},ginger:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ginger",order:["temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine"],prio:0},bayberry:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bayberry",order:["unblind"],prio:0},ash:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ash",order:["claustrophobia","paranoia","confusion","hypersomnia","hallucinations","dementia"],prio:0},goldenseal:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat goldenseal",order:["horror","stupidity","epilepsy","dizziness","shyness","impatience","dissonance","depression","sandfever","mycalium","shadowmadness","unweavingmind"],prio:0},pear:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["pressure"],command:"eat pear",prio:0},smoke:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke cinnabar",order:["aeon","disloyalty","hellsight","manaleech","slickness","deadening","tension","unweavingspirit"],prio:0},cinnabar:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke cinnabar",order:["aeon","deadening","tension","unweavingspirit"],prio:0},malachite:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke malachite",prio:0},realgar:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke realgar",order:["disloyalty","hellsight","manaleech","slickness"],prio:0},elm:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke elm",order:["aeon","deadening","tension","unweavingspirit"],prio:0},skullcap:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke skullcap",prio:0},valerian:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke valerian",order:["disloyalty","hellsight","manaleech","slickness"],prio:0},caloric:{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply caloric",order:["frozen","shivering"],prio:0},"epidermal to body":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to body",order:["anorexia"],prio:0},"epidermal to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to head",order:["blindness","scalded","stuttering","deafness"],prio:0},"epidermal to ears":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to ears",order:["deafness"],prio:0},"mending to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to head",order:["crushedthroat","dazzled"],prio:0},"mending to arms":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to arms",order:["brokenleftarm","brokenrightarm"],prio:0},"mending to legs":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to legs",order:["brokenleftleg","brokenrightleg"],prio:0},"mending to body":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to body",order:["burning"],prio:0},"restoration to head":{bals_used:["salve","restoration"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to head",order:["mangledhead","damagedhead","calcifiedskull","concussion","tonguetied"],delay:4,prio:0},"restoration to body":{bals_used:["salve","restoration"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to body",order:["hypothermia","heartseed","serioustrauma","mildtrauma","calcifiedtorso"],delay:4,prio:0},"restoration to arms":{bals_used:["salve","restoration"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to arms",order:["mangledleftarm","mangledrightarm","damagedleftarm","damagedrightarm"],delay:4,prio:0},"restoration to legs":{bals_used:["salve","restoration"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to legs",order:["mangledleftleg","mangledrightleg","damagedleftleg","damagedrightleg"],delay:4,prio:0},insomnia:{bals_req:["free"],bals_used:["free"],blocks:["hypersomnia","sleeping"],command:"insomnia",order:["insomnia"],prio:0},focus:{bals_req:["focus"],bals_used:["focus"],blocks:["impatience","sleeping"],command:"focus",order:["stupidity","epilepsy","dizziness","shyness","claustrophobia","paranoia","confusion","hallucinations","dementia","pacified","peace","lovers","generosity","masochism","loneliness","vertigo","recklessness","agoraphobia","anorexia","stuttering"],prio:0},"health to head":{bals_req:["sip"],bals_used:["sip"],command:"apply health to head",order:["skullfractures"],prio:0},"health to torso":{bals_req:["sip"],bals_used:["sip"],command:"apply health to torso",order:["crackedribs","grievouswounds"],prio:0},"health to arms":{bals_req:["sip"],bals_used:["sip"],command:"apply health to arms",order:["wristfractures"],prio:0},"health to legs":{bals_req:["sip"],bals_used:["sip"],command:"apply health to legs",order:["torntendons","latched","kkractlebrand"],prio:0},concentrate:{blocks:["sleeping","confusion"],command:"concentrate",order:["disrupted"],prio:0},immunity:{bals_req:["immunity"],bals_used:["immunity"],blocks:["sleeping","anorexia"],command:"sip immunity",order:["voyria"],prio:0},stand:{bals_req:["balance","equilibrium"],bals_used:[],blocks:["death","sleeping","paralysis","brokenrightleg","brokenleftleg","damagedleftleg","damagedrightleg","mangledrightleg","mangledleftleg","entangled","transfixation","impaled","webbed","bound"],command:"stand",order:["prone"],prio:0},tree:{bals_used:["tree"],bals_req:["tree"],blocks:["death","sleeping","paralysis",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],command:"touch tree",order:t,prio:0},health:{bals_req:["sip"],bals_used:["sip"],blocks:["sleeping","anorexia"],command:"sip health",prio:0},mana:{bals_req:["sip"],bals_used:["sip"],blocks:["sleeping","anorexia"],command:"sip mana",prio:0},potash:{bals_req:["moss"],bals_used:["moss"],blocks:["sleeping","anorexia"],command:"eat potash",prio:0},moss:{bals_req:["moss"],bals_used:["moss"],blocks:["sleeping","anorexia"],command:"eat moss",prio:0},fitness:{bals_req:["equilibrium","balance","fitness"],bals_used:["balance","fitness"],blocks:["weariness","sleeping"],skills:["Monk","Runewarden"],command:"fitness",order:["asthma"],prio:0},bloodboil:{bals_req:["equilibrium","balance","bloodboil"],bals_used:["equilibrium","bloodboil"],blocks:["death","haemophilia","sleeping",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],skills:["Magi"],command:"cast bloodboil",order:t,prio:0},restore:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"restore",order:["brokenleftarm","brokenrightarm","brokenleftleg","brokenrightleg","skullfractures","torntendons","wristfractures","crackedribs"],prio:0},dragonflex:{bals_req:["balance"],bals_used:["balance"],command:"dragonflex",skills:["Dragon"],order:["webbed","entangled"],prio:0},dragonheal:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"dragonheal",skills:["Dragon"],blocks:["sleeping",["recklessness","weariness"]],order:t,prio:0},might:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"dragonheal",skills:["Dragon"],blocks:["sleeping",["recklessness","weariness"]],order:["weariness","paralysis"].concat(t),prio:0},dwinnu:{bals_req:["voice"],bals_used:["voice"],command:"chant dwinnu",skills:["Bard"],order:["webbed","entangled"],prio:0},rage:{bals_req:["rage"],bals_used:["rage"],command:"rage",skills:["Runewarden"],order:["pacified","peace","lovers","generosity"],prio:95},salt:{bals_req:["equilibrium","salt"],bals_used:["salt","equilibrium"],blocks:["stupidity","sleeping"],skills:["Alchemist"],command:"educe salt",order:t,prio:0},siphon:{bals_req:["angel"],bals_used:["angel"],blocks:["sleeping"],skills:["Apostate","Priest"],command:"educe salt",order:t,prio:0},shrugging:{bals_req:["equilibrium","balance","shrugging"],bals_used:["shrugging"],blocks:["weariness","sleeping"],skills:["Serpent"],command:"shrugging",order:t,prio:0},slough:{bals_req:["equilibrium","balance","slough"],bals_used:["slough","balance"],blocks:["weariness","sleeping"],skills:["Fire Elemental Lord"],command:"slough impurities",order:t,prio:0},fool:{bals_req:["equilibrium","balance","fool"],bals_used:["fool","balance"],blocks:["death","prone","paralysis","sleeping",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],skills:["Occultist"],command:"fling fool at me",order:t,prio:0},alleviate:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:["paralysis","sleeping"],skills:["Blademaster"],command:"alleviate",order:t,prio:0},accelerate:{bals_req:["equilibrium","balance","accelerate"],bals_used:["accelerate","balance"],blocks:["recklessness"],skills:["Depthswalker"],command:"accelerate",order:t,prio:0},sun:{bals_req:["sun"],bals_used:["sun"],blocks:[],skills:["Runewarden","Occultist"],command:"sun",order:t,prio:0},generic:{bals_req:["free"],bals_used:["free"],blocks:[],skills:[],command:"generic",order:t,prio:0},ruinateJustice:{bals_req:["free"],bals_used:["free"],blocks:[],command:"ruinate justice",order:["paralysis","asthma","clumsiness","weariness","haemophilia","sensitivity","healthleech"],prio:0}},a=function capitalize(t){return t.charAt(0).toUpperCase()+t.slice(1)};function ownKeys(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.push.apply(a,i)}return a}function _objectSpread(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(a),!0).forEach((function(r){_defineProperty(t,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):ownKeys(Object(a)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))}))}return t}function _defineProperty(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}var i=function generateChunk(t,r,a){var i=document.createElement("span");return i.style.color=r,i.style.backgroundColor=a,i.textContent=t,i},o={antimony:{fg:"olive",bg:""},argentum:{fg:"royalblue",bg:""},arsenic:{fg:"",bg:""},aurum:{fg:"ForestGreen",bg:""},azurite:{fg:"",bg:""},calamine:{fg:"",bg:""},calcite:{fg:"slategray",bg:""},cinnabar:{fg:"greenyellow",bg:""},cuprum:{fg:"DeepSkyBlue",bg:""},ferrum:{fg:"DarkOrange",bg:""},gypsum:{fg:"",bg:""},magnesium:{fg:"Red",bg:""},plumbum:{fg:"Gold",bg:""},quartz:{fg:"",bg:""},quicksilver:{fg:"",bg:""},realgar:{fg:"firebrick",bg:""},stannum:{fg:"Tan",bg:""},caloric:{fg:"darkseagreen",bg:""},mending:{fg:"orchid",bg:""},epidermal:{fg:"sienna",bg:""},restoration:{fg:"darkviolet",bg:""},health:{fg:"lightpink",bg:""},writhe:{fg:"paleyellow",bg:"darkslategray"}},l={addiction:_objectSpread({shortName:"add"},o.ferrum),aeon:_objectSpread({shortName:"ae"},o.cinnabar),agoraphobia:_objectSpread({shortName:"agor"},o.argentum),amnesia:{shortName:"amn",fg:"",bg:""},anorexia:_objectSpread({shortName:"ANO"},o.epidermal),asthma:_objectSpread({shortName:"AST"},o.aurum),blackout:{shortName:"bo",fg:"",bg:""},blindness:_objectSpread({shortName:"unb"},o.arsenic),bound:_objectSpread({shortName:"bnd"},o.writhe),brokenleftarm:_objectSpread({shortName:"la1"},o.mending),brokenleftleg:_objectSpread({shortName:"ll1"},o.mending),brokenrightarm:_objectSpread({shortName:"ra1"},o.mending),brokenrightleg:_objectSpread({shortName:"rl1"},o.mending),bruisedribs:{shortName:"ribs",fg:"",bg:""},burning:_objectSpread({shortName:"burn"},o.mending),calcifiedskull:_objectSpread({shortName:"calh"},o.restoration),calcifiedtorso:_objectSpread({shortName:"calt"},o.restoration),claustrophobia:_objectSpread({shortName:"clau"},o.stannum),cleanseaura:{shortName:"cleanse",fg:"",bg:""},clumsiness:_objectSpread({shortName:"clu"},o.aurum),concussion:_objectSpread({shortName:"conc"},o.restoration),confusion:_objectSpread({shortName:"con"},o.stannum),corruption:{shortName:"corr",fg:"",bg:""},crackedribs:_objectSpread({shortName:"cr"},o.health),crushedthroat:_objectSpread({shortName:"cru"},o.mending),daeggerimpale:_objectSpread({shortName:"daeg"},o.writhe),damage:{shortName:"dmg",fg:"tomato",bg:""},damagedleftarm:_objectSpread({shortName:"la2"},o.restoration),damagedleftleg:_objectSpread({shortName:"ll2"},o.restoration),damagedrightarm:_objectSpread({shortName:"ra2"},o.restoration),damagedrightleg:_objectSpread({shortName:"rl2"},o.restoration),damagedhead:_objectSpread({shortName:"hd2"},o.restoration),darkshade:_objectSpread({shortName:"dark"},o.ferrum),dazed:_objectSpread({shortName:"dzd"},o.cinnabar),dazzled:_objectSpread({shortName:"dzl"},o.mending),deadening:_objectSpread({shortName:"dea"},o.cinnabar),deafness:_objectSpread({shortName:"und"},o.calamine),dehydrated:{shortName:"deh",fg:"",bg:""},dementia:_objectSpread({shortName:"dem"},o.stannum),depression:_objectSpread({shortName:"dep"},o.plumbum),deteriorate:{shortName:"det",fg:"",bg:""},disloyalty:_objectSpread({shortName:"disl"},o.realgar),disrupted:{shortName:"disr",fg:"",bg:""},dissonance:_objectSpread({shortName:"disso"},o.plumbum),dizziness:_objectSpread({shortName:"diz"},o.plumbum),enmesh:_objectSpread({text:"enmsh"},o.writhe),enscorcelled:{shortName:"ensor",fg:"",bg:""},entangled:_objectSpread({shortName:"entgl"},o.writhe),epilepsy:_objectSpread({shortName:"epi"},o.plumbum),fear:{shortName:"fear",fg:"",bg:""},flushings:_objectSpread({shortName:"flush"},o.ferrum),frozen:_objectSpread({shortName:"frz"},o.caloric),generosity:_objectSpread({shortName:"gen"},o.cuprum),grievouswounds:_objectSpread({shortName:"grv"},o.health),guilt:_objectSpread({shortName:"gui"},o.argentum),haemophilia:_objectSpread({shortName:"haem"},o.ferrum),hallucinations:_objectSpread({shortName:"hall"},o.stannum),hamstrung:{shortName:"hms",fg:"",bg:""},healthleech:_objectSpread({shortName:"hthl"},o.aurum),heartseed:_objectSpread({shortName:"heart"},o.restoration),hellsight:_objectSpread({shortName:"hell"},o.realgar),horror:_objectSpread({shortName:"hor"},o.plumbum),hypersomnia:_objectSpread({shortName:"hypers"},o.stannum),hypochondria:_objectSpread({shortName:"hypoch"},o.aurum),hypothermia:_objectSpread({shortName:"hypoth"},o.restoration),icefisted:{shortName:"ice",fg:"",bg:""},impaled:_objectSpread({shortName:"impl"},o.writhe),impatience:_objectSpread({shortName:"IMPAT"},o.plumbum),indifference:_objectSpread({shortName:"ind"},o.cuprum),itching:_objectSpread({shortName:"itch"},o.epidermal),justice:_objectSpread({shortName:"just"},o.cuprum),kkractlebrand:_objectSpread({shortName:"kkr"},o.health),laceratedthroat:_objectSpread({shortName:"lac2"},o.restoration),latched:_objectSpread({shortName:"latch"},o.health),lethargy:_objectSpread({shortName:"let"},o.ferrum),lightbind:{shortName:"light",fg:"",bg:""},loneliness:_objectSpread({shortName:"lon"},o.argentum),lovers:_objectSpread({shortName:"love"},o.cuprum),manaleech:_objectSpread({shortName:"man"},o.realgar),mangledleftarm:_objectSpread({shortName:"la3"},o.restoration),mangledleftleg:_objectSpread({shortName:"ll3"},o.restoration),mangledrightarm:_objectSpread({shortName:"ra3"},o.restoration),mangledrightleg:_objectSpread({shortName:"rl3"},o.restoration),mangledhead:_objectSpread({shortName:"hd3"},o.restoration),masochism:_objectSpread({shortName:"maso"},o.argentum),mildtrauma:_objectSpread({shortName:"tor1"},o.restoration),mycalium:_objectSpread({shortName:"myc"},o.plumbum),nausea:_objectSpread({shortName:"nau"},o.ferrum),numbedleftarm:{shortName:"nbla",fg:"",bg:""},numbedrightarm:{shortName:"nbra",fg:"",bg:""},pacified:_objectSpread({shortName:"pac"},o.cuprum),paralysis:_objectSpread({shortName:"PAR"},o.magnesium),paranoia:_objectSpread({shortName:"prn"},o.stannum),parasite:_objectSpread({shortName:"prs"},o.aurum),peace:_objectSpread({shortName:"pea"},o.cuprum),phlogisticated:{shortName:"phlog",fg:"",bg:""},pinshot:{shortName:"psh",fg:"",bg:""},pressure:_objectSpread({shortName:"pres"},o.calcite),prone:{shortName:"pr",fg:"",bg:""},pyramides:_objectSpread({shortName:"pyra"},o.magnesium),pyre:_objectSpread({shortName:"pyre"},o.cuprum),rebbies:_objectSpread({shortName:"reb"},o.aurum),recklessness:_objectSpread({shortName:"reck"},o.argentum),retardation:{shortName:"ret",fg:"",bg:""},retribution:_objectSpread({shortName:"retr"},o.cuprum),revealed:{shortName:"rev",fg:"",bg:""},sandfever:_objectSpread({shortName:"sand"},o.plumbum),scalded:_objectSpread({shortName:"scald"},o.epidermal),scytherus:_objectSpread({shortName:"scy"},o.ferrum),selarnia:_objectSpread({shortName:"sel"},o.mending),sensitivity:_objectSpread({shortName:"sen"},o.aurum),serioustrauma:_objectSpread({shortName:"tor2"},o.restoration),shadowmadness:_objectSpread({shortName:"shad"},o.plumbum),shivering:_objectSpread({shortName:"shiv"},o.caloric),shyness:_objectSpread({shortName:"shy"},o.plumbum),skullfractures:_objectSpread({shortName:"sf"},o.health),slashedthroat:_objectSpread({shortName:"lac1"},o.epidermal),sleeping:{shortName:"slp",fg:"",bg:""},slickness:_objectSpread({shortName:"SLI"},o.magnesium),slimeobscure:{shortName:"nkh",fg:"",bg:""},spiritburn:_objectSpread({shortName:"spirB"},o.argentum),spiritwrack:{shortName:"spirW",fg:"",bg:""},stupidity:_objectSpread({shortName:"st"},o.plumbum),stuttering:_objectSpread({shortName:"stut"},o.epidermal),homunculusmercury:{shortName:"merc",fg:"",bg:""},temperedcholeric:_objectSpread({shortName:"choH"},o.antimony),temperedmelancholic:_objectSpread({shortName:"melaH"},o.antimony),temperedphlegmatic:_objectSpread({shortName:"phleH"},o.antimony),temperedsanguine:_objectSpread({shortName:"sanH"},o.antimony),tenderskin:_objectSpread({shortName:"tend"},o.argentum),tension:_objectSpread({shortName:"tens"},o.cinnabar),timeflux:{shortName:"tmfx",fg:"",bg:""},timeloop:_objectSpread({shortName:"tmlp"},o.cuprum),tonguetied:_objectSpread({shortName:"tngt"},o.restoration),torntendons:_objectSpread({shortName:"tt"},o.health),transfixation:_objectSpread({shortName:"trfx"},o.writhe),unweavingbody:_objectSpread({shortName:"unwM"},o.ferrum),unweavingspirit:_objectSpread({shortName:"unwS"},o.cinnabar),unweavingmind:_objectSpread({shortName:"unwM"},o.plumbum),unblind:{shortName:"unB",fg:"",bg:""},undeaf:{shortName:"unD",fg:"",bg:""},vertigo:_objectSpread({shortName:"vert"},o.argentum),vitrified:{shortName:"vitri",fg:"",bg:""},voidfisted:{shortName:"void",fg:"",bg:""},voyria:{shortName:"voy",fg:"",bg:""},weariness:_objectSpread({shortName:"wea"},o.aurum),webbed:_objectSpread({shortName:"web"},o.writhe),whisperingmadness:_objectSpread({shortName:"mad"},o.argentum),wristfractures:_objectSpread({shortName:"wf"},o.health)},c=function colorGradation(t){return"hsl(".concat(1.2*t,", 100%, ").concat(t<75?50:Math.abs(t-100)/2+25,"%)")},d={notice:function notice(t){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a="#784695",i="#CBCE91FF",o="#FFF2D7",l=document.createElement("span");l.setAttribute("class","mono"),l.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(a),innerHTML:"<<"})),l.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(i),innerHTML:"insight"})),l.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(a),innerHTML:">> "})),r?l.insertAdjacentHTML("beforeend",t):l.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(o),innerHTML:t})),nexusclient.add_html_line(l.outerHTML)},affUpdate:function affUpdate(t,r){var o,c=document.createElement("span");c.setAttribute("class","mono"),o=r?i("+aff ","lime"):i("-aff ","red"),c.appendChild(o);var d=i(a(t),l[t].fg||"",l[t].bg||"");return c.appendChild(d),c.outerHTML},defUpdate:function defUpdate(t,r){var o,l=document.createElement("span");l.setAttribute("class","mono"),o=r?i("+def ","lime"):i("-def ","red"),l.appendChild(o);var c=i(a(t));return l.appendChild(c),l.outerHTML},currentAffDisplayHTML:function currentAffDisplayHTML(){var t=document.createElement("span");if(t.setAttribute("class","mono"),t.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"["})),insight.currentAffs().length>1)for(var r=0;r<insight.currentAffs().length-1;r++){var i=insight.currentAffs()[r];t.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(l[i].fg||"",";background:").concat(l[i].bg||""),innerHTML:insight.reporting.shortNames?"".concat(l[i].shortName):"".concat(a(i))})),t.appendChild(Object.assign(document.createElement("span"),{innerHTML:insight.currentAffs().length>1?": ".concat(insight.target.affs[i].probability,", "):": ".concat(insight.target.affs[i].probability)}))}var o=insight.currentAffs().at(-1);return t.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(l[o].fg||"",";background:").concat(l[o].bg||""),innerHTML:insight.reporting.shortNames?"".concat(l[o].shortName):"".concat(o)})),t.appendChild(Object.assign(document.createElement("span"),{innerHTML:": ".concat(insight.target.affs[o].probability)})),insight.currentAffs().forEach((function(t){})),t.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"]"})),t.outerHTML},currentStatsDisplayHTML:function currentStatsDisplayHTML(){var t=_objectSpread({},insight.target.stats),r=document.createElement("span");r.setAttribute("class","mono");var a=i("".concat(t.hp.get(),"(").concat(100*t.hpPercent.get(),"%)"),c(100*t.hpPercent.get()));r.appendChild(a);var o=i(", ");r.appendChild(o);var l=i("".concat(t.mana.get(),"(").concat(100*t.manaPercent.get(),"%)"),c(100*t.manaPercent.get()));return r.appendChild(l),r.outerHTML},cureColors:o,affAbbrev:l};function _classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var m=function(){function Timer(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;_classCallCheck(this,Timer),this._id=t,this._enabled=!1,this._startTime=0,this._endTime=0,this._timerId=0,this._defaultLength=r,this.setLength(r),this._callbacks=[]}return function _createClass(t,r,a){return r&&_defineProperties(t.prototype,r),a&&_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Timer,[{key:"length",get:function get(){return this._length}},{key:"id",get:function get(){return this._id}},{key:"enabled",get:function get(){return this._enabled}},{key:"setLength",value:function setLength(t){if(t<0)throw new Error("Timer length cannot be negative");this._length=t}},{key:"reset",value:function reset(){clearTimeout(this._timerId),this._enabled=!1,this.setLength(this._defaultLength),this._endTime=performance.now()/1e3,eventStream.raiseEvent("timerReset".concat(this._id))}},{key:"start",value:function start(){clearTimeout(this._timerId),this._startTimer(),eventStream.raiseEvent("timerStarted".concat(this._id))}},{key:"_startTimer",value:function _startTimer(){this._timerId=setTimeout(this.stop.bind(this),1e3*this._length),this._enabled=!0,this._startTime=performance.now()/1e3}},{key:"stop",value:function stop(){this._enabled&&(clearTimeout(this._timerId),this._endTime=performance.now()/1e3,this._enabled=!1,eventStream.raiseEvent("timerStopped".concat(this._id)),this._callbacks.forEach((function(t){return t()})))}},{key:"duration",value:function duration(){return this._enabled?this.elapsed():this._endTime-this._startTime}},{key:"elapsed",value:function elapsed(){return this._enabled?performance.now()/1e3-this._startTime:0}},{key:"remaining",value:function remaining(){return this._enabled?this._length-this.elapsed():this._length}},{key:"addCallback",value:function addCallback(t){if("function"!=typeof t)throw new Error("Callback must be a function");this._callbacks.push(t)}},{key:"clearCallbacks",value:function clearCallbacks(){this._callbacks=[]}}],[{key:"createTimer",value:function createTimer(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return new Timer(t,r)}}]),Timer}(),h=m.createTimer;function Affliction_defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var g=function(){function Affliction(t,a){var i=this;if(function Affliction_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Affliction),this.id=t,this.player=a,this.probability=0,this.cures=[],this.have=!1,Object.keys(r).forEach((function(a){var o;null!==(o=r[a].order)&&void 0!==o&&o.includes(t)&&i.cures.push(a)})),u.hasOwnProperty(t)){var o=u[t].length;this.timer=h("insightTimer".concat(t),o),this.timer.addCallback((function(){globalThis.insight.removeAff({id:i.id,player:i.player})}))}}return function Affliction_createClass(t,r,a){return r&&Affliction_defineProperties(t.prototype,r),a&&Affliction_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Affliction,[{key:"got",value:function got(){var t;this.have||(eventStream.raiseEvent("insightGotAff",this),eventStream.raiseEvent("insightGotAff".concat(this.id),this)),this.have=!0,this.probability=1,null===(t=this.timer)||void 0===t||t.start()}},{key:"lost",value:function lost(){this.have&&(eventStream.raiseEvent("insightLostAff",this),eventStream.raiseEvent("insightLostAff".concat(this.id),this)),this.reset()}},{key:"reset",value:function reset(){var t;this.have=!1,this.probability=0,null===(t=this.timer)||void 0===t||t.stop()}}]),Affliction}(),u={test:{length:10},aeon:{length:16},airfisted:{length:16},blackout:{length:10},blistered:{length:20},bruisedribs:{length:30},cadmuscurse:{length:20},cleanseaura:{length:5},condemned:{length:20},constricted:{length:30},corruption:{length:45},dazzled:{length:60},dehydrated:{length:60},demonstain:{length:120},empoweredloshre:{length:12},empoweredmannaz:{length:20},enmesh:{length:5},ensorcelled:{length:20},flamefisted:{length:30},hamstrung:{length:9},heartseed:{length:11},hecatecurse:{length:16},icefisted:{length:30},internalbleeding:{length:30},inquisition:{length:30},kaisurge:{length:15},lightbind:{length:22},mindravaged:{length:20},mudded:{length:12},numbedleftarm:{length:7.5},numbedrightarm:{length:7.5},petrified:{length:10},palpatarfeed:{length:20},phlogisticated:{length:45},pinshot:{length:18},revealed:{length:60},scalded:{length:20},scrambledbrains:{length:60},silenced:{length:20},silver:{length:180},slimeobscure:{length:60},solarburn:{length:5},stun:{length:3},timeflux:{length:60},trueblind:{length:6},unconsciousness:{length:10},vinewreathed:{length:30},vitrified:{length:45},voidfisted:{length:5},waterbonds:{length:30},weakenedmind:{length:60}},p=["undeaf","unblind","cleanseaura","addiction","aeon","agoraphobia","airfisted","amnesia","anorexia","asphyxiating","asthma","blackout","bleeding","blindness","blistered","bloodfire","bound","brokenleftarm","brokenrightarm","brokenleftleg","brokenrightleg","bruisedribs","burning","cadmuscurse","calcifiedskull","calcifiedtorso","claustrophobia","cleanseaura","clumsiness","coldfate","concussion","condemned","conflagration","confusion","constricted","corruption","crackedribs","cremated","crushedthroat","daeggerimpale","damagedhead","damagedleftarm","damagedleftleg","damagedrightarm","damagedrightleg","darkshade","dazed","dazzled","deadening","deafness","death","deathsickness","deepsleep","degenerate","dehydrated","dementia","demonstain","depression","deteriorate","disloyalty","disrupted","dissonance","dizziness","empoweredmannaz","empoweredloshre","enlightenment","enmesh","ensorcelled","entangled","epilepsy","fear","flamefisted","flushings","frozen","generosity","grievouswounds","guilt","hamstrung","haemophilia","hallucinations","hatred","healthleech","heartseed","hecatecurse","hellsight","hindered","homunculusmercury","horror","hypersomnia","hypochondria","hypothermia","icefisted","impaled","impatience","indifference","inquisition","insomnia","internalbleeding","isolation","itching","justice","kaisurge","kkractlebrand","laceratedthroat","lapsingconsciousness","latched","lethargy","lightbind","loneliness","lovers","lullaby","manaleech","masochism","mildtrauma","mangledleftarm","mangledleftleg","mangledrightarm","mangledrightleg","mangledhead","mindclamp","mindravaged","muddled","mycalium","nausea","numbedleftarm","numbedrightarm","pacified","palpatarfeed","paralysis","paranoia","parasite","peace","penitence","petrified","phlogisticated","pinshot","pressure","prone","pyramides","pyre","rebbies","recklessness","retribution","revealed","sandfever","scalded","scrambledbrains","scytherus","selarnia","sensitivity","serioustrauma","shadowmadness","shivering","shyness","silenced","silver","skullfractures","slashedthroat","sleeping","slickness","slimeobscure","solarburn","spiritburn","stun","stupidity","stuttering","temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine","tenderskin","tension","timeflux","timeloop","tonguetied","torntendons","transfixation","trueblind","unweavingbody","unweavingmind","unweavingspirit","vertigo","vinewreathed","vitiated","vitrified","voidfisted","voyria","waterbonds","weakenedmind","weariness","webbed","whisperingmadness","wristfractures","unconsciousness","harmonic","bop","spiritwrack","bedevil","loki","moon","evileye","dragoncurse","swiftcurse"],b={};p.forEach((function(t){b[t]=new g(t)}));var v=function generateAffs(t){var r={};return p.forEach((function(a){r[a]=new g(a,t)})),r};function Balance_defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var y=function(){function Balance(t){var r=t.id,a=t.duration;!function Balance_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Balance),this.id=r,this.have=!0,this.timer=h("insightTimer".concat(r),a),this.timer.addCallback(this.reset.bind(this))}return function Balance_createClass(t,r,a){return r&&Balance_defineProperties(t.prototype,r),a&&Balance_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Balance,[{key:"got",value:function got(){this.have=!0,eventStream.raiseEvent("insightGotBal",this),eventStream.raiseEvent("insightGot".concat(this.id),this),this.timer.stop()}},{key:"lost",value:function lost(){var t;this.have=!1,eventStream.raiseEvent("insightLostBal",this),eventStream.raiseEvent("insightLost".concat(this.id),this),null===(t=this.timer)||void 0===t||t.start()}},{key:"reset",value:function reset(){this.have=!0,this.timer.stop()}}]),Balance}(),_={},k=[{id:"balance",duration:1.8},{id:"equilibrium",duration:1.8},{id:"herb",duration:1.3},{id:"smoke",duration:1.3},{id:"salve",duration:.8},{id:"restoration",duration:3.8},{id:"focus",duration:2.3},{id:"tree",duration:14.8},{id:"shrugging",duration:9.8},{id:"fool",duration:9.8},{id:"sun",duration:19.8},{id:"accelerate",duration:9.8}];k.forEach((function(t){return _[t.id]=new y(t)}));var S=function generateBals(){var t={};k.forEach((function(r){return t[r.id]=new y(r)}));return t.restoration.timer.addCallback((function restorationCure(){insight.players[insight.restorationCure.player].timeline.cure(insight.restorationCure.id)})),t};function Defence_defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var A=function(){function Defence(t){var r=t.id,a=t.value,i=t.player;t.duration;!function Defence_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Defence),this.id=r,this.have=a,this.player=i,this.defaultValue=a}return function Defence_createClass(t,r,a){return r&&Defence_defineProperties(t.prototype,r),a&&Defence_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Defence,[{key:"got",value:function got(){this.have||(eventStream.raiseEvent("insightGotDef",this),eventStream.raiseEvent("insightGot".concat(this.id),this)),this.have=!0}},{key:"lost",value:function lost(){this.have&&(eventStream.raiseEvent("insightLostDef",this),eventStream.raiseEvent("insightLost".concat(this.id),this)),this.have=!1}},{key:"reset",value:function reset(){this.have=this.defaultValue}}]),Defence}(),w={insomnia:!0,insulation:!0,kola:!0,speed:!0,shield:!1,rebounding:!0,prismatic:!1,cloak:!0,fangbarrier:!0,curseward:!1,selfishness:!0},j=function generateDefs(t){var r={};for(var a in w)Object.hasOwnProperty.call(w,a)&&(r[a]=new A({id:a,value:w[a],player:t}));return r};function Stat_defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var E=function(){function Stat(t){var r=t.id,a=t.value;!function Stat_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Stat),this.id=r,this.value=a,this.defaultValue=a}return function Stat_createClass(t,r,a){return r&&Stat_defineProperties(t.prototype,r),a&&Stat_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Stat,[{key:"set",value:function set(t){this.value=t,eventStream.raiseEvent("insightSetStat",this),eventStream.raiseEvent("insightSet".concat(this.id),this)}},{key:"get",value:function get(){return this.value}},{key:"reset",value:function reset(){this.value=this.defaultValue}}]),Stat}(),N={hp:8e3,mana:8e3,hpMax:8e3,manaMax:8e3,hpPercent:1,manaPercent:1,soulmaster:!1,enlightened:!1,mentalCount:0,physicalCount:0},C=function generateStats(){var t={};for(var r in N)Object.hasOwnProperty.call(N,r)&&(t[r]=new E({id:r,value:N[r]}));return t},O={mentals:["claustrophobia","agoraphobia","lovers","dementia","epilepsy","hallucinations","confusion","stupidity","paranoia","vertigo","shyness","addiction","recklessness","masochism"],physicals:["asthma","paralysis","slickness","haemophilia","clumsiness","healthleech","sensitivity","darkshade"],bubonis:["vertigo","recklessness","confusion","masochism","paranoia","shyness","claustrophobia"],chimera:["confusion","hallucinations","agoraphobia","claustrophobia","dementia"],moon:["stupidity","masochism","hallucinations","hypersomnia","confusion","epilepsy","claustrophobia","agoraphobia"],whisperingmadness:["dementia","stupidity","confusion","hypersomnia","paranoia","hallucinations","impatience","addiction","agoraphobia","lovers","loneliness","recklessness","masochism"],justice:["paralysis","sensitivity","healthleech","haemophilia","weariness","asthma","clumsiness"]};function Timeline_ownKeys(t,r){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),a.push.apply(a,i)}return a}function Timeline_defineProperty(t,r,a){return r in t?Object.defineProperty(t,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[r]=a,t}function _toConsumableArray(t){return function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}(t)||function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||_unsupportedIterableToArray(t)||function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _createForOfIteratorHelper(t,r){var a="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=_unsupportedIterableToArray(t))||r&&t&&"number"==typeof t.length){a&&(t=a);var i=0,o=function F(){};return{s:o,n:function n(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function e(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,c=!0,d=!1;return{s:function s(){a=a.call(t)},n:function n(){var t=a.next();return c=t.done,t},e:function e(t){d=!0,l=t},f:function f(){try{c||null==a.return||a.return()}finally{if(d)throw l}}}}function _unsupportedIterableToArray(t,r){if(t){if("string"==typeof t)return _arrayLikeToArray(t,r);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?_arrayLikeToArray(t,r):void 0}}function _arrayLikeToArray(t,r){(null==r||r>t.length)&&(r=t.length);for(var a=0,i=new Array(r);a<r;a++)i[a]=t[a];return i}function Timeline_defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var P=function(){function Timeline(t){var r=t.affs;!function Timeline_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Timeline),this.affs=r,this.present=[{probability:1,affs:[]}],this.currentAffs=[],this.history=[],this.logging=!1}return function Timeline_createClass(t,r,a){return r&&Timeline_defineProperties(t.prototype,r),a&&Timeline_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Timeline,[{key:"reset",value:function reset(){for(var t in this.present=[{probability:1,affs:[]}],this.currentAffs=[],this.history=[],this.affs)Object.prototype.hasOwnProperty.call(this.affs,t)&&this.affs[t].reset()}},{key:"add",value:function add(t){this.logging&&console.log("add(".concat(t,")"));var r,a=_createForOfIteratorHelper(this.present);try{for(a.s();!(r=a.n()).done;){var i=r.value;i.affs.includes(t)||i.affs.push(t)}}catch(t){a.e(t)}finally{a.f()}this.affs[t].got(),this.history.push(t),this.updateAffs(),this.logging&&(console.log("add "+t),console.log(JSON.stringify(this.present)))}},{key:"remove",value:function remove(t){this.logging&&console.log("remove(".concat(t,")")),this.affs[t].lost(),this.present.forEach((function(r){var a=r.affs.indexOf(t);a>-1&&r.affs.splice(a,1)})),this.pruneDuplicates(),this.updateAffs()}},{key:"random",value:function random(t){var r=this;this.logging&&console.log("random(".concat(t,")"));var a=[];t.forEach((function(t){var i,o=_createForOfIteratorHelper(r.present);try{for(o.s();!(i=o.n()).done;){var l=i.value,c={probability:l.probability,affs:_toConsumableArray(l.affs)};c.affs.includes(t)||(r.affs[t].have=!0,c.affs.push(t)),a.push(c)}}catch(t){o.e(t)}finally{o.f()}})),this.present=a.length>0?a:[{probability:1,affs:[]}],this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log("add ".concat(t)),console.log(JSON.stringify(this.present)))}},{key:"smart",value:function smart(t){var r=this;this.logging&&console.log("smart(".concat(t,")"));var a=[];t.forEach((function(t){var i,o=_createForOfIteratorHelper(r.present);try{for(o.s();!(i=o.n()).done;){var l=i.value;l.affs.includes(t)||(r.affs[t].have=!0,a.push({probability:l.probability,affs:[].concat(_toConsumableArray(l.affs),[t])}))}}catch(t){o.e(t)}finally{o.f()}})),this.present.forEach((function(r){t.every((function(t){return r.affs.includes(t)}))&&a.push(r)})),a.length>0&&(this.present=a),this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log("smart ".concat(t)),console.log(JSON.stringify(this.present)))}},{key:"ordered",value:function ordered(t){this.logging&&console.log("ordered(".concat(t,")"));var r,a=[],i=_createForOfIteratorHelper(this.present);try{for(i.s();!(r=i.n()).done;){var o,l=r.value,c=_createForOfIteratorHelper(t);try{for(c.s();!(o=c.n()).done;){var d=o.value;if(!l.affs.includes(d)){this.affs[d].have=!0,a.push({probability:l.probability,affs:[].concat(_toConsumableArray(l.affs),[d])});break}}}catch(t){c.e(t)}finally{c.f()}}}catch(t){i.e(t)}finally{i.f()}this.present.forEach((function(r){t.every((function(t){return r.affs.includes(t)}))&&a.push(function Timeline_objectSpread(t){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?Timeline_ownKeys(Object(a),!0).forEach((function(r){Timeline_defineProperty(t,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Timeline_ownKeys(Object(a)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(a,r))}))}return t}({},r))})),a.length>0&&(this.present=a),this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log("ordered ".concat(t)),console.log(JSON.stringify(this.present)))}},{key:"cure",value:function cure(t){var a=this;if(this.logging&&console.log("cure(".concat(t,")")),r[t].bals_used.includes("salve")&&this.salveCure(t))console.log("salveCure() true return");else{var i=r[t].order,o=[],l=!1;this.present.forEach((function(t){var r=t.affs.filter((function(t){return i.includes(t)}));if(a.logging&&console.log("curableAffs",r),0!==r.length){l=!0;var c,d=_createForOfIteratorHelper(r);try{var m=function _loop(){var a=c.value,i=t.affs.filter((function(t){return t!==a}));i.length>0&&o.push({probability:t.probability/r.length,affs:i})};for(d.s();!(c=d.n()).done;)m()}catch(t){d.e(t)}finally{d.f()}}})),l&&(this.present=o.length>0?o:[{probability:1,affs:[]}]),this.pruneDuplicates(),this.updateAffs(),this.history.push(t),this.logging&&(console.log("cure ".concat(t)),console.log(JSON.stringify(this.present)))}}},{key:"salveCure",value:function salveCure(t){this.logging&&console.log("salveCure(".concat(t,")"));var a,i=_createForOfIteratorHelper(r[t].order);try{for(i.s();!(a=i.n()).done;){var o=a.value;if(1===this.affs[o].probability)return this.remove(o),!0}}catch(t){i.e(t)}finally{i.f()}return!1}},{key:"confirm",value:function confirm(t,r){this.logging&&console.log("confirm(".concat(t,", ").concat(r,")"));var a=this.affs[t].probability;if(!(r&&1===a||!r&&0===a))if(r&&0===a)this.add(t);else if(r||1!==a){var i=this.present.filter((function(a){return a.affs.includes(t)===r}));this.present=i,this.history.push("".concat(t,":").concat(r)),this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log("confirm ".concat(t," ").concat(r)),console.log(JSON.stringify(this.present)))}else this.remove(t)}},{key:"confirmMultiple",value:function confirmMultiple(t,r){this.logging&&console.log("confirmMultiple(".concat(t,", ").concat(r,")"));var a=this.present.filter((function(a){return t.every((function(t){return a.affs.includes(t)}))===r}));this.present=a,this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log("confirmMultiple ".concat(t," ").concat(r)),console.log(JSON.stringify(this.present)))}},{key:"convert",value:function convert(t,r){this.logging&&console.log("convert(".concat(t,", ").concat(r,")")),this.affs[t].have&&(this.affs[r].got(),this.present.forEach((function(a){var i=a.affs.indexOf(t);i>-1&&(a.affs[i]=r)})),this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log("convert ".concat(t," to ").concat(r)),console.log(JSON.stringify(this.present))))}},{key:"readAuraConfirm",value:function readAuraConfirm(t){var r=t.p,a=t.m;this.logging&&console.log("readAuraConfirm({ p: ".concat(r,", m: ").concat(a," })"));var i=this.present.filter((function(t){var i=t.affs.filter((function(t){return O.physicals.includes(t)})),o=t.affs.filter((function(t){return O.mentals.includes(t)}));return i.length<=r&&o.length<=a}));if(i.length<r+a)return console.error("Insight Error: No present branch for physical ".concat(r,", mental ").concat(a)),!1;this.present=i,this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log("readAuraConfirm p:".concat(r," m:").concat(a)),console.log(JSON.stringify(this.present)))}},{key:"calculateMentalCount",value:function calculateMentalCount(){var t,r=0,a=_createForOfIteratorHelper(this.present);try{for(a.s();!(t=a.n()).done;){var i,o=_createForOfIteratorHelper(t.value.affs);try{for(o.s();!(i=o.n()).done;){var l=i.value;O.mentals.includes(l)&&(r+=1)}}catch(t){o.e(t)}finally{o.f()}}}catch(t){a.e(t)}finally{a.f()}return r/this.present.length}},{key:"affProbability",value:function affProbability(t){var r=0;return this.present.forEach((function(a){a.affs.includes(t)&&(r+=a.probability)})),parseFloat(r.toFixed(2))}},{key:"pruneDuplicates",value:function pruneDuplicates(){if(1!==this.present.length){var t,r=new Map,a=_createForOfIteratorHelper(this.present);try{for(a.s();!(t=a.n()).done;){var i=t.value,o=_toConsumableArray(i.affs).sort(),l=o.join(",");if(r.has(l))r.get(l).probability+=i.probability;else r.set(l,{probability:i.probability,affs:o})}}catch(t){a.e(t)}finally{a.f()}var c=Array.from(r.values()).reduce((function(t,r){return t+r.probability}),0),d=Array.from(r.values()).map((function(t){return{probability:t.probability/c,affs:t.affs}}));this.present=d}else this.present[0].probability=1}},{key:"updateAffs",value:function updateAffs(){var t=this;this.logging&&console.log("updateAffs()");var r=new Set(this.present.flatMap((function(t){return t.affs}))),a=this.currentAffs.filter((function(t){return!r.has(t)}));a.length>0&&a.forEach((function(r){return t.affs[r].lost()})),this.currentAffs=_toConsumableArray(r),this.currentAffs.forEach((function(r){t.affs[r].probability=t.affProbability(r)})),eventStream.raiseEvent("insightUpdateAffs")}}]),Timeline}();function Limb_defineProperties(t,r){for(var a=0;a<r.length;a++){var i=r[a];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var q=function(){function Limb(t){var r=t.id,a=t.player;!function Limb_classCallCheck(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this,Limb),this.id=r,this.player=a,this.percent=0,this.timer=h("insightTimer".concat(r),180),this.timer.addCallback(this.reset.bind(this))}return function Limb_createClass(t,r,a){return r&&Limb_defineProperties(t.prototype,r),a&&Limb_defineProperties(t,a),Object.defineProperty(t,"prototype",{writable:!1}),t}(Limb,[{key:"hit",value:function hit(t){this.percent+=t,this.percent>=100?this.break():this.timer.start(),eventStream.raiseEvent("insightLimbHit",this),eventStream.raiseEvent("insightLimbHit".concat(this.id),this)}},{key:"break",value:function _break(){this.percent=0,eventStream.raiseEvent("insightLimbBreak",this),eventStream.raiseEvent("insightLimbBreak".concat(this.id),this),this.timer.stop()}},{key:"reset",value:function reset(){this.percent=0,this.timer.stop(),eventStream.raiseEvent("insightLimbReset",this),eventStream.raiseEvent("insightLimbReset".concat(this.id),this)}},{key:"set",value:function set(t){this.percent=t,this.percent>=100?this.break():this.timer.start()}}]),Limb}(),T=["head","torso","leftleg","leftarm","rightleg","rightarm"],x=function generateLimbs(t){var r={};return T.forEach((function(a){return r[a]=new q({id:a,player:t})})),r},L=function playerCheck(t){if(!parseInt(t)){if(void 0===t)return insight.target;var r=t.toLowerCase();return void 0===insight.players[r]&&(insight.players[r]=function createPlayer(t){var r={id:t.toLowerCase(),affs:v(t),defs:j(t),stats:C(),bals:S(),limbs:x(t)};return r.timeline=new P(r),r}(r)),insight.players[r]}console.error("Insight playerCheck() id must be a string",t)},D=function hasAff(t){var r=t.id,a=t.player,i=t.probability,o=void 0===i?0:i;o>1&&(o/=100);var l=L(a).affs[r];return!!(l.have&&l.probability>=o)&&l.probability},M=function hasAffs(t){var r=t.ids,a=t.probability,i=void 0===a?0:a,o=t.player;i>1&&(i/=100);var l=L(o),c=!1;return Array.isArray(r)&&(c=r.every((function(t){return l.timeline.currentAffs.indexOf(t)>-1&&l.affs[t].probability>=i}))),c},z=function cureBlockersConfirm(t,a){var i=r[t].blocks;void 0!==i&&i.forEach((function(t){Array.isArray(t)?M({ids:t})&&t.forEach((function(t){return person.timeline.confirm(t,!1)})):D({id:t})&&a.timeline.confirm(t,!1)}))},H=(__webpack_require__(95),__webpack_require__(389),__webpack_require__(473),{version:"0.2.5",reset:function reset(t){var r=t&&void 0!==insight.players[t]?insight.players[t]:insight.target;for(var a in r.timeline.reset(),r.stats)r.stats[a].reset();for(var i in r.defs)r.defs[i].reset();for(var o in r.bals)r.bals[o].reset();for(var l in r.limbs)r.limbs[l].reset();insight.reporting.notices&&d.notice("Reset")},setTarget:function setTarget(t){var r;insight.target=null!==(r=L(t))&&void 0!==r?r:insight.target},addAff:function addAff(t){var r=t.id,a=t.player;L(a).timeline.add(r)},getAff:function getAff(t){var r=t.id,a=t.player;if(void 0!==r)return L(a).affs[r]},removeAff:function removeAff(t){var r=t.id,a=t.player,i=L(a);i.affs[r].have&&i.timeline.remove(r)},usedCure:function usedCure(t){var a=t.id,i=t.player;if(void 0!==a){var o=L(i),l=r[a].bals_req.find((function(t){return o.bals[t]&&!o.bals[t].have}));l?console.error("insight usedCure() off balance",a,o.bals[l]):(z(a,o),a.includes("restoration")?insight.restorationCure={id:a,player:o.id}:o.timeline.cure(a),r[a].bals_used.forEach((function(t){"free"!==t&&o.bals[t].lost()})),eventStream.raiseEvent("insightUsedCure",a),eventStream.raiseEvent("insightUsedCure".concat(a)))}},confirmAff:function confirmAff(t){var r=t.id,a=t.state,i=void 0===a||a,o=t.player;L(o).timeline.confirm(r,i)},confirmAffs:function confirmAffs(t){var r=t.ids,a=t.state,i=t.player;void 0!==r&&Array.isArray(r)&&L(i).timeline.confirmMultiple(r,a)},randomAffs:function randomAffs(t){var r=t.ids,a=t.player;void 0!==r&&L(a).timeline.random(r)},readAuraConfirm:function readAuraConfirm(t){var r=t.p,a=t.m,i=t.player;L(i).timeline.readAuraConfirm({p:r,m:a})},smartAffs:function smartAffs(t){var r=t.ids,a=t.player,i=t.ordered,o=void 0!==i&&i;if(void 0!==r){var l=L(a);o?l.timeline.ordered(r):l.timeline.smart(r)}},convertAff:function convertAff(t){var r=t.id,a=t.to,i=t.player;void 0!==r&&void 0!==a&&L(i).timeline.convert(r,a)},addDef:function addDef(t){var r=t.id,a=t.player;L(a).defs[r].got()},removeDef:function removeDef(t){var r=t.id,a=t.player;L(a).defs[r].lost()},hasAff:D,hasAffs:M,hasAnAff:function hasAnAff(t){var r=t.ids,a=t.player,i=t.probability,o=void 0===i?0:i;o>1&&(o/=100);var l=L(a),c=!1;return Array.isArray(r)&&(c=l.timeline.currentAffs.some((function(t){return r.indexOf(t)>-1&&l.affs[t].probability>=o}))),c},hasDef:function hasDef(t){var r=t.id,a=t.player;return L(a).defs[r].have},hasBal:function hasBal(t){var r=t.id,a=t.player;return L(a).bals[r].have},lostBal:function lostBal(t){var r=t.id,a=t.player;L(a).bals[r].lost()},balRemaining:function balRemaining(t){var r=t.id,a=t.player;return L(a).bals[r].timer.remaining()},setStat:function setStat(t){var r=t.id,a=t.value,i=t.player,o=L(i);o.stats[r].get()!==a&&o.stats[r].set(a)},getStat:function getStat(t){var r=t.id,a=t.player;return L(a).stats[r].get()},adjustStat:function adjustStat(t){var r,a,i=t.id,o=t.value,l=t.player,c=L(l);o<=1&&o>-1?(r=c.stats["".concat(i,"Percent")].get()+o,a=c.stats["".concat(i,"Max")].get()*r):r=(a=c.stats[i].get()+o)/c.stats["".concat(i,"Max")].get(),r>1||r<0||(c.stats["".concat(i,"Percent")].set(r),c.stats[i].set(a))},getLimb:function getLimb(t){var r=t.id,a=t.player;return L(a).limbs[r].percent},hitLimb:function hitLimb(t){var r=t.id,a=t.player,i=t.value;L(a).limbs[r].hit(i)},resetLimb:function resetLimb(t){var r=t.id,a=t.player;return L(a).limbs[r].reset()},breakLimb:function breakLimb(t){var r=t.id,a=t.player;return L(a).limbs[r].break()},currentAffs:function currentAffs(){return insight.target.timeline.currentAffs},display:d,nextLine:function nextLine(t){for(var r=!1,a=nexusclient.current_line.index+1;a<nexusclient.current_block.length;a++){var i=nexusclient.current_block[a];if(!i.html_text&&!i.is_prompt&&void 0!==i.line){var o=i.parsed_line.text();return t instanceof RegExp?r=t.test(o):"string"==typeof t&&(r=o.includes(t)),r}}},checkBlock:function checkBlock(t){var r=nexusclient.current_block,a=!1;return t instanceof RegExp?a=!!r.find((function(r){return void 0!==r.line&&t.test(r.line)})):"string"==typeof t&&(a=!!r.find((function(r){return void 0!==r.line&&r.line.includes(t)}))),a},venomToAff:{xentio:"clumsiness",eurypteria:"recklessness",kalmia:"asthma",digitalis:"shyness",darkshade:"darkshade",curare:"paralysis",epteth:"",prefarar:"sensitivity",monkshood:"disloyalty",euphorbia:"nausea",oculus:"unblind",vernalius:"weariness",epseth:"",larkspur:"dizziness",slike:"anorexia",delphinium:"sleep",notechis:"haemophilia",vardrax:"addiction",loki:"loki",aconite:"stupidity",selarnia:"",gecko:"slickness",scytherus:"scytherus",nechamadra:"shivering"},target:{},players:{},state:{lastQueue:!1,queues:{},serverAliases:{}},reporting:{notices:!1,shortNames:!1,colors:!0},occultist:O,debug:function debug(){console.log(target.id)},currentAffDisplay:function currentAffDisplay(){var t=[];return insight.target.timeline.currentAffs.forEach((function(r){return t.push("".concat(r,": ").concat(insight.target.affs[r].probability))})),t}});globalThis.insight=H,globalThis.insight.setTarget("pamxen"),globalThis.insight.reset(),"undefined"!=typeof nexusclient&&(!function insightEvents(){eventStream.registerEvent("insightLostAff",(function noticeLostAff(t){insight.reporting.notices&&insight.target.id===t.player&&d.notice(d.affUpdate(t.id,!1))})),eventStream.registerEvent("insightGotAff",(function noticeGotAff(t){insight.reporting.notices&&insight.target.id===t.player&&d.notice(d.affUpdate(t.id,!0))})),eventStream.registerEvent("insightLostDef",(function noticeLostDef(t){insight.reporting.notices&&insight.target.id===t.player&&d.notice(d.defUpdate(t.id,!1))})),eventStream.registerEvent("insightGotDef",(function noticeGotDef(t){insight.reporting.notices&&insight.target.id===t.player&&d.notice(d.defUpdate(t.id,!0))})),eventStream.registerEvent("IRE.Target.Set",(function insightTarget(t){"number"!=typeof t&&insight.setTarget(t)})),eventStream.registerEvent("PromptEvent",(function insightDisplay(){insight.currentAffs().length>0&&nexusclient.add_html_line(d.currentAffDisplayHTML())})),eventStream.registerEvent("nexSkillMatch",(function insightSkills(t){"secondPerson"!==t.match&&eventStream.raiseEvent("insight.".concat(t.skill,".").concat(t.id),t)})),eventStream.registerEvent("insightLimbBreak",(function limbBreaks(t){switch(t.id){case"leftleg":case"rightleg":case"rightarm":case"leftarm":case"head":insight.hasAff({id:"damaged".concat(t.id),player:t.player})?insight.convertAff({id:"damaged".concat(t.id),to:"mangled".concat(t.id),player:t.player}):insight.hasAff({id:"mangled".concat(t.id),player:t.player})||((t.id.includes("leg")||t.id.includes("arm"))&&insight.removeAff({id:"broken".concat(t.id),player:t.player}),insight.addAff({id:"damaged".concat(t.id),player:t.player}));break;case"torso":insight.hasAff({id:"mildtrauma",player:t.player})?insight.convertAff({id:"mildtrauma",to:"serioustrauma",player:t.player}):insight.addAff({id:"mildtrauma",player:t.player});default:console.error("insight event limbBreak no case found",t)}}));var t=function limbCures(t){var r={brokenleftleg:"mangledleftleg",brokenleftarm:"mangledleftarm",brokenrightleg:"mangledrightleg",brokenrightarm:"mangledrightarm"};console.log(t);var a={mangledleftleg:"damagedleftleg",mangledleftarm:"damagedleftarm",mangledrightleg:"damagedrightleg",mangledrightarm:"damagedrightarm",mangledhead:"damagedhead",serioustrauma:"mildtrauma",damagedleftleg:"brokenleftleg",damagedleftarm:"brokenleftarm",damagedrightleg:"brokenrightleg",damagedrightarm:"brokenrightarm"}[t.id];void 0!==r[a]&&insight.hasAff({id:r[a],player:t.player})||insight.addAff({id:a,player:t.player})};eventStream.registerEvent("insightLostAffmangledleftleg",t),eventStream.registerEvent("insightLostAffmangledleftarm",t),eventStream.registerEvent("insightLostAffmangledrightleg",t),eventStream.registerEvent("insightLostAffmangledrightarm",t),eventStream.registerEvent("insightLostAffmangledhead",t),eventStream.registerEvent("insightLostAffserioustrauma",t),eventStream.registerEvent("insightLostAffdamagedleftleg",t),eventStream.registerEvent("insightLostAffdamagedleftarm",t),eventStream.registerEvent("insightLostAffdamagedrightleg",t),eventStream.registerEvent("insightLostAffdamagedrightarm",t)}(),H.reporting.notices=!0,"Khaseem"!==nexusclient.datahandler().GMCP.Character.name&&fetch("https://unpkg.com/nexsight/insight3.nxs",{cache:"no-store"}).then((function(t){return t.json()})).then((function(t){nexusclient.packages().get("insight3").apply(t,nexusclient.reflexes())})))}()}();
|
|
1
|
+
(()=>{var e={95:()=>{eventStream.registerEvent("insight.domination.humbugCommand",(e=>{insight.addAff({id:"addiction",player:e.target})}));eventStream.registerEvent("insight.domination.houndCommand",(e=>{insight.addAff({id:"weariness",player:e.target})}));eventStream.registerEvent("insight.domination.stormCommand",(e=>{insight.addAff({id:"vertigo",player:e.target})}));eventStream.registerEvent("insight.domination.bloodleechCommand",(e=>{insight.addAff({id:"haemophilia",player:e.target})}));eventStream.registerEvent("insight.domination.sycophantCommand",(e=>{insight.addAff({id:"weakenedmind",player:e.target})}));eventStream.registerEvent("insight.domination.slimeCommand",(e=>{insight.addAff({id:"slimeobscure",player:e.target});insight.nextLine(/^Horror overcomes \w+'s face as \w+ body stiffens into paralysis\.$/)&&insight.confirmAff({id:"asthma",player:e.target,state:!0})}));eventStream.registerEvent("insight.domination.chimeraCommandDeaf",(e=>{insight.confirmAff({id:"undeaf",state:!1,player:e.target})}));eventStream.registerEvent("insight.domination.chimeraCommand",(e=>{insight.confirmAff({id:"undeaf",state:!0,player:e.target}),insight.nextLine(insight.target.id)||insight.addAff({id:"hallucinations",player:e.target})}));eventStream.registerEvent("insight.domination.bubonisCommand",(e=>{insight.hasDef({id:"fangbarrier",player:e.target})?insight.nextLine("The protective coating covering the skin of")?(insight.confirmAff({id:"asthma",player:e.target,state:!0}),insight.addAff({id:"slickness",player:e.target})):insight.addAff({id:"asthma",player:e.target,state:!0}):insight.hasAff({id:"asthma",player:e.target,probability:.49})?insight.addAff({id:"slickness",player:e.target}):insight.addAff({id:"asthma",player:e.target,state:!0})}));eventStream.registerEvent("insight.domination.wormCommand",(e=>{insight.addAff({id:"palpatarfeed",player:e.target})}));eventStream.registerEvent("insight.domination.wormTick",(e=>{insight.addAff({id:"healthleech",player:e.target})}));const croneCommand=e=>{insight.addAff({id:`broken${affs[0]}`,player:e.target})};eventStream.registerEvent("insight.domination.croneCommand",croneCommand),eventStream.registerEvent("insight.domination.cronePrimebond",croneCommand);eventStream.registerEvent("insight.domination.abominationCommandFail",(e=>{insight.removeAff({id:"cleanseaura",player:e.target})}));const gremlinCommand=e=>{insight.removeDef({id:"shield",player:e.target})};eventStream.registerEvent("insight.domination.gremlinCommand",gremlinCommand),eventStream.registerEvent("insight.domination.gremlinCommandFail",gremlinCommand);eventStream.registerEvent("insight.domination.firelordCommand",(e=>{insight.removeDef({id:"shield",player:e.target})}));eventStream.registerEvent("insight.domination.firelordCommandFail",(e=>{}));eventStream.registerEvent("insight.domination.wormPrimebond",(e=>{insight.addAff({id:"nausea",player:e.target})}));eventStream.registerEvent("insight.domination.gremlinPrimebond",(e=>{insight.addAff({id:"dizziness",player:e.target})}));eventStream.registerEvent("insight.domination.gremlinPrimebond2",(e=>{insight.confirmAff({id:"dizziness",state:!0,player:e.target})}));eventStream.registerEvent("insight.domination.humbugPrimebond",(e=>{insight.hasAff({id:"addiction",player:e.target,probability:.49})?(insight.adjustStat({id:"hp",player:e.target,value:-.1}),insight.adjustStat({id:"mana",player:e.target,value:-.1})):(insight.adjustStat({id:"hp",player:e.target,value:-.05}),insight.adjustStat({id:"mana",player:e.target,value:-.05}))}));eventStream.registerEvent("insight.domination.bubonisPrimebond",(e=>{insight.smartAffs({ids:insight.occultist.bubonis,player:e.target})}));eventStream.registerEvent("insight.domination.chimeraPrimebondGas",(e=>{insight.removeDef({id:insomnia,player:e.target})}));eventStream.registerEvent("insight.domination.chimeraPrimebondRam",(e=>{insight.addAff({id:"prone",player:e.target})}));eventStream.registerEvent("insight.domination.chimeraPrimebondRoar",(e=>{insight.addAff({id:"undeaf",player:e.target}),insight.addAff({id:"prone",player:e.target})}));eventStream.registerEvent("insight.domination.chimeraPrimebondUndeaf",(e=>{insight.addAff({id:"undeaf",player:e.target})}))},389:()=>{eventStream.registerEvent("insight.occultism.instill",(e=>{insight.adjustStat({id:"hp",player:e.target,value:-.03}),insight.adjustStat({id:"mana",player:e.target,value:-.03}),"sensitivity"===e.affs[0]?insight.hasAff({id:"undeaf",player:e.target})?insight.addAff({id:"sensitivity",player:e.target}):insight.addAff({id:"undeaf",player:e.target}):insight.addAff({id:e.affs[0],player:e.target})}));eventStream.registerEvent("insight.occultism.enervate",(e=>{insight.adjustStat({id:"mana",player:e.target,value:-.2})}));eventStream.registerEvent("insight.occultism.ague",(e=>{insight.hasDef({id:"insulation",player:e.target})?insight.removeDef({id:"insulation",player:e.target}):insight.smartAffs({ids:["shivering","frozen"],player:e.target,ordered:!0})}));eventStream.registerEvent("insight.domination.attend",(e=>{insight.addAff({id:"undeaf",player:e.target}),insight.addAff({id:"unblind",player:e.target})}));eventStream.registerEvent("insight.occultism.shrivelTargeted",(e=>{insight.addAff({id:e.affs[0],player:e.target})}));eventStream.registerEvent("insight.occultism.shrivelArms",(e=>{insight.smartAffs({ids:["brokenrightarm","brokenleftarm"],player:e.target})}));eventStream.registerEvent("insight.occultism.shrivelLegs",(e=>{insight.smartAffs({ids:["brokenrightarm","brokenleftarm"],player:e.target})}));eventStream.registerEvent("insight.occultism.shrivelRehit",(e=>{const t=e.groups.limb.replace(" ","").toLowerCase();"arm"===t?(insight.confirmAff({id:"brokenleftarm",player:e.target,state:!0}),insight.confirmAff({id:"brokenrightarm",player:e.target,state:!0})):"leg"===t?(insight.confirmAff({id:"brokenleftleg",player:e.target,state:!0}),insight.confirmAff({id:"brokenrightleg",player:e.target,state:!0})):insight.confirmAff({id:`broken${t}`,player:e.target,state:!0})}));eventStream.registerEvent("insight.occultism.unnamableSpeak",(e=>{const t=GMCP.RoomPlayers.map((e=>e.name));nexAction.triggers.add({id:"insight.occultism.unnamableSpeak",tags:["insight"],regex:/^(\w+) pales as the blood drains from \w+ face\.$/,action:e=>{insight.addAff({id:"undeaf",player:e[1]}),t=t.filter((t=>t!==e[1]))},onRemove:()=>{t.forEach((e=>insight.removeAff({id:"undeaf",player:e})))}}),eventStream.registerEvent("PromptEvent",(()=>{nexAction.triggers.remove("insight.occultism.unnamableSpeak")}),!0)}));eventStream.registerEvent("insight.occultism.unnamableVision",(e=>{const t=GMCP.RoomPlayers.map((e=>e.name));nexAction.triggers.add({id:"insight.occultism.unnamableVision",tags:["insight"],regex:/^(\w+) pales as the blood drains from \w+ face\.$/,action:e=>{insight.addAff({id:"unblind",player:e[1]}),t=t.filter((t=>t!==e[1]))},onRemove:()=>{t.forEach((e=>insight.removeAff({id:"unblind",player:e})))}}),eventStream.registerEvent("PromptEvent",(()=>{nexAction.triggers.remove("insight.occultism.unnamableVision")}),!0)}));eventStream.registerEvent("insight.occultism.devolve",(e=>{insight.addAff({id:"shyness",player:e.target}),insight.addAff({id:"disloyalty",player:e.target})}));eventStream.registerEvent("insight.occultism.whisperingmadness",(e=>{insight.addAff({id:"whisperingmadness",player:e.target})}));eventStream.registerEvent("insight.occultism.whisperingmadnessMiss",(e=>{insight.occultist.whisperingmadness.forEach((t=>insight.removeAff({id:t,player:e.target})))}));eventStream.registerEvent("insight.occultism.cleanseaura",(e=>{nexusclient.current_block.find((e=>e.line.includes("A look of sudden concern")))?insight.addAff({id:"cleanseaura",player:e.target}):insight.removeAff({id:"cleanseaura",player:e.target})}))},473:()=>{eventStream.registerEvent("insight.tarot.magician",(e=>{insight.adjustStat({id:"mana",player:e.target,value:.25})}));eventStream.registerEvent("insight.tarot.priestess",(e=>{insight.adjustStat({id:"hp",player:e.target,value:.25})}));eventStream.registerEvent("insight.tarot.lovers",(e=>{insight.addAff({id:"lovers",player:e.target})}));eventStream.registerEvent("insight.tarot.aeon",(e=>{insight.removeDef({id:"speed",player:e.target}),insight.addAff({id:"aeon",player:e.target})}));eventStream.registerEvent("insight.tarot.aeonStrip",(e=>{insight.removeDef({id:"speed",player:e.target})}));eventStream.registerEvent("insight.tarot.justice",(e=>{insight.addAff({id:"justice",player:e.target})}));eventStream.registerEvent("insight.tarot.deathRub",(e=>{insight.hasDef({id:"insulation",player:e.target})?insight.removeDef({id:"insulation",player:e.target}):insight.addAff({id:"shivering",player:e.target})}));eventStream.registerEvent("insight.tarot.ruinateLovers",(e=>{insight.addAff({id:"manaleech",player:e.target})}));eventStream.registerEvent("insight.tarot.ruinateJustice",(e=>{insight.nextLine("violently spasms")||["paralysis","asthma","healthleech","haemophilia","sensitivity","clumsiness","weariness"].forEach((e=>insight.confirmAff({id:e,state:!1})))}));eventStream.registerEvent("insight.tarot.moon",(e=>{console.log(JSON.stringify(insight.state.queues[insight.state.lastQueue]));const t=insight.state.queues[insight.state.lastQueue].match(/FLING MOON AT \w+ (\w+)/);t?insight.addAff({id:t[1].toLowerCase(),player:e.target}):insight.smartAffs({ids:["stupidity","masochism","hallucinations","hypersomnia","confusion","epilepsy"],player:e.target})}))}},t={};function __webpack_require__(i){var s=t[i];if(void 0!==s)return s.exports;var a=t[i]={exports:{}};return e[i](a,a.exports,__webpack_require__),a.exports}(()=>{"use strict";const e=["itching","paralysis","fear","brokenrightarm","brokenleftarm","brokenrightleg","brokenleftleg","lapsingconsciousness","aeon","lovers","confusion","epilepsy","pacified","blackout","dazed","justice","slashedthroat","hellsight","peace","dazzled","shyness","dizziness","slickness","asthma","nausea","selarnia","weariness","scytherus","haemophilia","clumsiness","hallucinations","healthleech","dementia","recklessness","anorexia","masochism","impatience","stupidity","generosity","addiction","deadening","manaleech","stuttering","paranoia","agoraphobia","loneliness","claustrophobia","vertigo","hypersomnia","shivering","frozen","burning","sensitivity","hypochondria","lethargy","disloyalty","darkshade","voyria","dissonance","phlogisticated","silver","spiritburn","tenderskin","guilt","skullfractures","wristfractures","crackedribs","torntendons","indifference","retribution","shadowmadness","parasite","depression","timeloop","crushedthroat","tension","unweavingspirit","grievouswounds","pyramides","flushings","rebbies","mycalium","sandfever"],t={ferrum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ferrum",order:["darkshade","haemophilia","lethargy","addiction","scytherus","nausea","flushings","unweavingbody"],prio:0},magnesium:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat magnesium",order:["paralysis","slickness","pyramides"],prio:0},aurum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat aurum",order:["clumsiness","healthleech","sensitivity","weariness","asthma","hypochondria","rebbies","parasite"],prio:0},calamine:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat calamine",order:["undeaf","deafness"],delay:2.5,prio:0},argentum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat argentum",order:["masochism","loneliness","vertigo","recklessness","agoraphobia","guilt","whisperingmadness","spiritburn","tenderskin"],prio:0},cuprum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat cuprum",order:["pacified","peace","lovers","justice","generosity","indifference","retribution","pyre","timeloop"],prio:0},antimony:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat antimony",order:["temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine"],prio:0},arsenic:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat arsenic",order:["unblind"],prio:0},stannum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat stannum",order:["claustrophobia","paranoia","confusion","hypersomnia","hallucinations","dementia"],prio:0},plumbum:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["horror","stupidity","epilepsy","dizziness","shyness","impatience","dissonance","depression","sandfever","mycalium","shadowmadness","unweavingmind"],command:"eat plumbum",prio:0},calcite:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["pressure"],command:"eat calcite",prio:0},ginseng:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ginseng",order:["darkshade","haemophilia","lethargy","addiction","scytherus","nausea","flushings","unweavingbody"],prio:0},bloodroot:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bloodroot",order:["paralysis","slickness","pyramides"],prio:0},kelp:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat kelp",order:["clumsiness","healthleech","sensitivity","weariness","asthma","hypochondria","rebbies","parasite"],prio:0},hawthorn:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat hawthorn",order:["undeaf","deafness"],delay:2.5,prio:0},lobelia:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat lobelia",order:["masochism","loneliness","vertigo","recklessness","agoraphobia","guilt","whisperingmadness","spiritburn","tenderskin"],prio:0},bellwort:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bellwort",order:["pacified","peace","lovers","justice","generosity","indifference","retribution","pyre","timeloop"],prio:0},ginger:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ginger",order:["temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine"],prio:0},bayberry:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat bayberry",order:["unblind"],prio:0},ash:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat ash",order:["claustrophobia","paranoia","confusion","hypersomnia","hallucinations","dementia"],prio:0},goldenseal:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],command:"eat goldenseal",order:["horror","stupidity","epilepsy","dizziness","shyness","impatience","dissonance","depression","sandfever","mycalium","shadowmadness","unweavingmind"],prio:0},pear:{bals_used:["herb"],bals_req:["herb"],blocks:["anorexia","sleeping"],order:["pressure"],command:"eat pear",prio:0},smoke:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke cinnabar",order:["aeon","disloyalty","hellsight","manaleech","slickness","deadening","tension","unweavingspirit"],prio:0},cinnabar:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke cinnabar",order:["aeon","deadening","tension","unweavingspirit"],prio:0},malachite:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke malachite",prio:0},realgar:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke realgar",order:["disloyalty","hellsight","manaleech","slickness"],prio:0},elm:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke elm",order:["aeon","deadening","tension","unweavingspirit"],prio:0},skullcap:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke skullcap",prio:0},valerian:{bals_used:["smoke"],bals_req:["smoke"],blocks:["asthma","sleeping"],command:"smoke valerian",order:["disloyalty","hellsight","manaleech","slickness"],prio:0},caloric:{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply caloric",order:["frozen","shivering"],prio:0},"epidermal to body":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to body",order:["anorexia"],prio:0},"epidermal to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to head",order:["blindness","scalded","stuttering","deafness"],prio:0},"epidermal to ears":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply epidermal to ears",order:["deafness"],prio:0},"mending to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to head",order:["crushedthroat","dazzled"],prio:0},"mending to arms":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to arms",order:["brokenleftarm","brokenrightarm"],prio:0},"mending to legs":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to legs",order:["brokenleftleg","brokenrightleg"],prio:0},"mending to body":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to body",order:["burning"],prio:0},"restoration to head":{bals_used:["salve","restoration"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to head",order:["mangledhead","damagedhead","calcifiedskull","concussion","tonguetied"],delay:4,prio:0},"restoration to body":{bals_used:["salve","restoration"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to body",order:["hypothermia","heartseed","serioustrauma","mildtrauma","calcifiedtorso"],delay:4,prio:0},"restoration to arms":{bals_used:["salve","restoration"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to arms",order:["mangledleftarm","mangledrightarm","damagedleftarm","damagedrightarm"],delay:4,prio:0},"restoration to legs":{bals_used:["salve","restoration"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to legs",order:["mangledleftleg","mangledrightleg","damagedleftleg","damagedrightleg"],delay:4,prio:0},insomnia:{bals_req:["free"],bals_used:["free"],blocks:["hypersomnia","sleeping"],command:"insomnia",order:["insomnia"],prio:0},focus:{bals_req:["focus"],bals_used:["focus"],blocks:["impatience","sleeping"],command:"focus",order:["stupidity","epilepsy","dizziness","shyness","claustrophobia","paranoia","confusion","hallucinations","dementia","pacified","peace","lovers","generosity","masochism","loneliness","vertigo","recklessness","agoraphobia","anorexia","stuttering"],prio:0},"health to head":{bals_req:["sip"],bals_used:["sip"],command:"apply health to head",order:["skullfractures"],prio:0},"health to torso":{bals_req:["sip"],bals_used:["sip"],command:"apply health to torso",order:["crackedribs","grievouswounds"],prio:0},"health to arms":{bals_req:["sip"],bals_used:["sip"],command:"apply health to arms",order:["wristfractures"],prio:0},"health to legs":{bals_req:["sip"],bals_used:["sip"],command:"apply health to legs",order:["torntendons","latched","kkractlebrand"],prio:0},concentrate:{blocks:["sleeping","confusion"],command:"concentrate",order:["disrupted"],prio:0},immunity:{bals_req:["immunity"],bals_used:["immunity"],blocks:["sleeping","anorexia"],command:"sip immunity",order:["voyria"],prio:0},stand:{bals_req:["balance","equilibrium"],bals_used:[],blocks:["death","sleeping","paralysis","brokenrightleg","brokenleftleg","damagedleftleg","damagedrightleg","mangledrightleg","mangledleftleg","entangled","transfixation","impaled","webbed","bound"],command:"stand",order:["prone"],prio:0},tree:{bals_used:["tree"],bals_req:["tree"],blocks:["death","sleeping","paralysis",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],command:"touch tree",order:e,prio:0},health:{bals_req:["sip"],bals_used:["sip"],blocks:["sleeping","anorexia"],command:"sip health",prio:0},mana:{bals_req:["sip"],bals_used:["sip"],blocks:["sleeping","anorexia"],command:"sip mana",prio:0},potash:{bals_req:["moss"],bals_used:["moss"],blocks:["sleeping","anorexia"],command:"eat potash",prio:0},moss:{bals_req:["moss"],bals_used:["moss"],blocks:["sleeping","anorexia"],command:"eat moss",prio:0},fitness:{bals_req:["equilibrium","balance","fitness"],bals_used:["balance","fitness"],blocks:["weariness","sleeping"],skills:["Monk","Runewarden"],command:"fitness",order:["asthma"],prio:0},bloodboil:{bals_req:["equilibrium","balance","bloodboil"],bals_used:["equilibrium","bloodboil"],blocks:["death","haemophilia","sleeping",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],skills:["Magi"],command:"cast bloodboil",order:e,prio:0},restore:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"restore",order:["brokenleftarm","brokenrightarm","brokenleftleg","brokenrightleg","skullfractures","torntendons","wristfractures","crackedribs"],prio:0},dragonflex:{bals_req:["balance"],bals_used:["balance"],command:"dragonflex",skills:["Dragon"],order:["webbed","entangled"],prio:0},dragonheal:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"dragonheal",skills:["Dragon"],blocks:["sleeping",["recklessness","weariness"]],order:e,prio:0},might:{bals_req:["balance","equilibrium"],bals_used:["equilibrium"],command:"dragonheal",skills:["Dragon"],blocks:["sleeping",["recklessness","weariness"]],order:["weariness","paralysis",...e],prio:0},dwinnu:{bals_req:["voice"],bals_used:["voice"],command:"chant dwinnu",skills:["Bard"],order:["webbed","entangled"],prio:0},rage:{bals_req:["rage"],bals_used:["rage"],command:"rage",skills:["Runewarden"],order:["pacified","peace","lovers","generosity"],prio:95},salt:{bals_req:["equilibrium","salt"],bals_used:["salt","equilibrium"],blocks:["stupidity","sleeping"],skills:["Alchemist"],command:"educe salt",order:e,prio:0},siphon:{bals_req:["angel"],bals_used:["angel"],blocks:["sleeping"],skills:["Apostate","Priest"],command:"educe salt",order:e,prio:0},shrugging:{bals_req:["equilibrium","balance","shrugging"],bals_used:["shrugging"],blocks:["weariness","sleeping"],skills:["Serpent"],command:"shrugging",order:e,prio:0},slough:{bals_req:["equilibrium","balance","slough"],bals_used:["slough","balance"],blocks:["weariness","sleeping"],skills:["Fire Elemental Lord"],command:"slough impurities",order:e,prio:0},fool:{bals_req:["equilibrium","balance","fool"],bals_used:["fool","balance"],blocks:["death","prone","paralysis","sleeping",["brokenleftarm","brokenrightarm"],["brokenleftarm","damagedrightarm"],["brokenleftarm","mangledrightarm"],["damagedleftarm","brokenrightarm"],["damagedleftarm","damagedrightarm"],["damagedleftarm","mangledrightarm"],["mangledleftarm","brokenrightarm"],["mangledleftarm","damagedrightarm"],["mangledleftarm","mangledrightarm"],"entangled","transfixation","impaled","webbed","bound"],skills:["Occultist"],command:"fling fool at me",order:e,prio:0},alleviate:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:["paralysis","sleeping"],skills:["Blademaster"],command:"alleviate",order:e,prio:0},accelerate:{bals_req:["equilibrium","balance","accelerate"],bals_used:["accelerate","balance"],blocks:["recklessness"],skills:["Depthswalker"],command:"accelerate",order:e,prio:0},sun:{bals_req:["sun"],bals_used:["sun"],blocks:[],skills:["Runewarden","Occultist"],command:"sun",order:e,prio:0},generic:{bals_req:["free"],bals_used:["free"],blocks:[],skills:[],command:"generic",order:e,prio:0},ruinateJustice:{bals_req:["free"],bals_used:["free"],blocks:[],command:"ruinate justice",order:["paralysis","asthma","clumsiness","weariness","haemophilia","sensitivity","healthleech"],prio:0}},capitalize=e=>e.charAt(0).toUpperCase()+e.slice(1),generateChunk=(e,t,i)=>{let s=document.createElement("span");return s.style.color=t,s.style.backgroundColor=i,s.textContent=e,s},i={antimony:{fg:"olive",bg:""},argentum:{fg:"royalblue",bg:""},arsenic:{fg:"",bg:""},aurum:{fg:"ForestGreen",bg:""},azurite:{fg:"",bg:""},calamine:{fg:"",bg:""},calcite:{fg:"slategray",bg:""},cinnabar:{fg:"greenyellow",bg:""},cuprum:{fg:"DeepSkyBlue",bg:""},ferrum:{fg:"DarkOrange",bg:""},gypsum:{fg:"",bg:""},magnesium:{fg:"Red",bg:""},plumbum:{fg:"Gold",bg:""},quartz:{fg:"",bg:""},quicksilver:{fg:"",bg:""},realgar:{fg:"firebrick",bg:""},stannum:{fg:"Tan",bg:""},caloric:{fg:"darkseagreen",bg:""},mending:{fg:"orchid",bg:""},epidermal:{fg:"sienna",bg:""},restoration:{fg:"darkviolet",bg:""},health:{fg:"lightpink",bg:""},writhe:{fg:"paleyellow",bg:"darkslategray"}},s={addiction:{shortName:"add",...i.ferrum},aeon:{shortName:"ae",...i.cinnabar},agoraphobia:{shortName:"agor",...i.argentum},amnesia:{shortName:"amn",fg:"",bg:""},anorexia:{shortName:"ANO",...i.epidermal},asthma:{shortName:"AST",...i.aurum},blackout:{shortName:"bo",fg:"",bg:""},blindness:{shortName:"unb",...i.arsenic},bound:{shortName:"bnd",...i.writhe},brokenleftarm:{shortName:"la1",...i.mending},brokenleftleg:{shortName:"ll1",...i.mending},brokenrightarm:{shortName:"ra1",...i.mending},brokenrightleg:{shortName:"rl1",...i.mending},bruisedribs:{shortName:"ribs",fg:"",bg:""},burning:{shortName:"burn",...i.mending},calcifiedskull:{shortName:"calh",...i.restoration},calcifiedtorso:{shortName:"calt",...i.restoration},claustrophobia:{shortName:"clau",...i.stannum},cleanseaura:{shortName:"cleanse",fg:"",bg:""},clumsiness:{shortName:"clu",...i.aurum},concussion:{shortName:"conc",...i.restoration},confusion:{shortName:"con",...i.stannum},corruption:{shortName:"corr",fg:"",bg:""},crackedribs:{shortName:"cr",...i.health},crushedthroat:{shortName:"cru",...i.mending},daeggerimpale:{shortName:"daeg",...i.writhe},damage:{shortName:"dmg",fg:"tomato",bg:""},damagedleftarm:{shortName:"la2",...i.restoration},damagedleftleg:{shortName:"ll2",...i.restoration},damagedrightarm:{shortName:"ra2",...i.restoration},damagedrightleg:{shortName:"rl2",...i.restoration},damagedhead:{shortName:"hd2",...i.restoration},darkshade:{shortName:"dark",...i.ferrum},dazed:{shortName:"dzd",...i.cinnabar},dazzled:{shortName:"dzl",...i.mending},deadening:{shortName:"dea",...i.cinnabar},deafness:{shortName:"und",...i.calamine},dehydrated:{shortName:"deh",fg:"",bg:""},dementia:{shortName:"dem",...i.stannum},depression:{shortName:"dep",...i.plumbum},deteriorate:{shortName:"det",fg:"",bg:""},disloyalty:{shortName:"disl",...i.realgar},disrupted:{shortName:"disr",fg:"",bg:""},dissonance:{shortName:"disso",...i.plumbum},dizziness:{shortName:"diz",...i.plumbum},enmesh:{text:"enmsh",...i.writhe},enscorcelled:{shortName:"ensor",fg:"",bg:""},entangled:{shortName:"entgl",...i.writhe},epilepsy:{shortName:"epi",...i.plumbum},fear:{shortName:"fear",fg:"",bg:""},flushings:{shortName:"flush",...i.ferrum},frozen:{shortName:"frz",...i.caloric},generosity:{shortName:"gen",...i.cuprum},grievouswounds:{shortName:"grv",...i.health},guilt:{shortName:"gui",...i.argentum},haemophilia:{shortName:"haem",...i.ferrum},hallucinations:{shortName:"hall",...i.stannum},hamstrung:{shortName:"hms",fg:"",bg:""},healthleech:{shortName:"hthl",...i.aurum},heartseed:{shortName:"heart",...i.restoration},hellsight:{shortName:"hell",...i.realgar},horror:{shortName:"hor",...i.plumbum},hypersomnia:{shortName:"hypers",...i.stannum},hypochondria:{shortName:"hypoch",...i.aurum},hypothermia:{shortName:"hypoth",...i.restoration},icefisted:{shortName:"ice",fg:"",bg:""},impaled:{shortName:"impl",...i.writhe},impatience:{shortName:"IMPAT",...i.plumbum},indifference:{shortName:"ind",...i.cuprum},itching:{shortName:"itch",...i.epidermal},justice:{shortName:"just",...i.cuprum},kkractlebrand:{shortName:"kkr",...i.health},laceratedthroat:{shortName:"lac2",...i.restoration},latched:{shortName:"latch",...i.health},lethargy:{shortName:"let",...i.ferrum},lightbind:{shortName:"light",fg:"",bg:""},loneliness:{shortName:"lon",...i.argentum},lovers:{shortName:"love",...i.cuprum},manaleech:{shortName:"man",...i.realgar},mangledleftarm:{shortName:"la3",...i.restoration},mangledleftleg:{shortName:"ll3",...i.restoration},mangledrightarm:{shortName:"ra3",...i.restoration},mangledrightleg:{shortName:"rl3",...i.restoration},mangledhead:{shortName:"hd3",...i.restoration},masochism:{shortName:"maso",...i.argentum},mildtrauma:{shortName:"tor1",...i.restoration},mycalium:{shortName:"myc",...i.plumbum},nausea:{shortName:"nau",...i.ferrum},numbedleftarm:{shortName:"nbla",fg:"",bg:""},numbedrightarm:{shortName:"nbra",fg:"",bg:""},pacified:{shortName:"pac",...i.cuprum},paralysis:{shortName:"PAR",...i.magnesium},paranoia:{shortName:"prn",...i.stannum},parasite:{shortName:"prs",...i.aurum},peace:{shortName:"pea",...i.cuprum},phlogisticated:{shortName:"phlog",fg:"",bg:""},pinshot:{shortName:"psh",fg:"",bg:""},pressure:{shortName:"pres",...i.calcite},prone:{shortName:"pr",fg:"",bg:""},pyramides:{shortName:"pyra",...i.magnesium},pyre:{shortName:"pyre",...i.cuprum},rebbies:{shortName:"reb",...i.aurum},recklessness:{shortName:"reck",...i.argentum},retardation:{shortName:"ret",fg:"",bg:""},retribution:{shortName:"retr",...i.cuprum},revealed:{shortName:"rev",fg:"",bg:""},sandfever:{shortName:"sand",...i.plumbum},scalded:{shortName:"scald",...i.epidermal},scytherus:{shortName:"scy",...i.ferrum},selarnia:{shortName:"sel",...i.mending},sensitivity:{shortName:"sen",...i.aurum},serioustrauma:{shortName:"tor2",...i.restoration},shadowmadness:{shortName:"shad",...i.plumbum},shivering:{shortName:"shiv",...i.caloric},shyness:{shortName:"shy",...i.plumbum},skullfractures:{shortName:"sf",...i.health},slashedthroat:{shortName:"lac1",...i.epidermal},sleeping:{shortName:"slp",fg:"",bg:""},slickness:{shortName:"SLI",...i.magnesium},slimeobscure:{shortName:"nkh",fg:"",bg:""},spiritburn:{shortName:"spirB",...i.argentum},spiritwrack:{shortName:"spirW",fg:"",bg:""},stupidity:{shortName:"st",...i.plumbum},stuttering:{shortName:"stut",...i.epidermal},homunculusmercury:{shortName:"merc",fg:"",bg:""},temperedcholeric:{shortName:"choH",...i.antimony},temperedmelancholic:{shortName:"melaH",...i.antimony},temperedphlegmatic:{shortName:"phleH",...i.antimony},temperedsanguine:{shortName:"sanH",...i.antimony},tenderskin:{shortName:"tend",...i.argentum},tension:{shortName:"tens",...i.cinnabar},timeflux:{shortName:"tmfx",fg:"",bg:""},timeloop:{shortName:"tmlp",...i.cuprum},tonguetied:{shortName:"tngt",...i.restoration},torntendons:{shortName:"tt",...i.health},transfixation:{shortName:"trfx",...i.writhe},unweavingbody:{shortName:"unwM",...i.ferrum},unweavingspirit:{shortName:"unwS",...i.cinnabar},unweavingmind:{shortName:"unwM",...i.plumbum},unblind:{shortName:"unB",fg:"",bg:""},undeaf:{shortName:"unD",fg:"",bg:""},vertigo:{shortName:"vert",...i.argentum},vitrified:{shortName:"vitri",fg:"",bg:""},voidfisted:{shortName:"void",fg:"",bg:""},voyria:{shortName:"voy",fg:"",bg:""},weariness:{shortName:"wea",...i.aurum},webbed:{shortName:"web",...i.writhe},whisperingmadness:{shortName:"mad",...i.argentum},wristfractures:{shortName:"wf",...i.health}},colorGradation=e=>`hsl(${1.2*e}, 100%, ${e<75?50:Math.abs(e-100)/2+25}%)`,a={notice:function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i="#784695",s="#CBCE91FF",a="#FFF2D7";let r=document.createElement("span");r.setAttribute("class","mono"),r.appendChild(Object.assign(document.createElement("span"),{style:`color:${i}`,innerHTML:"<<"})),r.appendChild(Object.assign(document.createElement("span"),{style:`color:${s}`,innerHTML:"insight"})),r.appendChild(Object.assign(document.createElement("span"),{style:`color:${i}`,innerHTML:">> "})),t?r.insertAdjacentHTML("beforeend",e):r.appendChild(Object.assign(document.createElement("span"),{style:`color:${a}`,innerHTML:e})),nexusclient.add_html_line(r.outerHTML)},affUpdate:(e,t)=>{const i=document.createElement("span");let a;i.setAttribute("class","mono"),a=t?generateChunk("+aff ","lime"):generateChunk("-aff ","red"),i.appendChild(a);const r=generateChunk(capitalize(e),s[e].fg||"",s[e].bg||"");return i.appendChild(r),i.outerHTML},defUpdate:(e,t)=>{const i=document.createElement("span");let s;i.setAttribute("class","mono"),s=t?generateChunk("+def ","lime"):generateChunk("-def ","red"),i.appendChild(s);const a=generateChunk(capitalize(e));return i.appendChild(a),i.outerHTML},currentAffDisplayHTML:()=>{let e=document.createElement("span");if(e.setAttribute("class","mono"),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"["})),insight.currentAffs().length>1)for(let t=0;t<insight.currentAffs().length-1;t++){const i=insight.currentAffs()[t];e.appendChild(Object.assign(document.createElement("span"),{style:`color:${s[i].fg||""};background:${s[i].bg||""}`,innerHTML:insight.reporting.shortNames?`${s[i].shortName}`:`${capitalize(i)}`})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:insight.currentAffs().length>1?`: ${insight.target.affs[i].probability}, `:`: ${insight.target.affs[i].probability}`}))}const t=insight.currentAffs().at(-1);return e.appendChild(Object.assign(document.createElement("span"),{style:`color:${s[t].fg||""};background:${s[t].bg||""}`,innerHTML:insight.reporting.shortNames?`${s[t].shortName}`:`${t}`})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:`: ${insight.target.affs[t].probability}`})),insight.currentAffs().forEach((e=>{})),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"]"})),e.outerHTML},currentStatsDisplayHTML:()=>{const e={...insight.target.stats};let t=document.createElement("span");t.setAttribute("class","mono");const i=generateChunk(`${e.hp.get()}(${100*e.hpPercent.get()}%)`,colorGradation(100*e.hpPercent.get()));t.appendChild(i);const s=generateChunk(", ");t.appendChild(s);const a=generateChunk(`${e.mana.get()}(${100*e.manaPercent.get()}%)`,colorGradation(100*e.manaPercent.get()));return t.appendChild(a),t.outerHTML},cureColors:i,affAbbrev:s};class Timer{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this._id=e,this._enabled=!1,this._startTime=0,this._endTime=0,this._timerId=0,this._defaultLength=t,this.setLength(t),this._callbacks=[]}get length(){return this._length}get id(){return this._id}get enabled(){return this._enabled}setLength(e){if(e<0)throw new Error("Timer length cannot be negative");this._length=e}reset(){clearTimeout(this._timerId),this._enabled=!1,this.setLength(this._defaultLength),this._endTime=performance.now()/1e3,eventStream.raiseEvent(`timerReset${this._id}`)}start(){clearTimeout(this._timerId),this._startTimer(),eventStream.raiseEvent(`timerStarted${this._id}`)}_startTimer(){this._timerId=setTimeout(this.stop.bind(this),1e3*this._length),this._enabled=!0,this._startTime=performance.now()/1e3}stop(){this._enabled&&(clearTimeout(this._timerId),this._endTime=performance.now()/1e3,this._enabled=!1,eventStream.raiseEvent(`timerStopped${this._id}`),this._callbacks.forEach((e=>e())))}duration(){return this._enabled?this.elapsed():this._endTime-this._startTime}elapsed(){return this._enabled?performance.now()/1e3-this._startTime:0}remaining(){return this._enabled?this._length-this.elapsed():this._length}addCallback(e){if("function"!=typeof e)throw new Error("Callback must be a function");this._callbacks.push(e)}clearCallbacks(){this._callbacks=[]}static createTimer(e){return new Timer(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0)}}const r=Timer.createTimer;class Affliction{constructor(e,i){if(this.id=e,this.player=i,this.probability=0,this.cures=[],this.have=!1,Object.keys(t).forEach((i=>{t[i].order?.includes(e)&&this.cures.push(i)})),n.hasOwnProperty(e)){const t=n[e].length;this.timer=r(`insightTimer${e}`,t),this.timer.addCallback((()=>{globalThis.insight.removeAff({id:this.id,player:this.player})}))}}got(){this.have||(eventStream.raiseEvent("insightGotAff",this),eventStream.raiseEvent(`insightGotAff${this.id}`,this)),this.have=!0,this.probability=1,this.timer?.start()}lost(){this.have&&(eventStream.raiseEvent("insightLostAff",this),eventStream.raiseEvent(`insightLostAff${this.id}`,this)),this.reset()}reset(){this.have=!1,this.probability=0,this.timer?.stop()}}const n={test:{length:10},aeon:{length:16},airfisted:{length:16},blackout:{length:10},blistered:{length:20},bruisedribs:{length:30},cadmuscurse:{length:20},cleanseaura:{length:5},condemned:{length:20},constricted:{length:30},corruption:{length:45},dazzled:{length:60},dehydrated:{length:60},demonstain:{length:120},empoweredloshre:{length:12},empoweredmannaz:{length:20},enmesh:{length:5},ensorcelled:{length:20},flamefisted:{length:30},hamstrung:{length:9},heartseed:{length:11},hecatecurse:{length:16},icefisted:{length:30},internalbleeding:{length:30},inquisition:{length:30},kaisurge:{length:15},lightbind:{length:22},mindravaged:{length:20},mudded:{length:12},numbedleftarm:{length:7.5},numbedrightarm:{length:7.5},petrified:{length:10},palpatarfeed:{length:20},phlogisticated:{length:45},pinshot:{length:18},revealed:{length:60},scalded:{length:20},scrambledbrains:{length:60},silenced:{length:20},silver:{length:180},slimeobscure:{length:60},solarburn:{length:5},stun:{length:3},timeflux:{length:60},trueblind:{length:6},unconsciousness:{length:10},vinewreathed:{length:30},vitrified:{length:45},voidfisted:{length:5},waterbonds:{length:30},weakenedmind:{length:60}},o=["undeaf","unblind","cleanseaura","addiction","aeon","agoraphobia","airfisted","amnesia","anorexia","asphyxiating","asthma","blackout","bleeding","blindness","blistered","bloodfire","bound","brokenleftarm","brokenrightarm","brokenleftleg","brokenrightleg","bruisedribs","burning","cadmuscurse","calcifiedskull","calcifiedtorso","claustrophobia","cleanseaura","clumsiness","coldfate","concussion","condemned","conflagration","confusion","constricted","corruption","crackedribs","cremated","crushedthroat","daeggerimpale","damagedhead","damagedleftarm","damagedleftleg","damagedrightarm","damagedrightleg","darkshade","dazed","dazzled","deadening","deafness","death","deathsickness","deepsleep","degenerate","dehydrated","dementia","demonstain","depression","deteriorate","disloyalty","disrupted","dissonance","dizziness","empoweredmannaz","empoweredloshre","enlightenment","enmesh","ensorcelled","entangled","epilepsy","fear","flamefisted","flushings","frozen","generosity","grievouswounds","guilt","hamstrung","haemophilia","hallucinations","hatred","healthleech","heartseed","hecatecurse","hellsight","hindered","homunculusmercury","horror","hypersomnia","hypochondria","hypothermia","icefisted","impaled","impatience","indifference","inquisition","insomnia","internalbleeding","isolation","itching","justice","kaisurge","kkractlebrand","laceratedthroat","lapsingconsciousness","latched","lethargy","lightbind","loneliness","lovers","lullaby","manaleech","masochism","mildtrauma","mangledleftarm","mangledleftleg","mangledrightarm","mangledrightleg","mangledhead","mindclamp","mindravaged","muddled","mycalium","nausea","numbedleftarm","numbedrightarm","pacified","palpatarfeed","paralysis","paranoia","parasite","peace","penitence","petrified","phlogisticated","pinshot","pressure","prone","pyramides","pyre","rebbies","recklessness","retribution","revealed","sandfever","scalded","scrambledbrains","scytherus","selarnia","sensitivity","serioustrauma","shadowmadness","shivering","shyness","silenced","silver","skullfractures","slashedthroat","sleeping","slickness","slimeobscure","solarburn","spiritburn","stun","stupidity","stuttering","temperedcholeric","temperedmelancholic","temperedphlegmatic","temperedsanguine","tenderskin","tension","timeflux","timeloop","tonguetied","torntendons","transfixation","trueblind","unweavingbody","unweavingmind","unweavingspirit","vertigo","vinewreathed","vitiated","vitrified","voidfisted","voyria","waterbonds","weakenedmind","weariness","webbed","whisperingmadness","wristfractures","unconsciousness","harmonic","bop","spiritwrack","bedevil","loki","moon","evileye","dragoncurse","swiftcurse"],l={};o.forEach((e=>{l[e]=new Affliction(e)}));const generateAffs=e=>{const t={};return o.forEach((i=>{t[i]=new Affliction(i,e)})),t};class Balance{constructor(e){let{id:t,duration:i}=e;this.id=t,this.have=!0,this.timer=r(`insightTimer${t}`,i),this.timer.addCallback(this.reset.bind(this))}got(){this.have=!0,eventStream.raiseEvent("insightGotBal",this),eventStream.raiseEvent(`insightGot${this.id}`,this),this.timer.stop()}lost(){this.have=!1,eventStream.raiseEvent("insightLostBal",this),eventStream.raiseEvent(`insightLost${this.id}`,this),this.timer?.start()}reset(){this.have=!0,this.timer.stop()}}const d={},h=[{id:"balance",duration:1.8},{id:"equilibrium",duration:1.8},{id:"herb",duration:1.3},{id:"smoke",duration:1.3},{id:"salve",duration:.8},{id:"restoration",duration:3.8},{id:"focus",duration:2.3},{id:"tree",duration:14.8},{id:"shrugging",duration:9.8},{id:"fool",duration:9.8},{id:"sun",duration:19.8},{id:"accelerate",duration:9.8}];h.forEach((e=>d[e.id]=new Balance(e)));const generateBals=()=>{const e={};h.forEach((t=>e[t.id]=new Balance(t)));return e.restoration.timer.addCallback((()=>{insight.players[insight.restorationCure.player].timeline.cure(insight.restorationCure.id)})),e};class Defence{constructor(e){let{id:t,value:i,player:s,duration:a}=e;this.id=t,this.have=i,this.player=s,this.defaultValue=i}got(){this.have||(eventStream.raiseEvent("insightGotDef",this),eventStream.raiseEvent(`insightGot${this.id}`,this)),this.have=!0}lost(){this.have&&(eventStream.raiseEvent("insightLostDef",this),eventStream.raiseEvent(`insightLost${this.id}`,this)),this.have=!1}reset(){this.have=this.defaultValue}}const m={insomnia:!0,insulation:!0,kola:!0,speed:!0,shield:!1,rebounding:!0,prismatic:!1,cloak:!0,fangbarrier:!0,curseward:!1,selfishness:!0},generateDefs=e=>{const t={};for(const i in m)Object.hasOwnProperty.call(m,i)&&(t[i]=new Defence({id:i,value:m[i],player:e}));return t};class Stat{constructor(e){let{id:t,value:i}=e;this.id=t,this.value=i,this.defaultValue=i}set(e){this.value=e,eventStream.raiseEvent("insightSetStat",this),eventStream.raiseEvent(`insightSet${this.id}`,this)}get(){return this.value}reset(){this.value=this.defaultValue}}const g={hp:8e3,mana:8e3,hpMax:8e3,manaMax:8e3,hpPercent:1,manaPercent:1,soulmaster:!1,enlightened:!1,mentalCount:0,physicalCount:0},generateStats=()=>{const e={};for(const t in g)Object.hasOwnProperty.call(g,t)&&(e[t]=new Stat({id:t,value:g[t]}));return e},c={mentals:["claustrophobia","agoraphobia","lovers","dementia","epilepsy","hallucinations","confusion","stupidity","paranoia","vertigo","shyness","addiction","recklessness","masochism"],physicals:["asthma","paralysis","slickness","haemophilia","clumsiness","healthleech","sensitivity","darkshade"],bubonis:["vertigo","recklessness","confusion","masochism","paranoia","shyness","claustrophobia"],chimera:["confusion","hallucinations","agoraphobia","claustrophobia","dementia"],moon:["stupidity","masochism","hallucinations","hypersomnia","confusion","epilepsy","claustrophobia","agoraphobia"],whisperingmadness:["dementia","stupidity","confusion","hypersomnia","paranoia","hallucinations","impatience","addiction","agoraphobia","lovers","loneliness","recklessness","masochism"],justice:["paralysis","sensitivity","healthleech","haemophilia","weariness","asthma","clumsiness"]};class Timeline{constructor(e){let{affs:t}=e;this.affs=t,this.present=[{probability:1,affs:[]}],this.currentAffs=[],this.history=[],this.logging=!1}reset(){this.present=[{probability:1,affs:[]}],this.currentAffs=[],this.history=[];for(const e in this.affs)Object.prototype.hasOwnProperty.call(this.affs,e)&&this.affs[e].reset()}add(e){this.logging&&console.log(`add(${e})`);for(const t of this.present)t.affs.includes(e)||t.affs.push(e);this.affs[e].got(),this.history.push(e),this.updateAffs(),this.logging&&(console.log("add "+e),console.log(JSON.stringify(this.present)))}remove(e){this.logging&&console.log(`remove(${e})`),this.affs[e].lost(),this.present.forEach((t=>{const i=t.affs.indexOf(e);i>-1&&t.affs.splice(i,1)})),this.pruneDuplicates(),this.updateAffs()}random(e){this.logging&&console.log(`random(${e})`);const t=[];e.forEach((e=>{for(const i of this.present){const s={probability:i.probability,affs:[...i.affs]};s.affs.includes(e)||(this.affs[e].have=!0,s.affs.push(e)),t.push(s)}})),this.present=t.length>0?t:[{probability:1,affs:[]}],this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log(`add ${e}`),console.log(JSON.stringify(this.present)))}smart(e){this.logging&&console.log(`smart(${e})`);const t=[];e.forEach((e=>{for(const i of this.present)i.affs.includes(e)||(this.affs[e].have=!0,t.push({probability:i.probability,affs:[...i.affs,e]}))})),this.present.forEach((i=>{e.every((e=>i.affs.includes(e)))&&t.push(i)})),t.length>0&&(this.present=t),this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log(`smart ${e}`),console.log(JSON.stringify(this.present)))}ordered(e){this.logging&&console.log(`ordered(${e})`);const t=[];for(const i of this.present)for(const s of e)if(!i.affs.includes(s)){this.affs[s].have=!0,t.push({probability:i.probability,affs:[...i.affs,s]});break}this.present.forEach((i=>{e.every((e=>i.affs.includes(e)))&&t.push({...i})})),t.length>0&&(this.present=t),this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log(`ordered ${e}`),console.log(JSON.stringify(this.present)))}cure(e){if(this.logging&&console.log(`cure(${e})`),t[e].bals_used.includes("salve")&&this.salveCure(e))return void console.log("salveCure() true return");const i=t[e].order,s=[];let a=!1;this.present.forEach((e=>{const t=e.affs.filter((e=>i.includes(e)));if(this.logging&&console.log("curableAffs",t),0!==t.length){a=!0;for(const i of t){const a=e.affs.filter((e=>e!==i));a.length>0&&s.push({probability:e.probability/t.length,affs:a})}}})),a&&(this.present=s.length>0?s:[{probability:1,affs:[]}]),this.pruneDuplicates(),this.updateAffs(),this.history.push(e),this.logging&&(console.log(`cure ${e}`),console.log(JSON.stringify(this.present)))}salveCure(e){this.logging&&console.log(`salveCure(${e})`);const i=t[e].order;for(const e of i)if(1===this.affs[e].probability)return this.remove(e),!0;return!1}confirm(e,t){this.logging&&console.log(`confirm(${e}, ${t})`);const{probability:i}=this.affs[e];if(t&&1===i||!t&&0===i)return;if(t&&0===i)return void this.add(e);if(!t&&1===i)return void this.remove(e);const s=this.present.filter((i=>i.affs.includes(e)===t));this.present=s,this.history.push(`${e}:${t}`),this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log(`confirm ${e} ${t}`),console.log(JSON.stringify(this.present)))}confirmMultiple(e,t){this.logging&&console.log(`confirmMultiple(${e}, ${t})`);const i=this.present.filter((i=>e.every((e=>i.affs.includes(e)))===t));this.present=i,this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log(`confirmMultiple ${e} ${t}`),console.log(JSON.stringify(this.present)))}convert(e,t){this.logging&&console.log(`convert(${e}, ${t})`),this.affs[e].have&&(this.affs[t].got(),this.present.forEach((i=>{const s=i.affs.indexOf(e);s>-1&&(i.affs[s]=t)})),this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log(`convert ${e} to ${t}`),console.log(JSON.stringify(this.present))))}readAuraConfirm(e){let{p:t,m:i}=e;this.logging&&console.log(`readAuraConfirm({ p: ${t}, m: ${i} })`);const s=this.present.filter((e=>{const s=e.affs.filter((e=>c.physicals.includes(e))),a=e.affs.filter((e=>c.mentals.includes(e)));return s.length<=t&&a.length<=i}));if(s.length<t+i)return console.error(`Insight Error: No present branch for physical ${t}, mental ${i}`),!1;this.present=s,this.pruneDuplicates(),this.updateAffs(),this.logging&&(console.log(`readAuraConfirm p:${t} m:${i}`),console.log(JSON.stringify(this.present)))}calculateMentalCount(){let e=0;for(const t of this.present)for(const i of t.affs)c.mentals.includes(i)&&(e+=1);return e/this.present.length}affProbability(e){let t=0;return this.present.forEach((i=>{i.affs.includes(e)&&(t+=i.probability)})),parseFloat(t.toFixed(2))}pruneDuplicates(){if(1===this.present.length)return void(this.present[0].probability=1);const e=new Map;for(const t of this.present){const i=[...t.affs].sort(),s=i.join(",");if(e.has(s)){e.get(s).probability+=t.probability}else e.set(s,{probability:t.probability,affs:i})}const t=Array.from(e.values()).reduce(((e,t)=>e+t.probability),0),i=Array.from(e.values()).map((e=>({probability:e.probability/t,affs:e.affs})));this.present=i}updateAffs(){this.logging&&console.log("updateAffs()");const e=new Set(this.present.flatMap((e=>e.affs))),t=this.currentAffs.filter((t=>!e.has(t)));t.length>0&&t.forEach((e=>this.affs[e].lost())),this.currentAffs=[...e],this.currentAffs.forEach((e=>{this.affs[e].probability=this.affProbability(e)})),eventStream.raiseEvent("insightUpdateAffs")}}class Limb{constructor(e){let{id:t,player:i}=e;this.id=t,this.player=i,this.percent=0,this.timer=r(`insightTimer${t}`,180),this.timer.addCallback(this.reset.bind(this))}hit(e){this.percent+=e,this.percent>=100?this.break():this.timer.start(),eventStream.raiseEvent("insightLimbHit",this),eventStream.raiseEvent(`insightLimbHit${this.id}`,this)}break(){this.percent=0,eventStream.raiseEvent("insightLimbBreak",this),eventStream.raiseEvent(`insightLimbBreak${this.id}`,this),this.timer.stop()}reset(){this.percent=0,this.timer.stop(),eventStream.raiseEvent("insightLimbReset",this),eventStream.raiseEvent(`insightLimbReset${this.id}`,this)}set(e){this.percent=e,this.percent>=100?this.break():this.timer.start()}}const p=["head","torso","leftleg","leftarm","rightleg","rightarm"],generateLimbs=e=>{const t={};return p.forEach((i=>t[i]=new Limb({id:i,player:e}))),t},playerCheck=e=>{if(parseInt(e))return void console.error("Insight playerCheck() id must be a string",e);if(void 0===e)return insight.target;const t=e.toLowerCase();return void 0===insight.players[t]&&(insight.players[t]=(e=>{const t={id:e.toLowerCase(),affs:generateAffs(e),defs:generateDefs(e),stats:generateStats(),bals:generateBals(),limbs:generateLimbs(e)};return t.timeline=new Timeline(t),t})(t)),insight.players[t]},hasAff=e=>{let{id:t,player:i,probability:s=0}=e;s>1&&(s/=100);const a=playerCheck(i).affs[t];return!!(a.have&&a.probability>=s)&&a.probability},hasAffs=e=>{let{ids:t,probability:i=0,player:s}=e;i>1&&(i/=100);const a=playerCheck(s);let r=!1;return Array.isArray(t)&&(r=t.every((e=>a.timeline.currentAffs.indexOf(e)>-1&&a.affs[e].probability>=i))),r},cureBlockersConfirm=(e,i)=>{const s=t[e].blocks;void 0!==s&&s.forEach((e=>{Array.isArray(e)?hasAffs({ids:e})&&e.forEach((e=>person.timeline.confirm(e,!1))):hasAff({id:e})&&i.timeline.confirm(e,!1)}))};__webpack_require__(95),__webpack_require__(389),__webpack_require__(473);const u={version:"0.2.5",reset:e=>{const t=e&&void 0!==insight.players[e]?insight.players[e]:insight.target;t.timeline.reset();for(const e in t.stats)t.stats[e].reset();for(const e in t.defs)t.defs[e].reset();for(const e in t.bals)t.bals[e].reset();for(const e in t.limbs)t.limbs[e].reset();insight.reporting.notices&&a.notice("Reset")},setTarget:e=>{insight.target=playerCheck(e)??insight.target},addAff:e=>{let{id:t,player:i}=e;playerCheck(i).timeline.add(t)},getAff:e=>{let{id:t,player:i}=e;if(void 0!==t)return playerCheck(i).affs[t]},removeAff:e=>{let{id:t,player:i}=e;const s=playerCheck(i);s.affs[t].have&&s.timeline.remove(t)},usedCure:e=>{let{id:i,player:s}=e;if(void 0===i)return;const a=playerCheck(s),r=t[i].bals_req.find((e=>a.bals[e]&&!a.bals[e].have));r?console.error("insight usedCure() off balance",i,a.bals[r]):(cureBlockersConfirm(i,a),i.includes("restoration")?insight.restorationCure={id:i,player:a.id}:a.timeline.cure(i),t[i].bals_used.forEach((e=>{"free"!==e&&a.bals[e].lost()})),eventStream.raiseEvent("insightUsedCure",i),eventStream.raiseEvent(`insightUsedCure${i}`))},confirmAff:e=>{let{id:t,state:i=!0,player:s}=e;playerCheck(s).timeline.confirm(t,i)},confirmAffs:e=>{let{ids:t,state:i,player:s}=e;void 0!==t&&Array.isArray(t)&&playerCheck(s).timeline.confirmMultiple(t,i)},randomAffs:e=>{let{ids:t,player:i}=e;void 0!==t&&playerCheck(i).timeline.random(t)},readAuraConfirm:e=>{let{p:t,m:i,player:s}=e;playerCheck(s).timeline.readAuraConfirm({p:t,m:i})},smartAffs:e=>{let{ids:t,player:i,ordered:s=!1}=e;if(void 0===t)return;const a=playerCheck(i);s?a.timeline.ordered(t):a.timeline.smart(t)},convertAff:e=>{let{id:t,to:i,player:s}=e;void 0!==t&&void 0!==i&&playerCheck(s).timeline.convert(t,i)},addDef:e=>{let{id:t,player:i}=e;playerCheck(i).defs[t].got()},removeDef:e=>{let{id:t,player:i}=e;playerCheck(i).defs[t].lost()},hasAff,hasAffs,hasAnAff:e=>{let{ids:t,player:i,probability:s=0}=e;s>1&&(s/=100);const a=playerCheck(i);let r=!1;return Array.isArray(t)&&(r=a.timeline.currentAffs.some((e=>t.indexOf(e)>-1&&a.affs[e].probability>=s))),r},hasDef:e=>{let{id:t,player:i}=e;return playerCheck(i).defs[t].have},hasBal:e=>{let{id:t,player:i}=e;return playerCheck(i).bals[t].have},lostBal:e=>{let{id:t,player:i}=e;playerCheck(i).bals[t].lost()},balRemaining:e=>{let{id:t,player:i}=e;return playerCheck(i).bals[t].timer.remaining()},setStat:e=>{let{id:t,value:i,player:s}=e;const a=playerCheck(s);a.stats[t].get()!==i&&a.stats[t].set(i)},getStat:e=>{let{id:t,player:i}=e;return playerCheck(i).stats[t].get()},adjustStat:e=>{let{id:t,value:i,player:s}=e;const a=playerCheck(s);let r,n;i<=1&&i>-1?(r=a.stats[`${t}Percent`].get()+i,n=a.stats[`${t}Max`].get()*r):(n=a.stats[t].get()+i,r=n/a.stats[`${t}Max`].get()),r>1||r<0||(a.stats[`${t}Percent`].set(r),a.stats[t].set(n))},getLimb:e=>{let{id:t,player:i}=e;return playerCheck(i).limbs[t].percent},hitLimb:e=>{let{id:t,player:i,value:s}=e;playerCheck(i).limbs[t].hit(s)},resetLimb:e=>{let{id:t,player:i}=e;return playerCheck(i).limbs[t].reset()},breakLimb:e=>{let{id:t,player:i}=e;return playerCheck(i).limbs[t].break()},currentAffs:()=>insight.target.timeline.currentAffs,display:a,nextLine:e=>{let t=!1;for(let i=nexusclient.current_line.index+1;i<nexusclient.current_block.length;i++){const s=nexusclient.current_block[i];if(s.html_text||s.is_prompt||void 0===s.line)continue;const a=s.parsed_line.text();return e instanceof RegExp?t=e.test(a):"string"==typeof e&&(t=a.includes(e)),t}},checkBlock:e=>{const t=nexusclient.current_block;let i=!1;return e instanceof RegExp?i=!!t.find((t=>void 0!==t.line&&e.test(t.line))):"string"==typeof e&&(i=!!t.find((t=>void 0!==t.line&&t.line.includes(e)))),i},venomToAff:{xentio:"clumsiness",eurypteria:"recklessness",kalmia:"asthma",digitalis:"shyness",darkshade:"darkshade",curare:"paralysis",epteth:"",prefarar:"sensitivity",monkshood:"disloyalty",euphorbia:"nausea",oculus:"unblind",vernalius:"weariness",epseth:"",larkspur:"dizziness",slike:"anorexia",delphinium:"sleep",notechis:"haemophilia",vardrax:"addiction",loki:"loki",aconite:"stupidity",selarnia:"",gecko:"slickness",scytherus:"scytherus",nechamadra:"shivering"},target:{},players:{},state:{lastQueue:!1,queues:{},serverAliases:{}},reporting:{notices:!1,shortNames:!1,colors:!0},occultist:c,debug:()=>{console.log(target.id)},currentAffDisplay:()=>{let e=[];return insight.target.timeline.currentAffs.forEach((t=>e.push(`${t}: ${insight.target.affs[t].probability}`))),e}};globalThis.insight=u,globalThis.insight.setTarget("pamxen"),globalThis.insight.reset(),"undefined"!=typeof nexusclient&&((()=>{eventStream.registerEvent("insightLostAff",(e=>{insight.reporting.notices&&insight.target.id===e.player&&a.notice(a.affUpdate(e.id,!1))})),eventStream.registerEvent("insightGotAff",(e=>{insight.reporting.notices&&insight.target.id===e.player&&a.notice(a.affUpdate(e.id,!0))})),eventStream.registerEvent("insightLostDef",(e=>{insight.reporting.notices&&insight.target.id===e.player&&a.notice(a.defUpdate(e.id,!1))})),eventStream.registerEvent("insightGotDef",(e=>{insight.reporting.notices&&insight.target.id===e.player&&a.notice(a.defUpdate(e.id,!0))})),eventStream.registerEvent("IRE.Target.Set",(e=>{"number"!=typeof e&&insight.setTarget(e)})),eventStream.registerEvent("PromptEvent",(()=>{insight.currentAffs().length>0&&nexusclient.add_html_line(a.currentAffDisplayHTML())})),eventStream.registerEvent("nexSkillMatch",(e=>{"secondPerson"!==e.match&&eventStream.raiseEvent(`insight.${e.skill}.${e.id}`,e)})),eventStream.registerEvent("insightLimbBreak",(e=>{switch(e.id){case"leftleg":case"rightleg":case"rightarm":case"leftarm":case"head":insight.hasAff({id:`damaged${e.id}`,player:e.player})?insight.convertAff({id:`damaged${e.id}`,to:`mangled${e.id}`,player:e.player}):insight.hasAff({id:`mangled${e.id}`,player:e.player})||((e.id.includes("leg")||e.id.includes("arm"))&&insight.removeAff({id:`broken${e.id}`,player:e.player}),insight.addAff({id:`damaged${e.id}`,player:e.player}));break;case"torso":insight.hasAff({id:"mildtrauma",player:e.player})?insight.convertAff({id:"mildtrauma",to:"serioustrauma",player:e.player}):insight.addAff({id:"mildtrauma",player:e.player});default:console.error("insight event limbBreak no case found",e)}}));const limbCures=e=>{const t={brokenleftleg:"mangledleftleg",brokenleftarm:"mangledleftarm",brokenrightleg:"mangledrightleg",brokenrightarm:"mangledrightarm"};console.log(e);const i={mangledleftleg:"damagedleftleg",mangledleftarm:"damagedleftarm",mangledrightleg:"damagedrightleg",mangledrightarm:"damagedrightarm",mangledhead:"damagedhead",serioustrauma:"mildtrauma",damagedleftleg:"brokenleftleg",damagedleftarm:"brokenleftarm",damagedrightleg:"brokenrightleg",damagedrightarm:"brokenrightarm"}[e.id];void 0!==t[i]&&insight.hasAff({id:t[i],player:e.player})||insight.addAff({id:i,player:e.player})};eventStream.registerEvent("insightLostAffmangledleftleg",limbCures),eventStream.registerEvent("insightLostAffmangledleftarm",limbCures),eventStream.registerEvent("insightLostAffmangledrightleg",limbCures),eventStream.registerEvent("insightLostAffmangledrightarm",limbCures),eventStream.registerEvent("insightLostAffmangledhead",limbCures),eventStream.registerEvent("insightLostAffserioustrauma",limbCures),eventStream.registerEvent("insightLostAffdamagedleftleg",limbCures),eventStream.registerEvent("insightLostAffdamagedleftarm",limbCures),eventStream.registerEvent("insightLostAffdamagedrightleg",limbCures),eventStream.registerEvent("insightLostAffdamagedrightarm",limbCures)})(),u.reporting.notices=!0,"Khaseem"!==nexusclient.datahandler().GMCP.Character.name&&fetch("https://unpkg.com/nexsight/insight3.nxs",{cache:"no-store"}).then((e=>e.json())).then((e=>{nexusclient.packages().get("insight3").apply(e,nexusclient.reflexes())})))})()})();
|
package/insight3.nxs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"type":"group","name":"insight3","enabled":true,"items":[{"type":"function","name":"onInstall","enabled":true,"code":"nexusclient.reflexes().run_function('esLoad', {}, 'insight3');"},{"type":"function","name":"onUninstall","enabled":true,"code":"// Place any code here you'd like to autorun when the package is uninstalled"},{"type":"function","name":"esLoad","enabled":true,"code":"import('https://unpkg.com/nexsight/insight.min.js').then(() => {\nconsole.log('insightDisplay then()');\n const insightDisplay = () => {\n if (insight.currentAffs().length > 0) {\n nexusclient.add_html_line(insight.currentAffDisplayHTML());\n }\n }\n eventStream.removeListener('PromptEvent', 'insightDisplay');\n eventStream.registerEvent('PromptEvent', insightDisplay);\n insight.setTarget('Pamxen');\n insight.reporting.notices = true;\n})\n.catch(error => {\n console.error('Error during inisght import:', error);\n });"},{"type":"function","name":"onLoad","enabled":true,"code":""},{"type":"alias","name":"","enabled":true,"actions":[{"type":"function","enabled":true,"fn":"esLoad"}],"text":"insight.reload","matching":"exact","whole_words":true,"case_sensitive":true,"prefix_suffix":true},{"type":"group","name":"Target Curing","enabled":true,"items":[{"type":"group","name":"Curatives","enabled":true,"items":[{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'antimony'})"}],"text":"^(\\w+?) eats (?:a ginger root|an antimony flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'argentum'})"}],"text":"^(\\w+?) eats (?:a lobelia seed|an argentum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'arsenic'})"}],"text":"^(\\w+?) eats (?:some bayberry bark|an arsenic pellet)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'aurum'})"}],"text":"^(\\w+?) eats (?:a piece of kelp|an aurum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'cuprum'});"}],"text":"^(\\w+?) eats a (?:bellwort flower|cuprum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"let deafnessTimer\nclearTimeout(deafnessTimer);\ndeafnessTimer = setTimeout(() => { \n insight.usedCure({player: args[1], id: 'calamine'}); \n}, 3000);"}],"text":"^(\\w+?) eats a (?:hawthorn berry|calamine crystal)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'ferrum'})"}],"text":"^(\\w+?) eats a (?:ginseng root|ferrum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'magnesium'})"}],"text":"^(\\w+?) eats a (?:bloodroot leaf|magnesium chip)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'plumbum'})"}],"text":"^(\\w+?) eats a (?:goldenseal root|plumbum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'stannum'})"}],"text":"^(\\w+?) eats (?:some prickly ash bark|a stannum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// Typically Epidermal apply\ninsight.usedCure({player: args[1], id: 'epidermal to body'})"}],"text":"^(\\w+?) takes some salve from a vial and rubs it on \\w+ body\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"slickness\", state: false, player: args[1]});\n\nif (insight.hasAff({id: 'unblind', player: args[1]})) {\n insight.addAff({player: args[1], id: 'undeaf'});\n} else if (insight.hasAff({id: 'undeaf', player: args[1]})) {\n\tinsight.addAff({player: args[1], id: 'undeaf'});\n}"}],"text":"^(\\w+?) takes some salve from a vial and rubs it on \\w+ head\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.hasAnAff({ids: [\"hypothermia\",\n \"heartseed\",\n \"serioustrauma\",\n \"mildtrauma\",\n \"calcifiedtorso\"], player: args[1]})) {\n\tinsight.usedCure({id: \"restoration to torso\", player: args[1]});\n} else {\n\tinsight.usedCure({id: \"mending to torso\", player: args[1]});\n}\n"}],"text":"^(\\w+?) takes some salve from a vial and rubs it on \\w+ torso\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Imyrr takes some salve from a vial and rubs it on his arms.\nif (insight.hasAnAff({ids: [\"damagedleftarm\", \"damagedrightarm\", \"mangledleftarm\", \"mangledrightarm\"], player: args[1]})) {\n\tinsight.usedCure({id: \"restoration to arms\", player: args[1]});\n} else {\n\tinsight.usedCure({id: \"mending to arms\", player: args[1]});\n}"}],"text":"^(\\w+?) takes some salve from a vial and rubs it on \\w+ arms\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Imyrr takes some salve from a vial and rubs it on his legs.\nif (insight.hasAnAff({ids: [\"damagedleftleg\", \"damagedrightleg\", \"mangledleftleg\", \"mangledrightleg\"], player: args[1]})) {\n\tinsight.usedCure({id: \"restoration to legs\", player: args[1]});\n} else {\n\tinsight.usedCure({id: \"mending to legs\", player: args[1]});\n}"}],"text":"^(\\w+?) takes some salve from a vial and rubs it on \\w+ legs\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Imyrr takes some salve from a vial and rubs it on his skin.\n// Untargetted apply.\n// Caloric, Mass\nif (insight.hasAnAff({ids: [\"frozen\", \"shivering\"], player: args[1]})) {\n\tinsight.usedCure({id: \"caloric\", player: args[1]});\n} else {\n\tinsight.addDef({id: \"caloric\", player: args[1]});\n}"}],"text":"^(\\w+?) takes some salve from a vial and rubs it on \\w+ skin\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.hasAnAff({ids: [\"aeon\", \"deadening\", \"tension\", \"unweavingspirit\"], player: args[1]})) {\n\tinsight.usedCure({id: \"cinnabar\", player: args[1]});\n} else if (insight.hasAnAff({ids: [\"disloyalty\", \"hellsight\", \"manaleech\", \"slickness\"], player: args[1]})) {\n\tinsight.usedCure({id: \"realgar\", player: args[1]});\n}"}],"text":"^(\\w+?) takes a long drag off \\w+ pipe\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Tree Tattoo","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"tree\", player: args[1]});\n\neventStream.raiseEvent('treeLostInsightTracker');"}],"text":"^(\\w+?) touches a tree of life tattoo\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Focus","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"focus\", player: args[1]});\n\neventStream.raiseEvent('focusLostInsightTracker');"}],"text":"^A look of extreme focus crosses the face of (\\w+?)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Class Cures","enabled":true,"items":[{"type":"trigger","name":"Sun Tarot","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"sun\", player: args[1]});"}],"text":"^The globe of light illuminates (\\w+?) with its brilliance\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Runewarden Sun","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"sun\", player: args[1]});"}],"text":"^A rune like a rising sun upon the ground flares, bathing (\\w+) with healing magic\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shrugging","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"shrugging\", player: args[1]});"}],"text":"^(\\w+?) hunches (?:her|his) shoulders and lets out a soft hiss\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"generic\", player: args[1]});"}],"text":"^(\\w+?) is surrounded in a cool, refreshing mist\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"generic\", player: args[1]});"}],"text":"^A demonic crimson glow emanates from (\\w+?)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Pariah Leech","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"generic\", player: args[1]});"}],"text":"^Something pulses from within the chest of (\\w+), and \\w+ seems more vital\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]}]},{"type":"group","name":"Affliction Indicators","enabled":true,"items":[{"type":"group","name":"Cure Confirms","enabled":true,"items":[{"type":"trigger","name":"Lovers Cure Confirm","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"lovers\", state: false, player: args[1]});"}],"text":"^(\\w+) shakes \\w+ head and a look of clarity returns to \\w+ eyes\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"stand\", player: args[1]});"}],"text":"^(\\w+) stands up\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Whispering Madness Lost","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"whisperingmadness\", player: args[1]});"}],"text":"^(\\w+) ceases \\w+ violent trembling\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Slime Lost","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeAff({id: \"slimeobscure\", player: args[1]});"}],"text":"^(\\w+) finally rids \\w+ of the slime covering \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"slickness\", state: false, player: args[1]});"}],"text":"^(\\w+) applies a sileris berry to \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Aff Confirms","enabled":true,"items":[{"type":"trigger","name":"Paralysis 3P 2","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"paralysis\", state: true, player: args[1]});"}],"text":"^Horror overcomes (\\w+?)'s face as \\w+ body stiffens into paralysis\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Paralysis 3P 1","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"paralysis\", state: true, player: args[1]});"}],"text":"^Horror overcomes the face of (\\w+?) as \\w+ body locks in paralysis\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Masochism 3P 1","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"masochism\", player: args[1], state: true});"}],"text":"^(\\w+) smiles as \\w+ rams \\w+ fist into \\w+ jaw\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Masochism 3P 2","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"masochism\", player: args[1], state: true});"}],"text":"^(\\w+) uses \\w+ right foot to stomp on \\w+ left as hard as possible\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Masochism 3P 3","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"masochism\", state: true, player: args[1]});"}],"text":"^With the heel of \\w+ palm, (\\w+) smacks \\w+ upside the head\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Impatience 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"impatience\", player: args[1]});"}],"text":"^(\\w+) shuffles \\w+ feet in boredom\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Darkshade Tick","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"darkshade\", player: args[1], state: true});"}],"text":"^(\\w+) lets out a piercing scream, as if wounded by the very sunlight\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Nausea Tick","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"nausea\", player: args[1], state: true});"}],"text":"^(\\w+) doubles over, vomiting violently\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Claustrophobia 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"claustrophobia\", state: true, player: args[1]});"}],"text":"^(\\w+) begins to pant in terror\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Agoraphobia 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"agoraphobia\", state: true, player: args[1]});"}],"text":"^(\\w+) is gripped with fear, staring out with terrified eyes\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Confusion 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"confusion\", state: true, player: args[1]});"}],"text":"^(\\w+) looks about bemusedly\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shyness 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"shyness\", state: true, player: args[1]});"}],"text":"^(\\w+) trembles with fear\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Dementia 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"dementia\", state: true, player: args[1]});"}],"text":"^(\\w+) stares about \\w+ frenziedly, wild-eyed\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"prone\", player: args[1]});"}],"text":"^(\\w+)'s eyes close suddenly as \\w+ falls asleep\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"slickness\", player: args[1]});\ninsight.removeDef({id: \"fangbarrier\", player: args[1]});"}],"text":"^The protective coating covering the skin of (\\w+) sloughs off\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"asdfasdf","enabled":true,"items":[]}]},{"type":"group","name":"Target Defences","enabled":true,"items":[{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"shield\", player: args[1]});"}],"text":"^The magical shield surrounding \\w+ makes that impossible\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"shield\", player: args[1]});"}],"text":"^A dizzying beam of energy strikes you as your attack rebounds off of \\w+?'s shield\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"fangbarrier\", player: args[1]});"}],"text":"^A nearly invisible magical shield forms around (\\w+?)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeDef({id: \"shield\", player: args[1]});"}],"text":"^(\\w+) has no shield for your gremlin to shatter, occultist\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"fangbarrier\", player: args[1]});"}],"text":"^A supple purple shell of sileris berry juice has formed around (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"insomnia\", player: args[1]});"}],"text":"^(\\w+) clenches \\w+ fists and grits \\w+ teeth\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Skills","enabled":true,"items":[{"type":"group","name":"Domination","enabled":true,"items":[{"type":"trigger","name":"Command Chimera Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (!insight.nextLine(insight.target.id)) {\n\tinsight.confirmAff({id: \"hallucinations\", state: true, player: args[1]});\n}\ninsight.confirmAff({id: \"undeaf\", state: true, player: args[1]});"}],"text":"^A chimera lets out a concussive roar at (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Chimera Miss","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"undeaf\", state: false, player: args[1]});"}],"text":"^A chimera throws forward all three of its heads and roars at (\\w+), but \\w+ seems completely unphased\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Sycophant","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Doubles focus balance for 60 seconds.\ninsight.addAff({id: \"weakenedmind\", player: args[1]});"}],"text":"^You command your sycophant to weaken the mind of (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Bloodleech","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"haemophilia\", player: args[1]});"}],"text":"^You command your bloodleech to corrupt the blood of (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Firelord","enabled":true,"actions":[{"type":"script","enabled":true,"script":"const wm = insight.hasAff({id:'whisperingmadness'});\nconst ml = insight.hasAff({id:'manaleech'});\nconst hl = insight.hasAff({id:'healthleech'});\n\nif (wm && !ml && !hl) { insight.confirmAff({id: \"whisperingmadness\", state: true, player: args[1]}); }\nif (!wm && ml && !hl) { insight.confirmAff({id: \"manaleech\", state: true, player: args[1]}); }\nif (!wm && !ml && hl) { insight.confirmAff({id: \"healthleech\", state: true, player: args[1]}); }\n\ninsight.convertAff({id: \"whisperingmadness\", to: \"hallucinations\"});\ninsight.convertAff({id: \"manaleech\", to: \"anorexia\"});"}],"text":"^You command your firelord to bring down a portion of the power of Pyradius against (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Firelord Miss","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"anorexia\", state: false, player: args[1]});\ninsight.confirmAff({id: \"manaleech\", state: false, player: args[1]});\ninsight.confirmAff({id: \"healthleech\", state: false, player: args[1]});"}],"text":"^(\\w+) does not labour under any afflictions that Pyradius may warp\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Bubonis","enabled":false,"actions":[{"type":"script","enabled":true,"script":"//First message. Redundant with hit message."}],"text":"^You command your bubonis to bring the plague to (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Bubonis Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Gives asthma, or slickness if they already have asthma\n//The protective coating covering the skin of Austere sloughs off.\nif (insight.hasDef({id: \"sileris\", player: args[1]})) {\n if (\n insight.nextLine().includes(\"The protective coating covering the skin of\")\n ) {\n insight.confirmAff({ id: \"asthma\", player: args[1], state: true });\n insight.addAff({ id: \"slickness\", player: args[1] });\n } else {\n insight.addAff({ id: \"asthma\", player: args[1], state: true });\n }\n} else {\n if (insight.hasAff({id: \"asthma\", player: args[1], probability: 0.66})) {\n insight.addAff({ id: \"slickness\", player: args[1] });\n } else {\n insight.addAff({ id: \"asthma\", player: args[1], state: true });\n }\n}"}],"text":"^A bubonis reaches out and strokes the side of (\\w+)'s face, and boils form and rupture in an instant as (?:she|he) begins hacking up black fluid\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Humbug","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Delivered addiction\ninsight.addAff({id: \"addiction\", player: args[1]});"}],"text":"^You command your humbug to instill a ravenous hunger in (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Hound","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"weariness\", player: args[1]});"}],"text":"^You command your hound to erode the will of (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Crone","enabled":false,"actions":[{"type":"script","enabled":true,"script":"//First message. Reduant with second message\nnexSys.eventStream.raiseEvent(`broken${args[1]}${args[2]}GotInsightAff`);"}],"text":"^You command your crone to wither the (left|right) (arm|leg) of (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Crone Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here\ninsight.addAff({id:`broken${args[1]}${args[2]}`});"}],"text":"^A withered crone reaches out to caress the (left|right) (leg|arm) of (\\w+), the limb withering away under her gnarled grasp\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Storm","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Gives vertigo\ninsight.addAff({id: \"vertigo\", player: args[1]});"}],"text":"^You command your chaos storm to bring down the curse of vertigo upon (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Slime Got","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// Paralysis if Asthma\n// You command your slime to envelop Davok.\n// Horror overcomes Davok's face as his body stiffens into paralysis.\n\ninsight.addAff({id: \"slimeobscure\", player: args[1]});\n\nlet re = /^Horror overcomes \\w+'s face as \\w+ body stiffens into paralysis\\.$/;\nif (re.test(insight.nextLine())) {\n insight.confirmAff({id: \"asthma\", player: args[1], state: true});\n}"}],"text":"^You command your slime to envelop (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Worm","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// 20 second duration. Recurring healthleech.\ninsight.addAff({ id: \"palpatarfeed\", player: args[1] });"}],"text":"^You command your worm to infest (\\w+) with maggots\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Worm Tick","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Delivered Healthleech\ninsight.addAff({id: \"healthleech\", player: args[1]});"}],"text":"^Many somethings writhe beneath the skin of (\\w+), and the sickening sound of chewing can be heard\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Minion Miss","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStatus({id: \"enlightened\", value: false, player: args[1]});"}],"text":"^A minion of chaos thrusts a hand in the direction of (\\w+), but nothing seems to happen\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Gremlin Fail","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeDef({id: 'shield', player: args[1]});"}],"text":"^You command your gremlin to shatter the defences surrounding (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Command Abomination Fail","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeAff({ id: \"cleanseaura\", player: args[1] });"}],"text":"^An eldritch abomination cannot discern anything through the natural defences of \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Gremlin Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"dizziness\", player: args[1]});"}],"text":"^The gremlin races around and between the legs of (\\w+), \\w+ eyes tracking it as \\w+ sways unsteadily\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Gremlin Hit 2","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// Target already has dizziness. Knocked off balance.\ninsight.confirmAff({id: \"dizziness\", player: args[1], state: true});"}],"text":"^The gremlin races between the legs of (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Bubonis","enabled":false,"actions":[{"type":"script","enabled":true,"script":"//Bubonis latched"}],"text":"^Your bubonis entity scuttles over to (\\w+) and then suddenly leaps up, latching itself to \\w+ head\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Bubonis Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.smartAffs({ids: insight.occultist.bubonis, player: args[1]})"}],"text":"^You sense the malignant glee of your bubonis as it infests (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Worm","enabled":false,"actions":[{"type":"script","enabled":true,"script":"//Worm attached"}],"text":"^A chaos worm begins burrowing into (\\w+)'s belly\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Worm Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"nausea\", player: args[1]});"}],"text":"^The worm burrowing into (\\w+) writhes and undulates\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Chimera Sleep","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^The chimera's dragon head exhales a cloud of gas at (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Chimera Prone","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"prone\", player: args[1]});"}],"text":"^The chimera's goat head rams into (\\w+) and knocks \\w+ sprawling\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Chimera Undeaf","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"undeaf\", player: args[1]});"}],"text":"^(\\w+) is startled to attention by the roaring of the chimera's lion head\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Chimera Stun","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"undeaf\", player: args[1]});\ninsight.addAff({id: \"prone\", player: args[1]});"}],"text":"^(\\w+) is stunned by the roaring of the chimera's lion head\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Crone Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: `broken${args[2]}${args[3]}`, player: args[1]});"}],"text":"^The crone withers (\\w+)'s (left|right) (arm|leg) into uselessness\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Firelord Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"burning\", player: args[1]});"}],"text":"^(\\w+) cries out in horror as \\w+ body erupts into flames!$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Soulmaster","enabled":false,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^Your soulmaster lets loose a horrible scream as it lets part of its being flow into (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Soulmaster Control","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStatus({id: \"soulmaster\", value: true, player: args[1]});"}],"text":"^You sense that the soulmaster entity is in control of (\\w+)'s being\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Soulmaster no control","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStatus({id: \"soulmaster\", value: false, player: args[1]});"}],"text":"^Your soulmaster is wrestling for control of (\\w+)'s soul and cannot command \\w+ right now\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Soulmaster command","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStatus({id: \"soulmaster\", value: false, player: args[1]});"}],"text":"^You order the soulmaster entity to manipulate (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//100 bleed\n//220 bleed if haemophilia"}],"text":"^The bloodleech clinging to (\\w+) expands and contracts with a sickening sound\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^You sense your sycophant begin to feed\\.\\.\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^Your humbug entity leaps at (\\w+)'s throat\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^Your green slime entity quickly envelops","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Occultism","enabled":true,"items":[{"type":"trigger","name":"Cleanseaura","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//^A look of sudden concern flits across the visage of (\\w+)\\.$\n//^The energy flickers and fades with no visible change\\.$\n\nconst cleanseAuraConfirm = nexusclient.current_block.find(e => e.line.includes(\"A look of sudden concern\"));\n\nif (cleanseAuraConfirm) {\n\tinsight.addAff({id: \"cleanseaura\", player: args[1]});\n} else {\n\tinsight.removeAff({id: \"cleanseaura\", player: args[1]});\n}"}],"text":"^Reaching out with your own aura, you touch the aura of (\\w+), attempting to strip away its natural defences\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Ague Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.hasDef({id: \"caloric\", player: args[1]})) {\n\tinsight.removeDef({id: \"caloric\", player: args[1]})\n} else if (insight.hasAff({id: \"shivering\", player: args[1], probability: 1})) {\n\tinsight.addAff({id: \"frozen\", player: args[1]});\n} else {\n\tinsight.addAff({id: \"shivering\", player: args[1]});\n}"}],"text":"^You create a tendril of icy blue light that lashes out at (\\w+) and wraps around \\w+ aura\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Attend","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"undeaf\", player: args[1]});\ninsight.addAff({id: \"unblind\", player: args[1]});"}],"text":"^Focusing your will, you exert your aura at (\\w+) and snap your fingers, forcing \\w+ to pay attention to you\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Attend Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Removed deafness and blindness\ninsight.addAff({id: \"undeaf\", player: args[1]});\ninsight.addAff({id: \"unblind\", player: args[1]});"}],"text":"^(\\w+)'s eyes flicker open and \\w+ head snaps up\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Enervate","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStatus({id: \"mana\", value: parseInt(insight.getStatus({id: \"mana\"}) * (1 - 0.211))})\ninsight.setStatus({id: \"manaPercent\", value: (insight.getStatus({id: \"manaPercent\"}) - 21.1).toFixed(1)});"}],"text":"^You bend your will to send out a tendril of your aura to attach to (\\w+)'s aura, enervating \\w+ mental energy into your own\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shrivel Arm","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Always hits Right then Left\nif (insight.hasAff({id: \"brokenrightarm\", player: args[1], probability: 1})) {\n\tinsight.addAff({id: \"brokenleftarm\", player: args[1]});\n} else {\n\tinsight.addAff({id: \"brokenrightarm\", player: args[1]});\n}"}],"text":"^You reach out and stroke an arm of (\\w+), and it withers away\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shrivel Leg","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Always hits Right then Left\nif (insight.hasAff({id: \"brokenrightleg\", player: args[1], probability: 1})) {\n\tinsight.addAff({id: \"brokenleftleg\", player: args[1]});\n} else {\n\tinsight.addAff({id: \"brokenrightleg\", player: args[1]});\n}"}],"text":"^You reach out and grasp (\\w+)'s leg in an iron grip, and it shrivels feebly\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shrivel Targetted","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: `broken${args[2]}${args[3]}`, player: args[1]});"}],"text":"^You touch (\\w+)'s (right|left) (arm|leg), and it shrivels away\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Devolve Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"shyness\", player: args[1]});\ninsight.addAff({id: \"disloyalty\", player: args[1]});"}],"text":"^Feathers sprout up all over (\\w+)'s face, and the lips thicken and lengthen into a small beak\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Devolve Hit 2","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"shyness\", player: args[1]});\ninsight.addAff({id: \"disloyalty\", player: args[1]});"}],"text":"^(\\w+)'s skin suddenly darkens to a deep green and is covered with warts\\. As \\w+'s face widens, \\w+ mouth stretches to ridiculous proportions\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Instill","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//asthma, clumsiness, healthleech, sensitivity, slickness, paralysis, or darkshade.\ninsight.addAff({id: args[2], player: args[1]});"}],"text":"^You make a sharp gesture toward (\\w+), disrupting \\w+ aura with the (\\w+) affliction\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Chaosrays Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Antoninus is hit by a orange, blue, and green ray.\n//Antoninus is hit by a red, violet, and indigo ray.\n//Antoninus is hit by a orange ray.\n//Antoninus is hit by a orange and red ray.\nlet chaosColors = {\n\tindigo() {insight.addAff({id: \"stupidity\", player: args[1]});},\n orange() {insight.addAff({id: \"paralysis\", player: args[1]});},\n violet() {\n \tif (insight.hasDef({id: \"speed\", player: args[1]})) {\n \tinsight.removeDef({id: \"speed\", player: args[1]});\n } else {\n \tinsight.addAff({id: \"aeon\", player: args[1]});\n }\n },\n blue() {/*cold damage*/},\n green() {/*healing*/},\n yellow() {/*electric damage*/},\n red() {/*fire damage*/}\n}\nlet colors = args[2].replace(' and ', ',').replaceAll(' ', '').replace(',,', ',').split(',')\ncolors.forEach(e => chaosColors[e]());"}],"text":"^(\\w+) is hit by a (.+) ray\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Whispering Madness Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"whisperingmadness\", player: args[1]});"}],"text":"^You pass your hand in front of (\\w+)\\. \\w+ trembles and \\w+ eyes widen in terror\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Whispering Madness Miss","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.occultist.whisperingmadness.forEach(e => insight.removeAff({id: e, player: args[1]}));"}],"text":"^You pass your hand in front of (\\w+)\\. \\w+ shakes \\w+ head as if clearing \\w+ mind\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Whispering Madness Hit Other","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"whisperingmadness\", player: args[1]});"}],"text":"^\\w+ passes \\w+ hand in front of (\\w+)\\. \\w+ trembles and \\w+ eyes widen in terror\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Whispering madness proc","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"whisperingmadness\", player: args[1], state: true});"}],"text":"^(\\w+) trembles and \\w+ eyes widen in terror\\. \\w+ looks around \\w+ as if searching for something that isn't there\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Truename Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeDef({id: \"speed\", player: args[1]});\ninsight.addAff({id: \"aeon\", player: args[1]});"}],"text":"^Drawing back with a knowing smirk, you utter the truename of (\\w+), who suddenly becomes very still and bleeds from \\w+ eyes and ears\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Unnamable Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Hit with unnamable"}],"text":"^(\\w+) pales as the blood drains from \\w+ face\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Unnamable Hit Confirm","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Hit with unnamable. 1-3 afflictions\nfor(let i = 0; i < args[2]; i++) {\n\tinsight.smartAffs({ids: [\"confusion\", \"stupidity\", \"dementia\"], player: args[1]});\n}"}],"text":"^(\\w+) has been struck down by (\\d) curses of the unnamable\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Enlighten","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.nextLine('You see')) {\n insight.setStatus({id: \"enlightened\", value: true, player: args[1]});\n}"}],"text":"^You place both hands on either side of (\\w+)'s head and stare straight into \\w+ eyes\\. Summoning all your knowledge of the occult mysteries, you will your knowledge into \\w+'s mind\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStatus({id: \"enlightened\", value: true, player: args[1]});"}],"text":"^You see (.+) yell, \"No, it cannot be true! I cannot accept it! I beg of you to make it stop!\"$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStatus({id: \"enlightened\", value: true, player: args[1]});"}],"text":"^You see (.+) shout, \"No, it cannot be true! I cannot accept it! I beg of you to make it stop!\"$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Regress 3P Anorexia","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"anorexia\", player: args[1]});\ninsight.confirmAff({id: \"prone\", player: args[1], state: true});"}],"text":"^The face of (\\w+) turns a particularly vibrant shade of green\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Regress 3P Prone","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"prone\", player: args[1]});\nfor (let i = current_block.indexOf(current_line); i < current_block.length-1; i++) {\n current_block[i].gag = true;\n if (current_block[i]?.line.indexOf('You sense that the mana of') != -1) {\n \t\tbreak;\n }\n}"}],"text":"^The legs of (\\w+) snap out from under \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Readaura Start","enabled":true,"actions":[{"type":"script","enabled":true,"script":"nexusclient.reflexes().enable_reflex(nexusclient.reflexes().find_by_name(\"group\", \"Readaura\", false, false, \"insight3\"));\nfor (let i = nexusclient.current_block.indexOf(nexusclient.current_line); i < nexusclient.current_block.length-1; i++) {\n nexusclient.current_block[i].gag = true;\n if (nexusclient.current_block[i]?.line.includes('You sense that the mana of')) {\n \t\tbreak;\n }\n}\nconst defs = ['insomnia', 'kola', 'cloak', 'speed', 'rebounding', 'fangbarrier'];\ndefs.forEach(def => insight.removeDef({id: def}));\nconst block = nexusclient.current_block;"}],"text":"^Studying the aura of (\\w+), you look for traces of anything that may be protecting it\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"group","name":"Readaura","enabled":false,"items":[{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeAff({id: \"undeaf\"})"}],"text":"^\\w+ is deaf\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeAff({id: \"unblind\"})"}],"text":"^\\w+ is blind\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"insomnia\"})"}],"text":"^\\w+ has insomnia, and cannot easily go to sleep\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"speed\"})"}],"text":"^\\w+ sense of time is heightened, and \\w+ reactions are speeded\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"kola\"})"}],"text":"^\\w+ is feeling extremely energetic\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"cloak\"})"}],"text":"^\\w+ is surrounded by a cloak of protection\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"fangbarrier\"})"}],"text":"^\\w+ is coated in an insulating unguent\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"rebounding\"})"}],"text":"^\\w+ is protected from hand-held weapons with an aura of rebounding\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.readAuraConfirm({p: args[2], m: args[3], player: args[1]});"}],"text":"^You perceive that (\\w+) suffers from (\\d+) physical afflictions and (\\d+) mental afflictions\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"nexusclient.reflexes().disable_reflex(nexusclient.reflexes().find_by_name(\"group\", \"Readaura\", false, false, \"insight3\"));\ninsight.setStatus({id: \"mana\", value: parseInt(args[2])});\ninsight.setStatus({id: \"manaMax\", value: parseInt(args[3])});\ninsight.setStatus({id: \"manaPercent\", value: parseFloat(args[2]/args[3]*100).toFixed(1)});"}],"text":"^You sense that the mana of (\\w+) stands at (\\d+) of a maximum (\\d+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]}]},{"type":"group","name":"Tarot","enabled":true,"items":[{"type":"trigger","name":"Hit Lovers","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Lovers affliction\ninsight.addAff({id: \"lovers\", player: args[1]});"}],"text":"^You throw a Lovers tarot at (\\w+) and as it strikes true, a look of utter love covers (?:her|his) face\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"TODO: Hit Hangedman","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//bound"}],"text":"^You toss the Hanged Man tarot card at (\\w+) and as it reaches (?:her|him), a huge mass of rope bursts out of it to entrap and hinder \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Hit Justice","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Justice affliction\ninsight.addAff({id: \"justice\", player: args[1]});"}],"text":"^With a prayer to Miramar, the Just, you fling your tarot card at (\\w+)\\. A set of scales appears above \\w+ head and one side of the scale quickly descends\\. Justice will be done\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Hit Aeon","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Speed stripped after 2 second delay.\ninsight.removeDef({id: \"speed\", player: args[1]});"}],"text":"^You stand an Aeon tarot on your palm, and blow it lightly at (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Hit Aeon Speed","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Speed stripped\ninsight.removeDef({id: \"speed\", player: args[1]});"}],"text":"^(\\w+) suddenly seems less dexterous, \\w+ reactions becoming noticeably slower\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Hit Aeon Aeon","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Aeon\ninsight.removeDef({id: \"speed\", player: args[1]});\ninsight.addAff({id: \"aeon\", player: args[1]});"}],"text":"^Standing the Aeon on your open palm, you blow it lightly at (\\w+) and watch as it seems to slow \\w+ movement through the time stream\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Hit Ruinate Lovers","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Manaleech\ninsight.addAff({id: \"manaleech\", player: args[1]});"}],"text":"^The card twists and writhes as it leaps from your hand towards (\\w+), the image resolving into a twisted visage crossed with a bloody knife\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"TODO: Hit Ruinate Justice","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Converted paralysis, sensitivity, healthleech, haemophilia, weariness, asthma, or clumsiness into broken limbs.\n// what order does it convert in?\n// is it always the same order?"}],"text":"^As you fling a card at (\\w+), the scales of justice upon its surface twists and cracks as the image becomes something indefinable, but vastly more sinister\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"TODO: Hit Ruinate Justice Break","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//21:55:21.857 Pamxen violently spasms as orange light plays across his body.\n//21:55:21.857 An audible crack emanates from the bones in the left arm, left leg, right arm, and right leg of Pamxen.\n//21:55:21.857 The broken legs of Pamxen give way, and he collapses to the ground.\nlet limbs = args[1];\nlimbs = limbs.replace(\" and\", \",\");\nconsole.log(limbs);\nlimbs = limbs.replace(\",,\", \",\");\nconsole.log(limbs);\nlimbs = limbs.replaceAll(\" \", \"\");\nconsole.log(limbs);\nlimbs = limbs.split(\",\");\nconsole.log(limbs);\nlimbs.forEach(limb => insight.addAff({id: `broken${limb}`, player: args[2]}))\n"}],"text":"^An audible crack emanates from the bones in the (.+) of (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Death Rub","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.hasDef({id: \"caloric\"})) {\n insight.removeDef({id: \"caloric\"});\n} else { \n insight.addAff({id: \"shivering\", player: args[1]});\n}\n"}],"text":"^You rub the image of Death on (\\w+) and feel a satisfying electrical charge run up your arm\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Moon","enabled":true,"actions":[{"type":"script","enabled":true,"script":""}],"text":"^As you fling the Moon tarot at (\\w+), it turns an ominous, sickly red, before striking \\w+ in the head\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Shadowmancy","enabled":true,"items":[{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: args[2], player: args[1]});"}],"text":"^You determine that (\\w+) is suffering from (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Leach Shadow","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"parasite\", player: args[1], state: true});\ninsight.confirmAff({id: \"healthleech\", player: args[1], state: true});\ninsight.confirmAff({id: \"manaleech\", player: args[1], state: true});"}],"text":"^As the scythe comes away, the writhing shadow of (\\w+) clings to the weapon\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Leach","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.smartAffs({ids: [\"parasite\", \"healthleech\", \"manaleech\"], player: args[1], ordered: true});"}],"text":"^As the weapon strikes (\\w+), \\w+ seems greatly diminished\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Reap","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// Need logic for adding envenoms.\nif (insight.envenom1) {\n insight.addAff({id: insight.evenom1, player: args[1]});\n insight.envenom1 = false;\n}"}],"text":"^You unleash a vicious reaping blow at (\\w+) with a scythe of shadows\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Degeneration","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.smartAffs({ids: [\"clumsiness\", \"weariness\", \"paralysis\"], player: args[1], ordered: true});"}],"text":"^As the weapon strikes (\\w+), the contact area begins to rot before your eyes\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Timeloop","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: 'timeloop', player: args[1]});"}],"text":"^Grey fog begins to rise from the suddenly panicked-looking (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Voicecraft","enabled":true,"items":[{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"impatience\", player: args[1]})"}],"text":"^Composing a few clever lines in your head, you quickly sing a jaunty limerick at (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStatus({id: \"hp\", value: parseInt(args[2])});\ninsight.setStatus({id: \"hpMax\", value: parseInt(args[3])});\ninsight.setStatus({id: \"hpPercent\", value: parseFloat(args[2]/args[3]*100).toFixed(1)});"}],"text":"^You glance over (\\w+) and see that \\w+ health is at (\\d+)/(\\d+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]}],"description":"Khaseem's insight into afflictions"}
|
|
1
|
+
{"type":"group","name":"insight3","enabled":true,"items":[{"type":"function","name":"SCRATCH","enabled":true,"code":"/*\nVersion: 0.2.9\nDate: 20241004\n- The general curative triggers could be changed to functions firing off of nexSkills (eat/smoke/salve/etc)\n-- Maybe easier to troubleshoot as triggers?\n-- Technically, redundant pattern matching\n\n- Should add a \"gate\" to the Cure confirms to prevent possible illusions.\n-- Gate on when any cure is used\n-- Gate off on prompt? On time (1s?)?\n\n- Should we add a constraint on the Aff confirms to only accept if we thought they had the aff at all?\n-- possibly cut down on illusions?\n-- Currently confirmAff will convert to addAff if you confirm an aff that wasn't being tracked.\n--- Do we want this?\n\n- There is a school of thought that aff tracking should always assume the best case scenario for the attacker.\n-- The theory being if you always assume uncertainty you will never have green light to go for a kill sequence.\n-- Example would be target has Asthma and Clumsiness and eats kelp.\n--- You're going for a lock and now have a 50/50 probability they still have asthma.\n--- This school of thought prescribes that you assume they have asthma and go for the lock.\n--- I think insight should provide the player the information as accurately as possible, and they can code those types of decisions into their own offense.\n--- Should we reconsider this?\n*/"},{"type":"function","name":"onInstall","enabled":true,"code":"nexusclient.reflexes().run_function('esLoad', {}, 'insight3');"},{"type":"function","name":"onUninstall","enabled":true,"code":"// Place any code here you'd like to autorun when the package is uninstalled"},{"type":"function","name":"onLoad","enabled":true,"code":"nexusclient.reflexes().disable_reflex(nexusclient.reflexes().find_by_name('group', 'Target Curing', true, false, 'insight3'));\nnexusclient.reflexes().disable_reflex(nexusclient.reflexes().find_by_name('group', 'Affliction Indicators', true, false, 'insight3'));\nnexusclient.reflexes().disable_reflex(nexusclient.reflexes().find_by_name('group', 'Target Defences', true, false, 'insight3'));\nnexusclient.reflexes().disable_reflex(nexusclient.reflexes().find_by_name('group', 'Skills', true, false, 'insight3'));\nnexusclient.reflexes().disable_reflex(nexusclient.reflexes().find_by_name('group', 'Prep', true, false, 'insight3'));\nnexusclient.reflexes().disable_reflex(nexusclient.reflexes().find_by_name('group', 'Queues', true, false, 'insight3'));"},{"type":"function","name":"esLoad","enabled":true,"code":"/* Run all skill functions \"pseudo triggers\"\n// Get the insight3 package reference\nconst insightPackage = nexusclient.packages().get('insight3');\n// only check the Skills group\nconst skillsGroup = insightPackage.items.find(e => e.name === \"Skills\");\n// Array of all groups under Skills, filter out triggers/aliases\nconst groups = skillsGroup.items.filter(e => e.type === \"group\");\n//Run any functions within each group\ngroups.forEach(group => {\n const funcs = group.items.filter(e => e.type === \"function\");\n funcs.forEach(f => f.exec())\n})\n*/\nconst enableGroups = function() {\n nexusclient.reflexes().enable_reflex(nexusclient.reflexes().find_by_name('group', 'Target Curing', true, false, 'insight3'));\n nexusclient.reflexes().enable_reflex(nexusclient.reflexes().find_by_name('group', 'Affliction Indicators', true, false, 'insight3'));\n nexusclient.reflexes().enable_reflex(nexusclient.reflexes().find_by_name('group', 'Target Defences', true, false, 'insight3'));\n nexusclient.reflexes().enable_reflex(nexusclient.reflexes().find_by_name('group', 'Skills', true, false, 'insight3'));\n nexusclient.reflexes().enable_reflex(nexusclient.reflexes().find_by_name('group', 'Prep', true, false, 'insight3'));\n nexusclient.reflexes().enable_reflex(nexusclient.reflexes().find_by_name('group', 'Queues', true, false, 'insight3'));\n}\n\//nenableGroups();\n//return;\n\nimport('https://unpkg.com/nexsight/insight.min.js').then(() => {\n console.log('insightDisplay then()');\n enableGroups();\n})\n.catch(error => {\n console.error('Error during inisght import:', error);\n });"},{"type":"alias","name":"","enabled":true,"actions":[{"type":"function","enabled":true,"fn":"esLoad"}],"text":"insight.reload","matching":"exact","whole_words":true,"case_sensitive":true,"prefix_suffix":true},{"type":"group","name":"Target Curing","enabled":true,"items":[{"type":"group","name":"Curatives","enabled":true,"items":[{"type":"trigger","name":"Antimony","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'antimony'})"}],"text":"^(\\w+) eats (?:a ginger root|an antimony flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Argentum","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'argentum'})"}],"text":"^(\\w+) eats (?:a lobelia seed|an argentum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Arsenic","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'arsenic'})"}],"text":"^(\\w+) eats (?:some bayberry bark|an arsenic pellet)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Aurum","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'aurum'})"}],"text":"^(\\w+) eats (?:a piece of kelp|an aurum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Cuprum","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'cuprum'});"}],"text":"^(\\w+) eats a (?:bellwort flower|cuprum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Calamine","enabled":true,"actions":[{"type":"script","enabled":true,"script":"let insightDeafnessTimer\nclearTimeout(insightDeafnessTimer);\ninsightDeafnessTimer = setTimeout(() => { \n insight.usedCure({player: args[1], id: 'calamine'}); \n}, 3000);"}],"text":"^(\\w+) eats a (?:hawthorn berry|calamine crystal)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Ferrum","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'ferrum'})"}],"text":"^(\\w+) eats a (?:ginseng root|ferrum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Magnesium","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'magnesium'})"}],"text":"^(\\w+) eats a (?:bloodroot leaf|magnesium chip)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Plumbum","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'plumbum'})"}],"text":"^(\\w+) eats a (?:goldenseal root|plumbum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Stannum","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({player: args[1], id: 'stannum'})"}],"text":"^(\\w+) eats (?:some prickly ash bark|a stannum flake)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Potash","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.adjustStat({id: \"mana\", value: 0.8, player: args[1]});\ninsight.adjustStat({id: \"hp\", value: 0.8, player: args[1]});"}],"text":"^(\\w+) eats (?:some irid moss|a potash crystal)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Salve Body","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// Epidermal to body for anorexia\n// Mending to body for burning\nif (insight.hasAff({id: 'anorexia', player: args[1]})) {\n insight.usedCure({player: args[1], id: 'epidermal to body'});\n} else if (insight.hasAnAff({ids: [\"hypothermia\",\n \"heartseed\",\n \"serioustrauma\",\n \"mildtrauma\",\n \"calcifiedtorso\"], player: args[1]})) {\n\tinsight.usedCure({id: \"restoration to body\", player: args[1]});\n} else {\n insight.usedCure({player: args[1], id: 'mending to body'});\n}"}],"text":"^(\\w+) takes some salve from a vial and rubs it on \\w+ body\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Salve Torso","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// Epidermal to body for anorexia\n// Mending to body for burning\nif (insight.hasAff({id: 'anorexia', player: args[1]})) {\n insight.usedCure({player: args[1], id: 'epidermal to body'});\n} else if (insight.hasAnAff({ids: [\"hypothermia\",\n \"heartseed\",\n \"serioustrauma\",\n \"mildtrauma\",\n \"calcifiedtorso\"], player: args[1]})) {\n\tinsight.usedCure({id: \"restoration to body\", player: args[1]});\n} else {\n insight.usedCure({player: args[1], id: 'mending to body'});\n}"}],"text":"^(\\w+) takes some salve from a vial and rubs it on \\w+ torso\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Salve Head","enabled":true,"actions":[{"type":"script","enabled":true,"script":"\nif (insight.hasAnAff({ids: ['damagedhead', 'mangledhead'], player: args[1]})) {\n insight.usedCure({id: \"restoration to head\", player: args[1]});\n} else if (insight.hasAff({id: 'unblind', player: args[1]})) {\n insight.addAff({player: args[1], id: 'undeaf'});\n} else if (insight.hasAff({id: 'undeaf', player: args[1]})) {\n\tinsight.addAff({player: args[1], id: 'undeaf'});\n}"}],"text":"^(\\w+) takes some salve from a vial and rubs it on \\w+ head\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Salve Arms","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Imyrr takes some salve from a vial and rubs it on his arms.\nif (insight.hasAnAff({ids: [\"damagedleftarm\", \"damagedrightarm\", \"mangledleftarm\", \"mangledrightarm\"], player: args[1]})) {\n\tinsight.usedCure({id: \"restoration to arms\", player: args[1]});\n} else {\n\tinsight.usedCure({id: \"mending to arms\", player: args[1]});\n}"}],"text":"^(\\w+) takes some salve from a vial and rubs it on \\w+ arms\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Salve Legs","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Imyrr takes some salve from a vial and rubs it on his legs.\nif (insight.hasAnAff({ids: [\"damagedleftleg\", \"damagedrightleg\", \"mangledleftleg\", \"mangledrightleg\"], player: args[1]})) {\n\tinsight.usedCure({id: \"restoration to legs\", player: args[1]});\n} else {\n\tinsight.usedCure({id: \"mending to legs\", player: args[1]});\n}"}],"text":"^(\\w+) takes some salve from a vial and rubs it on \\w+ legs\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Salve Skin","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Imyrr takes some salve from a vial and rubs it on his skin.\n// Untargetted apply.\n// Caloric, Mass\nif (insight.hasAnAff({ids: [\"frozen\", \"shivering\"], player: args[1]})) {\n\tinsight.usedCure({id: \"caloric\", player: args[1]});\n} else {\n\tinsight.addDef({id: \"insulation\", player: args[1]});\n}"}],"text":"^(\\w+) takes some salve from a vial and rubs it on \\w+ skin\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Smoke Pipe","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.hasAnAff({ids: [\"aeon\", \"deadening\", \"tension\", \"unweavingspirit\"], player: args[1]})) {\n\tinsight.usedCure({id: \"cinnabar\", player: args[1]});\n} else if (insight.hasAnAff({ids: [\"disloyalty\", \"hellsight\", \"manaleech\", \"slickness\"], player: args[1]})) {\n\tinsight.usedCure({id: \"realgar\", player: args[1]});\n}"}],"text":"^(\\w+) takes a long drag off \\w+ pipe\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Tree Tattoo","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"tree\", player: args[1]});"}],"text":"^(\\w+) touches a tree of life tattoo\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Focus","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"focus\", player: args[1]});\n\neventStream.raiseEvent('focusLostInsightTracker');"}],"text":"^A look of extreme focus crosses the face of (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Restore","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeAff({id: \"brokenrightarm\", player: args[1]});\ninsight.removeAff({id: \"brokenrightleg\", player: args[1]});\ninsight.removeAff({id: \"brokenleftarm\", player: args[1]});\ninsight.removeAff({id: \"brokenleftleg\", player: args[1]});"}],"text":"^(\\w+) crackles with blue energy that wreathes itself about \\w+ limbs\\.$","matching":"regexp","whole_words":false,"case_sensitive":false}]},{"type":"group","name":"Class Cures","enabled":true,"items":[{"type":"trigger","name":"Sun Tarot","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"sun\", player: args[1]});"}],"text":"^The globe of light illuminates (\\w+) with its brilliance\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Runewarden Sun","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"sun\", player: args[1]});"}],"text":"^A rune like a rising sun upon the ground flares, bathing (\\w+) with healing magic\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shrugging","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"shrugging\", player: args[1]});"}],"text":"^(\\w+?) hunches \\w+ shoulders and lets out a soft hiss\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"generic\", player: args[1]});"}],"text":"^(\\w+) is surrounded in a cool, refreshing mist\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"generic\", player: args[1]});"}],"text":"^A demonic crimson glow emanates from (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Pariah Leech","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"generic\", player: args[1]});"}],"text":"^Something pulses from within the chest of (\\w+), and \\w+ seems more vital\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Dragonheal","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"sun\", player: args[1]});"}],"text":"^(\\w+) lets out a great keening, casting the impurities from \\w+ form\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Accelerate","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Pamxen grows older before your eyes.\nconst boost = insight.nextLine('grows older before your eyes.');\nif (boost) {\n insight.usedCure({id: \"accelerate\", player: args[1]});\n insight.usedCure({id: \"accelerate\", player: args[1]});\n} else {\n insight.usedCure({id: \"accelerate\", player: args[1]});\n}"}],"text":"^A look of relief comes over (\\w+) as \\w+ grows less pale\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]}]},{"type":"group","name":"Affliction Indicators","enabled":true,"items":[{"type":"group","name":"Cure Confirms","enabled":true,"items":[{"type":"trigger","name":"Stand","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.usedCure({id: \"stand\", player: args[1]});"}],"text":"^(\\w+) stands up\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Lovers Cure Confirm","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"lovers\", state: false, player: args[1]});"}],"text":"^(\\w+) shakes \\w+ head and a look of clarity returns to \\w+ eyes\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Whispering Madness Lost","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"whisperingmadness\", player: args[1], state: false});"}],"text":"^(\\w+) ceases \\w+ violent trembling\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Slime Lost","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeAff({id: \"slimeobscure\", player: args[1]});"}],"text":"^(\\w+) finally rids \\w+ of the slime covering \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Sileris","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"slickness\", state: false, player: args[1]});"}],"text":"^(\\w+) applies a (?:quicksilver droplet|sileris berry) to \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shadowmadness Lost","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"shadowmadness\", player: args[1], state: false});"}],"text":"^Lucidity returns to the eyes of (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Aff Confirms","enabled":true,"items":[{"type":"trigger","name":"Agoraphobia 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"agoraphobia\", state: true, player: args[1]});"}],"text":"^(\\w+) is gripped with fear, staring out with terrified eyes\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Claustrophobia 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"claustrophobia\", state: true, player: args[1]});"}],"text":"^(\\w+) begins to pant in terror\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Confusion 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"confusion\", state: true, player: args[1]});"}],"text":"^(\\w+) looks about bemusedly\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Darkshade Tick","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"darkshade\", player: args[1], state: true});"}],"text":"^(\\w+) lets out a piercing scream, as if wounded by the very sunlight\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Dementia 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"dementia\", state: true, player: args[1]});"}],"text":"^(\\w+) stares about \\w+ frenziedly, wild-eyed\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Epilepsy 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"epilepsy\", player: args[1], state: true});"}],"text":"^(\\w+) begins to jerk and shake violently, foaming at the mouth\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Hallucinations 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"hallucinations\", player: args[1], state: true});\ninsight.addAff({id: \"prone\", player: args[1]});"}],"text":"^(\\w+) leaps up in what is apparently an attempt at a graceful swan dive\\. \\w+ smacks headfirst into the ground\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Hypersomnia 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"hypersomnia\", state: true, player: args[1]});"}],"text":"^(\\w+) suddenly appears tired all of a sudden\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Impatience 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"impatience\", player: args[1]});"}],"text":"^(\\w+) shuffles \\w+ feet in boredom\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Masochism 3P 1","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"masochism\", player: args[1], state: true});"}],"text":"^(\\w+) smiles as \\w+ rams \\w+ fist into \\w+ jaw\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Masochism 3P 2","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"masochism\", player: args[1], state: true});"}],"text":"^(\\w+) uses \\w+ right foot to stomp on \\w+ left as hard as possible\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Masochism 3P 3","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"masochism\", state: true, player: args[1]});"}],"text":"^With the heel of \\w+ palm, (\\w+) smacks \\w+ upside the head\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Nausea Tick","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"nausea\", player: args[1], state: true});"}],"text":"^(\\w+) doubles over, vomiting violently\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Paralysis 3P 1","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"paralysis\", state: true, player: args[1]});"}],"text":"^Horror overcomes the face of (\\w+?) as \\w+ body locks in paralysis\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Paralysis 3P 2","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"paralysis\", state: true, player: args[1]});"}],"text":"^Horror overcomes (\\w+)'s face as \\w+ body stiffens into paralysis\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shyness 3P","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"shyness\", state: true, player: args[1]});"}],"text":"^(\\w+) trembles with fear\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Sleep","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"prone\", player: args[1]});"}],"text":"^(\\w+)'s eyes close suddenly as \\w+ falls asleep\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Stupidity Emotes","enabled":false,"actions":[{"type":"script","enabled":true,"script":"// insight needs to set the user's emote color. insight.state.emoteColor = \"\"#008080\"\nif (nexusclient.current_line.is_prompt) { return; }\nif (nexusclient.current_line.parsed_line.chunks.at(-2)._fg === \"#008080\") {\n const maybe = pamxenActions.find(e => args.input.includes(e));\n console.log(maybe);\n //console.log(args)\n}"}],"text":"^","matching":"regexp","whole_words":false,"case_sensitive":true}]}]},{"type":"group","name":"Target Defences","enabled":true,"items":[{"type":"trigger","name":"Shield Hit1","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"shield\", player: args[1]});"}],"text":"^A dizzying beam of energy strikes you as your attack rebounds off of (\\w+)'s shield\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shield Hit2","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"shield\", player: args[1]});"}],"text":"^The magical shield surrounding (\\w+) makes that impossible\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Shield Up","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"fangbarrier\", player: args[1]});"}],"text":"^A nearly invisible magical shield forms around (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Sileris","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"fangbarrier\", player: args[1]});"}],"text":"^A supple purple shell of sileris berry juice has formed around (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Sileris Lost","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"slickness\", player: args[1]});\ninsight.removeDef({id: \"fangbarrier\", player: args[1]});"}],"text":"^The protective coating covering the skin of (\\w+) sloughs off\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Insomina","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"insomnia\", player: args[1]});"}],"text":"^(\\w+) clenches \\w+ fists and grits \\w+ teeth\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Prismatic Lyre","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"prismatic\", player: args[1]});"}],"text":"^(\\w+) plucks at the strings on .+, and a bright, jovial tune accompanies the weaving of a prismatic barrier around \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Prismatic Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"prismatic\", player: args[1]});"}],"text":"^Your attack is repelled by the prismatic barrier surrounding (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Prismatic Lost","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeDef({id: \"prismatic\", player: args[1]});"}],"text":"^(\\w+)'s prismatic barrier dissolves into nothing\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Speed Stripped","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Speed stripped\ninsight.removeDef({id: \"speed\", player: args[1]});"}],"text":"^(\\w+) suddenly seems less dexterous, \\w+ reactions becoming noticeably slower\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Skills","enabled":true,"items":[{"type":"group","name":"Domination","enabled":true,"items":[{"type":"trigger","name":"Command Minion Miss","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStat({id: \"enlightened\", value: false, player: args[1]});"}],"text":"^A minion of chaos thrusts a hand in the direction of (\\w+), but nothing seems to happen\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Primebond Firelord Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// Is this a unique message to firelord primebond?\n// Not added to nexSkills until we can confirm\ninsight.addAff({id: \"burning\", player: args[1]});"}],"text":"^(\\w+) cries out in horror as \\w+ body erupts into flames!$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Soulmaster Control","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStat({id: \"soulmaster\", value: true, player: args[1]});"}],"text":"^You sense that the soulmaster entity is in control of (\\w+)'s being\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Soulmaster no control","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStat({id: \"soulmaster\", value: false, player: args[1]});"}],"text":"^Your soulmaster is wrestling for control of (\\w+)'s soul and cannot command \\w+ right now\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Soulmaster Command","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStat({id: \"soulmaster\", value: false, player: args[1]});"}],"text":"^You order the soulmaster entity to manipulate (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Soulmaster Attach","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^Your soulmaster lets loose a horrible scream as it lets part of its being flow into (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Bloodleech Primebond","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//100 bleed\n//220 bleed if haemophilia"}],"text":"^The bloodleech clinging to (\\w+) expands and contracts with a sickening sound\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Sycophant Attach","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^You sense your sycophant begin to feed\\.\\.\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Bubonis Attach","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Bubonis latched"}],"text":"^Your bubonis entity scuttles over to (\\w+) and then suddenly leaps up, latching itself to \\w+ head\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Worm Attach","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Worm attached"}],"text":"^A chaos worm begins burrowing into (\\w+)'s belly\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Humbug Attach","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^Your humbug entity leaps at (\\w+)'s throat\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Slime Attach","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^Your green slime entity quickly envelops","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Occultism","enabled":true,"items":[{"type":"group","name":"Readaura","enabled":false,"items":[{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeAff({id: \"undeaf\"})"}],"text":"^\\w+ is deaf\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeAff({id: \"unblind\"})"}],"text":"^\\w+ is blind\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"insomnia\"});\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"insomnia\");"}],"text":"^\\w+ has insomnia, and cannot easily go to sleep\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"speed\"})\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"speed\");"}],"text":"^\\w+ sense of time is heightened, and \\w+ reactions are speeded\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"kola\"})\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"kola\");"}],"text":"^\\w+ is feeling extremely energetic\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"cloak\"})\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"cloak\");"}],"text":"^\\w+ is surrounded by a cloak of protection\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"insulation\"})\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"insulation\");"}],"text":"^\\w+ is coated in an insulating unguent\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"fangbarrier\"})\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"fangbarrier\");"}],"text":"^\\w+ is protected from the fangs of serpents\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"rebounding\"})\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"rebounding\");"}],"text":"^\\w+ is protected from hand-held weapons with an aura of rebounding\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"curseward\"})\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"curseward\");"}],"text":"^A curseward has been established about \\w+ person\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"selfishness\"})\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"selfishness\");"}],"text":"^\\w+ is feeling quite selfish\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addDef({id: \"shield\"})\ninsight.occultist.readAuraDefs = insight.occultist.readAuraDefs.filter(e => e !== \"shield\");"}],"text":"^\\w+ is surrounded by a nearly invisible magical shield\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.readAuraConfirm({p: args[2], m: args[3], player: args[1]});"}],"text":"^You perceive that (\\w+) suffers from (\\d+) physical afflictions and (\\d+) mental afflictions\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"nexusclient.reflexes().disable_reflex(nexusclient.reflexes().find_by_name(\"group\", \"Readaura\", false, false, \"insight3\"));\ninsight.occultist.readAuraDefs.forEach(def => insight.removeDef({id: def}));\ninsight.setStat({id: \"mana\", value: parseInt(args[2])});\ninsight.setStat({id: \"manaMax\", value: parseInt(args[3])});\ninsight.setStat({id: \"manaPercent\", value: Math.round(args[2]/args[3] * 1000) / 1000});"}],"text":"^You sense that the mana of (\\w+) stands at (\\d+) of a maximum (\\d+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"trigger","name":"Readaura Start","enabled":true,"actions":[{"type":"script","enabled":true,"script":"nexusclient.reflexes().enable_reflex(nexusclient.reflexes().find_by_name(\"group\", \"Readaura\", false, false, \"insight3\"));\nfor (let i = nexusclient.current_block.indexOf(nexusclient.current_line); i < nexusclient.current_block.length-1; i++) {\n if (nexusclient.current_block[i]?.line.includes('You perceive that')) {\n \t\tbreak;\n }\n nexusclient.current_block[i].gag = true;\n}\ninsight.occultist.readAuraDefs = ['insomnia', 'insulation', 'kola', 'cloak', 'speed', 'rebounding', 'fangbarrier', 'curseward', 'shield', 'selfishness'];\n//const defs = ['insomnia', 'kola', 'cloak', 'speed', 'rebounding', 'fangbarrier'];\n//defs.forEach(def => insight.removeDef({id: def}));\n//const block = nexusclient.current_block;"}],"text":"^Studying the aura of (\\w+), you look for traces of anything that may be protecting it\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"PinchAura","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Enter the script here"}],"text":"^With a sudden, quick gesture, you snatch at (?<target>\\w+)'s aura and pinch the unwanted anomaly in the aura\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Devolve Hit 2","enabled":false,"actions":[{"type":"script","enabled":true,"script":"//Pamxen's tongue suddenly lengthens and splits into a wide fork. His skin thickens and is mottled with bumps.\n//Pamxen's skin suddenly darkens to a deep green and is covered with warts. As Pamxen's face widens, his mouth stretches to ridiculous \n//Feathers sprout up all over Pamxen's face, and the lips thicken and lengthen into a small beak."}],"text":"^(\\w+)'s skin suddenly darkens to a deep green and is covered with warts\\. As \\w+'s face widens, \\w+ mouth stretches to ridiculous proportions\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Whisperingmadness Tick","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"whisperingmadness\", player: args[1], state: true});"}],"text":"^(\\w+) trembles and \\w+ eyes widen in terror\\. \\w+ looks around \\w+ as if searching for something that isn't there\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Chaosrays Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Antoninus is hit by a orange, blue, and green ray.\n//Antoninus is hit by a red, violet, and indigo ray.\n//Antoninus is hit by a orange ray.\n//Antoninus is hit by a orange and red ray.\nlet chaosColors = {\n\tindigo() {insight.addAff({id: \"stupidity\", player: args[1]});},\n orange() {insight.addAff({id: \"paralysis\", player: args[1]});},\n violet() {\n if (insight.hasDef({id: \"speed\", player: args[1]})) {\n insight.removeDef({id: \"speed\", player: args[1]});\n } else {\n insight.addAff({id: \"aeon\", player: args[1]});\n }\n },\n blue() {/*cold damage*/},\n green() {/*healing*/},\n yellow() {/*electric damage*/},\n red() {/*fire damage*/}\n}\nlet colors = args[2].replace(' and ', ',').replaceAll(' ', '').replace(',,', ',').split(',')\ncolors.forEach(e => chaosColors[e]());"}],"text":"^(\\w+) is hit by a (.+) ray\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Truename Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeDef({id: \"speed\", player: args[1]});\ninsight.addAff({id: \"aeon\", player: args[1]});"}],"text":"^Drawing back with a knowing smirk, you utter the truename of (\\w+), who suddenly becomes very still and bleeds from \\w+ eyes and ears\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Unnamable Hit Confirm","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Hit with unnamable. 1-3 afflictions\nfor(let i = 0; i < args[2]; i++) {\n\tinsight.smartAffs({ids: [\"confusion\", \"stupidity\", \"dementia\"], player: args[1]});\n}"}],"text":"^(\\w+) has been struck down by (\\d) curses of the unnamable\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Enlighten","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.nextLine('You see')) {\n insight.setStat({id: \"enlightened\", value: true, player: args[1]});\n}"}],"text":"^You place both hands on either side of (\\w+)'s head and stare straight into \\w+ eyes\\. Summoning all your knowledge of the occult mysteries, you will your knowledge into \\w+'s mind\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Enlighten Yell","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStat({id: \"enlightened\", value: true, player: args[1]});"}],"text":"^You see (.+) yell, \"No, it cannot be true! I cannot accept it! I beg of you to make it stop!\"$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Enlighten Shout","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStat({id: \"enlightened\", value: true, player: args[1]});"}],"text":"^You see (.+) shout, \"No, it cannot be true! I cannot accept it! I beg of you to make it stop!\"$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Regress 3P Anorexia","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"anorexia\", player: args[1]});\ninsight.confirmAff({id: \"prone\", player: args[1], state: true});"}],"text":"^The face of (\\w+) turns a particularly vibrant shade of green\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Regress 3P Prone","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"prone\", player: args[1]});"}],"text":"^The legs of (\\w+) snap out from under \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Compel Discord","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"healthleech\", player: args[1], state: true});\ninsight.confirmAff({id: \"asthma\", player: args[1], state: true});\ninsight.addAff({id: \"loneliness\", player: args[1]});\ninsight.addAff({id: \"dizziness\", player: args[1]});"}],"text":"^(\\w+) clutches at \\w+ head as \\w+ begins to mutter gibberish over and over under his breath\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Compel Entropy Strip","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Delayed speed strip.\n//Speed drop will show on 3p message"}],"text":"^(\\w+) twists and writhes in the grip of some anathema power, before ripping \\w+ free of its unnatural hold\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Compel Entropy Aeon","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.removeDef({id: \"speed\", player: args.target});\ninsight.addAff({id: \"aeon\", player: args.target});"}],"text":"^(\\w+) twists and writhes in the grip of an unnatural force, parts of \\w+ body flickering as if seen through a veil of mist\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Compel Potential Limbs","enabled":true,"actions":[{"type":"script","enabled":true,"script":"const limbs = [\"leftarm\", \"leftleg\", \"rightarm\", \"rightleg\"];\n\nlimbs.forEach(limb => {\n if (insight.hasAff({id: `mangled${limb}`, player: args[1], probability: 0.25})) {\n insight.confirmAff({id: `mangled${limb}`, player: args[1], state: true});\n } else if (insight.hasAff({id: `damaged${limb}`, player: args[1], probability: 0.25})) {\n insight.confirmAff({id: `damaged${limb}`, player: args[1], state: true});\n } else if (insight.hasAff({id: `broken${limb}`, player: args[1], probability: 0.25})) {\n insight.confirmAff({id: `broken${limb}`, player: args[1], state: true});\n }\n})"}],"text":"^The body of (\\w+) goes slack, \\w+ eyes rolling almost completely back in \\w+ head as \\w+ face goes a ghostly white\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Compel Potential Frozen","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"shivering\", player: args[1], state: true});\ninsight.confirmAff({id: \"frozen\", player: args[1], state: true});\ninsight.removeDef({id: \"insulation\", player: args[1]})"}],"text":"^(\\w+) twitches in the grip of some terrible power, skin splitting and cracking under its unforgiving grasp\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Tarot","enabled":true,"items":[{"type":"trigger","name":"TODO: Hit Hangedman","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//bound"}],"text":"^You toss the Hanged Man tarot card at (\\w+) and as it reaches (?:her|him), a huge mass of rope bursts out of it to entrap and hinder \\w+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"TODO: Hit Ruinate Justice","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Converted paralysis, sensitivity, healthleech, haemophilia, weariness, asthma, or clumsiness into broken limbs.\n// what order does it convert in?\n// is it always the same order?"}],"text":"^As you fling a card at (\\w+), the scales of justice upon its surface twists and cracks as the image becomes something indefinable, but vastly more sinister\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"3P Ruinate Justice Break","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// Ruinate Justice is SMART aff random\n//21:55:21.857 Pamxen violently spasms as orange light plays across his body.\n//21:55:21.857 An audible crack emanates from the bones in the left arm, left leg, right arm, and right leg of Pamxen.\n//21:55:21.857 The broken legs of Pamxen give way, and he collapses to the ground.\nconst ruinateAffs = [\"paralysis\", \"asthma\", \"healthleech\", \"haemophilia\", \"sensitivity\", \"clumsiness\", \"weariness\"];\n\nlet limbs = args[1];\nlimbs = limbs.replace(\" and\", \",\");\nlimbs = limbs.replace(\",,\", \",\");\nlimbs = limbs.replaceAll(\" \", \"\");\nlimbs = limbs.split(\",\");\nlimbs.forEach(limb => insight.addAff({id: `broken${limb}`, player: args[2]}))\n\n// Estimate the number of convertable affs\nconst ruinateCount = ruinateAffs.reduce((sum, affId) => {\n return sum + (insight.players[args[2].toLowerCase()].affs[affId].probability || 0);\n }, 0);\n\n// If more than 4 can be converted, ruinate will resolve with 2x ague hits. Insultation is counted\nif (ruinateCount >= 4) {\n if (insight.hasDef({ id: \"insulation\", player: args[2] })) {\n insight.removeDef({ id: \"insulation\", player: args[2] });\n } else {\n insight.smartAffs({\n ids: [\"shivering\", \"frozen\"],\n player: args[2],\n ordered: true,\n });\n }\n insight.smartAffs({\n ids: [\"shivering\", \"frozen\"],\n player: args[2],\n ordered: true,\n });\n}\n\n// Based on the number of convertible affs, convert is random\nconst index = parseInt(ruinateCount);\nfor (let i = 0; i < index || i < 5; i++) {\n insight.usedCure({id: \"ruinateJustice\"});\n}"}],"text":"^An audible crack emanates from the bones in the (.+) of (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"3P Ruinate Justice Prone","enabled":true,"actions":[{"type":"script","enabled":true,"script":"// Ruinate Justice is SMART aff random\ninsight.addAff({id: \"prone\", player: args[1]});\ninsight.confirmAff({id: \"brokenleftleg\", player: args[1], state: true});\ninsight.confirmAff({id: \"brokenrightleg\", player: args[1], state: true});"}],"text":"^The broken legs of (\\w+) give way, and \\w+ collapses to the ground\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Wheel Ague","enabled":true,"actions":[{"type":"script","enabled":true,"script":"const players = GMCP.RoomPlayers.flatMap(e=>e.name);\nplayers.forEach(id => {\n if (insight.hasDef({id: \"insulation\", player: id})) {\n insight.removeDef({id: \"insulation\", player: id});\n } else { \n insight.smartAffs({ids: [\"shivering\", \"frozen\"], player: id, order: true});\n }\n});\n"}],"text":"^Rays of cold blue light lash out from the Wheel of Chaos, irradiating the location\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Wheel Stuttering","enabled":true,"actions":[{"type":"script","enabled":true,"script":"const players = GMCP.RoomPlayers.flatMap(e=>e.name);\nplayers.forEach(id => insight.addAff({id: \"stuttering\", player: id}));\n"}],"text":"^Vibrant indigo rays of light lash out from the Wheel of Chaos\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Wheel Aeon","enabled":true,"actions":[{"type":"script","enabled":true,"script":"const players = GMCP.RoomPlayers.flatMap(e=>e.name);\nplayers.forEach(id => {\n if (insight.hasDef({id: \"speed\", player: id})) {\n insight.removeDef({id: \"speed\", player: id});\n } else { \n insight.addAff({id: \"aeon\", player: id})\n }\n});"}],"text":"^Rays of violet light lash out at the location from the Wheel of Chaos\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Shadowmancy","enabled":true,"items":[{"type":"trigger","name":"Shadow Instill","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.state.shadowInstill = args[1];"}],"text":"^Focusing upon a scythe of shadows, you instill it with the directive of (\\w+)\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Shadow Evenom","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.state.envenom1 = insight.venomToAff[args[1]];"}],"text":"^You rub some (\\w+) on a scythe of shadows\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Attune Madness","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: args[2], player: args[1]});"}],"text":"^You sense that (\\w+) has been struck down with the (\\w+) madness\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Attune Degeneration","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: args[2], player: args[1]});"}],"text":"^You determine that (\\w+) is suffering from (\\w+)\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Shadowmadness Proc","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: args[1], player: args[2]});"}],"text":"^You determine that the insanity of (\\w+) has struck down (\\w+)\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Reap","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (!insight.checkBlock('Grey fog begins to rise from the suddenly') && insight.state.envenom1) {\n insight.addAff({id: insight.state.envenom1, player: args[1]});\n insight.state.envenom1 = false;\n}"}],"text":"^You unleash a vicious reaping blow at (\\w+) with a scythe of shadows\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Timeloop","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: 'timeloop', player: args[1]});"}],"text":"^Grey fog begins to rise from the suddenly panicked-looking (\\w+)\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Timeloop Proc","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Timeloop procs repeat the last instill\nswitch (insight.state.shadowInstill) {\n case \"leach\":\n insight.smartAffs({ids: [\"parasite\", \"healthleech\", \"manaleech\"], player: args[1], ordered: true});\n break;\n case \"madness\":\n insight.smartAffs({ids: [\"vertigo\", \"hallucinations\"], player: args[1], ordered: true});\n break;\n case \"retribution\":\n insight.smartAffs({ids: [\"retribution\", \"justice\"], player: args[1], ordered: true});\n break;\n case \"degeneration\":\n insight.smartAffs({ids: [\"clumsiness\", \"weariness\", \"paralysis\"], player: args[1], ordered: true});\n break;\n case \"depression\":\n insight.smartAffs({ids: [\"depression\", \"nausea\", \"hypochondria\"], player: args[1], ordered: true});\n break;\n default:\n // Handle invalid conditions\n console.log(\"Invalid Timeloop instill:\", insight.state.shadowInstill);\n}"}],"text":"^A grey miasma flares around (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Leach","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.smartAffs({ids: [\"parasite\", \"healthleech\", \"manaleech\"], player: args[1], ordered: true});"}],"text":"^As the weapon strikes (\\w+), \\w+ seems greatly diminished\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Leach Full","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"parasite\", player: args[1], state: true});\ninsight.confirmAff({id: \"healthleech\", player: args[1], state: true});\ninsight.confirmAff({id: \"manaleech\", player: args[1], state: true});\n//Depthswalker also gains shadow"}],"text":"^As the scythe comes away, the writhing shadow of (\\w+) clings to the weapon\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Madness","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.smartAffs({ids: [\"vertigo\", \"hallucinations\"], player: args[1], ordered: true});"}],"text":"^As the weapon strikes (\\w+), \\w+ face grows vacant and \\w+ begins to tremble\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Madness Full","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"vertigo\", player: args[1], state: true});\ninsight.confirmAff({id: \"hallucinations\", player: args[1], state: true});"}],"text":"^The head of (\\w+) snaps back as if struck and \\w+ eyes roll madly\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Retribution","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.smartAffs({ids: [\"retribution\", \"justice\"], player: args[1], ordered: true});"}],"text":"^As the weapon strikes (\\w+), it blazes with incandescent white flame\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Retribution Full","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"retribution\", player: args[1], state: true});\ninsight.confirmAff({id: \"justice\", player: args[1], state: true});\n//it shall burn away some of the victim's mana reserves. For each of depression, retribution, madness, and parasite that are present, the amount of mana drained is increased."}],"text":"^The white flame leaps from the scythe to (\\w+), blazing with a terrible intensity before guttering out\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Degeneration","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.smartAffs({ids: [\"clumsiness\", \"weariness\", \"paralysis\"], player: args[1], ordered: true});"}],"text":"^As the weapon strikes (\\w+), the contact area begins to rot before your eyes\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Degeneration Full","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"clumsiness\", player: args[1], state: true});\ninsight.confirmAff({id: \"weariness\", player: args[1], state: true});\ninsight.confirmAff({id: \"paralysis\", player: args[1], state: true});"}],"text":"^The face of (\\w+) contorts in pain\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Depression","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.smartAffs({ids: [\"depression\", \"nausea\", \"hypochondria\"], player: args[1], ordered: true});"}],"text":"^As the weapon strikes (\\w+), it burns with a sickly yellow glow\\.$","matching":"regexp","whole_words":false,"case_sensitive":false},{"type":"trigger","name":"Depression Full","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"depression\", player: args[1], state: true});\ninsight.confirmAff({id: \"nausea\", player: args[1], state: true});\ninsight.confirmAff({id: \"hypochondria\", player: args[1], state: true});\ninsight.addAff({id: 'anorexia', player: args[1]});\ninsight.addAff({id: 'masochism', player: args[1]});"}],"text":"^A look of total despair crosses the face of (\\w+)\\.$","matching":"regexp","whole_words":false,"case_sensitive":false}]},{"type":"group","name":"Dragoncraft","enabled":true,"items":[{"type":"trigger","name":"Gust","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"prone\", player: args[1]});"}],"text":"^Drawing an enormous breath, you exhale, expelling a gale of wind with such force that (\\w+) is knocked over\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Gust 3p","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"prone\", player: args[1]});"}],"text":"^Drawing an enormous breath, \\w+ exhales, expelling a gale of wind with such force that (\\w+) is knocked over\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Dragonroar","enabled":true,"actions":[{"type":"script","enabled":true,"script":"const roar = insight.state.lastQueue.match(/DRAGONROAR (\\w+)/)\nif (roar) {\n insight.addAff({id: \"undeaf\", player: args[1]});\n}"}],"text":"^Your nostrils flare with a rush of air as your sinuous body contracts and your mouth opens wide to emit a rippling, unbroken roar that reverberates through the very earth underfoot\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Dragonroar 3p","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"undeaf\", player: args[1]});"}],"text":"^\\w+'s nostrils flare wildly with a great rush of air as \\w+ sinuous body contracts and \\w+ mouth opens wide to emit a rippling, unbroken roar at (\\w+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Rend Venom","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.rendVenom = args[1];"}],"text":"^You rub some (\\w+) on your wickedly sharp claws\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Rend Prep","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.rendVenom) {\n const aff = insight.venomToAff[insight.rendVenom];\n insight.addAff({id: aff, player: args[1]});\n insight.rendVenom = false;\n}"}],"text":"^Lunging forward with long, flashing claws extended, you tear into the flesh of (\\w+)'s .+\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Rend Free","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.rendVenom) {\n const aff = insight.venomToAff[insight.rendVenom];\n insight.addAff({id: aff, player: args[1]});\n insight.rendVenom = false;\n}"}],"text":"^Lunging forward with long, flashing claws extended, you tear into (\\w+) ruthlessly\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Dragoncurse Hit","enabled":true,"actions":[{"type":"script","enabled":true,"script":"if (insight.state.dragoncurse) {\n insight.addAff({id: insight.dragoncurse, player: args[1]});\n insight.state.dragoncurse = false;\n}"}],"text":"^(\\w+) convulses under the influence of some invisible force\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Dragoncurse Aff","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.state.dragoncurse = args[1];"}],"text":"^You summon your ancient power and direct the curse of (\\w+) to strike down (\\w+) in (\\d+) seconds\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Tailsweep","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"prone\", player: args[1]});"}],"text":"^(\\w+) is knocked forcefully off \\w+ feet by the impact of your huge tail\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Tailsweep 3p","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.addAff({id: \"prone\", player: args[1]});"}],"text":"^(\\w+) is knocked forcefully off \\w+ feet by the impact of \\w+'s huge tail\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"trigger","name":"Assess","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStat({id: \"hp\", value: parseInt(args[2])});\ninsight.setStat({id: \"hpMax\", value: parseInt(args[3])});\ninsight.setStat({id: \"hpPercent\", value: Math.round(args[2]/args[3] * 100) / 100});"}],"text":"^You glance over (\\w+) and see that \\w+ health is at (\\d+)/(\\d+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Contemplate","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.setStat({id: \"mana\", value: parseInt(args[2])});\ninsight.setStat({id: \"manaMax\", value: parseInt(args[3])});\ninsight.setStat({id: \"manaPercent\", value: Math.round(args[2]/args[3] * 1000) / 1000});"}],"text":"^(\\w+)'s mana stands at (\\d+)\\/(\\d+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"group","name":"Bladedance","enabled":true,"items":[{"type":"trigger","name":"","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.confirmAff({id: \"earworm\", state: true});"}],"text":"^Your rapier sings out with a high, piercing note\\.$","matching":"regexp","whole_words":false,"case_sensitive":false}]}]},{"type":"group","name":"Prep","enabled":true,"items":[{"type":"trigger","name":"Generic Limb Damage","enabled":true,"actions":[{"type":"script","enabled":true,"script":"const limb = args[4].replace(\" \", \"\");\ninsight.hitLimb({id: limb, player: args[1], value: parseFloat(args[2]) + parseFloat(args[3]/10)});"}],"text":"^As you carve into (\\w+), you perceive that you have dealt (\\d+)\\.(\\d)% damage to \\w+ (.+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Generic Limb Damage 2","enabled":true,"actions":[{"type":"script","enabled":true,"script":"const limb = args[4].replace(\" \", \"\");\ninsight.hitLimb({id: limb, player: args[3], value: parseFloat(args[1]) + parseFloat(args[2]/10)});"}],"text":"^As your blow lands with a crunch, you perceive that you have dealt (\\d+).(\\d+)% damage to (\\w+)'s (.+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Interlink Limb Damage","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//Occultism Interlink\nconst limb = args[4].replace(\" \", \"\");\ninsight.hitLimb({id: limb, player: args[3], value: parseFloat(args[1]) + parseFloat(args[2]/10)});\nconsole.log(insight.target.limbs[limb]);\nconsole.log(parseFloat(args[1]) + parseFloat(args[2]/10));"}],"text":"^As the immaterial cleaves the material, you perceive that you have dealt (\\d+)\\.(\\d)% damage to (\\w+)'s (.+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Limb Reset Time","enabled":true,"actions":[{"type":"script","enabled":true,"script":"const limb = args[2].replace(\" \", \"\");\ninsight.resetLimb({id: limb, player: args[1]});"}],"text":"^(\\w+) ceases to favour \\w+ (.+)\\.$","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Limb Mangle","enabled":true,"actions":[{"type":"script","enabled":true,"script":"//No 3p message for head or torso\nconst limb = args[2].replace(\" \", \"\");\nif (insight.hasAff({ id: `damaged${limb}`, player: args[1].toLowerCase() })) {\n insight.convertAff({\n id: `damaged${limb}`,\n to: `mangled${limb}`,\n player: args[1].toLowerCase(),\n });\n} else {\n insight.addAff({ id: `mangled${limb}`, player: args[1].toLowerCase() });\n}"}],"text":"^(\\w+)'s ((?:left|right) (?:arm|leg)) has been beaten into uselessness\\.$","matching":"regexp","whole_words":true,"case_sensitive":true}]},{"type":"group","name":"Queues","enabled":true,"items":[{"type":"trigger","name":"Insight Queue Tracker","enabled":true,"actions":[{"type":"script","enabled":true,"script":"insight.state.queues[args[1]] = args[2];\ninsight.state.lastQueue = args[1];"}],"text":"^\\[System\\]: Running queued (.+?) command\\: (.+)","matching":"regexp","whole_words":true,"case_sensitive":true},{"type":"trigger","name":"Insight Alias Tracker","enabled":true,"actions":[{"type":"script","enabled":true,"script":"/*\nAccounting for the degenerates who insist on using serverside aliases \nfor combat and sending 2x the number of commands necessary\n*/\ninsight.state.serverAliases[args[1]] = args[2].split(\"/\")"}],"text":"^Alias \"(\\w+)\" will now execute: \"(.+?)\"$","matching":"regexp","whole_words":true,"case_sensitive":true}]}],"description":"Khaseem's Insight into afflictions"}
|