nexsight 0.1.6 → 0.1.7

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 CHANGED
@@ -1 +1 @@
1
- !function(){"use strict";var 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"],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","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 torso":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to torso",order:["burning"],prio:0},"restoration to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to head",order:["mangledhead","damagedhead","calcifiedskull","concussion","tonguetied"],delay:4,prio:0},"restoration to torso":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to torso",order:["hypothermia","heartseed","serioustrauma","mildtrauma","calcifiedtorso"],delay:4,prio:0},"restoration to arms":{bals_used:["salve"],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"],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"],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},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},sun:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:[],skills:["Runewarden","Occultist"],command:"sun",order:e,prio:0},generic:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:[],skills:[],command:"sun",order:e,prio:0}};function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function n(e,r){for(var a=0;a<r.length;a++){var n=r[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var t=function(){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;a(this,e),this._name=r,this._enabled=!1,this._t_started=0,this._t_ended=0,this._timerId=0,this._default_length=n,this.setLength(n),this._callbacks=[]}var r,t,s;return r=e,(t=[{key:"length",get:function(){return this._t_length}},{key:"setLength",value:function(e){this._t_length=e,this._t_length_ms=1e3*e}},{key:"reset",value:function(){this.setLength(this._default_length)}},{key:"start",value:function(){this._enabled&&clearTimeout(this._timerId),this._timerId=setTimeout(this.stop.bind(this),this._t_length_ms),this._t_started=performance.now()/1e3,this._enabled=!0}},{key:"stop",value:function(){if(this._enabled&&(clearTimeout(this._timerId),this._t_ended=performance.now()/1e3,this._enabled=!1,this._callbacks))for(var e=0;e<this._callbacks.length;e++)this._callbacks[e](this._t_ended-this._t_started)}},{key:"duration",value:function(){return this._enabled?this.elapsed():this._t_ended-this._t_started}},{key:"elapsed",value:function(){return this._enabled?performance.now()/1e3-this._t_started:0}},{key:"remaining",value:function(){return this._enabled?this._t_length-performance.now()/1e3-this._t_started:0}},{key:"addCallback",value:function(e){this._callbacks.push(e)}},{key:"clearCallbacks",value:function(){this._callbacks=[]}}])&&n(r.prototype,t),s&&n(r,s),Object.defineProperty(r,"prototype",{writable:!1}),e}(),s=t,i={},o=function(e){var a=[];Object.keys(r).forEach((function(n){var t;(null===(t=r[n].order)||void 0===t?void 0:t.indexOf(e))>-1&&a.push(n)}));var n={name:e,probability:0,cures:a,have:!1,got:function(){var r;i[e].have=!0,i[e].probability=1,eventStream.raiseEvent("insightGotAff",i[e]),eventStream.raiseEvent("insightGot".concat(e),i[e]),null===(r=i[e].timer)||void 0===r||r.start()},lost:function(){var r;i[e].have=!1,i[e].probability=0,eventStream.raiseEvent("insightLostAff",i[e]),eventStream.raiseEvent("insightLost".concat(e),i[e]),null===(r=i[e].timer)||void 0===r||r.stop()},reset:function(){var r;i[e].have=!1,i[e].probability=0,null===(r=i[e].timer)||void 0===r||r.stop()}};return Object.keys(c).indexOf(e)>-1&&(n.timer=new s("insightTimer".concat(e),c[e].duration),n.timer.addCallback(n.reset)),n},l=["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","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"],c={test:{duration:10},weakenedmind:{duration:60},slimeobscure:{duration:30},palpatarfeed:{duration:20},cleanseaura:{duration:6}};l.forEach((function(e){i[e]=o(e)}));function d(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function m(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var h={},u={insomnia:!0,kola:!0,speed:!0,shield:!0,rebounding:!0,prismatic:!0,cloak:!0,fangbarrier:!0},b=function(){Object.assign(h,function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?d(Object(a),!0).forEach((function(r){m(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},u))};function g(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function p(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var f={},y={hp:2e4,mana:2e4,hpMax:2e4,manaMax:2e4,hpPercent:1,manaPercent:1,soulmaster:!1,enlightened:!1,mentalCount:0,physicalCount:0},v=function(){Object.assign(f,function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?g(Object(a),!0).forEach((function(r){p(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},y))},k={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"]};function _(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){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 N(e,r){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=w(e))||r&&e&&"number"==typeof e.length){a&&(e=a);var n=0,t=function(){};return{s:t,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 s,i=!0,o=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){o=!0,s=e},f:function(){try{i||null==a.return||a.return()}finally{if(o)throw s}}}}function w(e,r){if(e){if("string"==typeof e)return O(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?O(e,r):void 0}}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,n=new Array(r);a<r;a++)n[a]=e[a];return n}var j=i,q=[[]],x=[],P=[],E={},A={id:""},S=function(e){j[e].got();var r,a=N(q);try{for(a.s();!(r=a.n()).done;){var n=r.value;n.includes(e)||n.push(e)}}catch(e){a.e(e)}finally{a.f()}P.push(e),L()},D=function(e){j[e].lost(),q.forEach((function(r){var a=r.indexOf(e);a>-1&&r.splice(a,1)})),T(),L()},z=function(e){var a,n=N(r[e].order);try{for(n.s();!(a=n.n()).done;){var t=a.value;if(1===i[t].probability)return D(t),!0}}catch(e){n.e(e)}finally{n.f()}return!1},T=function(){var e=!1,r=q;!1===e&&(r.sort(),e=!0);for(var a=function(e){if(r.length>1&&r.length%e==0){for(var a=!0,n=0;n<r.length;n+=e)if(!C(r.slice(n,n+e))){a=!1;break}if(a){for(var t=r.length-(e-1);t>-1;t-=e)r.splice(t,e-1);return r.sort(),!0}return!1}return!1};!0===a(2););[9,7,5,3].forEach((function(e){a(e)}))},L=function(){var e=_(new Set(q.flat())),r=x.filter((function(r){return!e.includes(r)}));r.length>0&&r.forEach((function(e){return j[e].lost()})),(x=e).forEach((function(e){j[e].probability=parseFloat((Math.round(100*function(e){return q.filter((function(r){return r.includes(e)})).length/q.length}(e))/100).toFixed(2))})),eventStream.raiseEvent("insightUpdateAffs")},M=function(e,r){return e.length===r.length&&(e.sort(),r.sort(),!!e.every((function(e,a){return e===r[a]})))},C=function(e){for(var r=1;r<e.length;r++)if(!M(e[0],e[r]))return!1;return!0},H=S,I=D,R=function(e){if(r[e].bals_used.includes("salve")&&z(e))console.log("salveCure() true return");else{var a=r[e].order,n=[],t=!1;q.forEach((function(e){if(e.find((function(e){return a.includes(e)}))){t=!0;var r,s=N(e);try{var i=function(){var t=r.value;if(a.includes(t)){var s=e.filter((function(e){return e!==t}));s.length>0&&n.push(s)}};for(s.s();!(r=s.n()).done;)i()}catch(e){s.e(e)}finally{s.f()}}})),t&&(q=n.length>0?n:[[]]),T(),L(),P.push(e)}},G=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(_(q.map((function(e){return e.slice(0)}))));try{for(n.s();!(a=n.n()).done;){var t=a.value;t.includes(e)||t.push(e),r.push(t)}}catch(e){n.e(e)}finally{n.f()}})),q=r.length>0?r:[[]],T(),L()},B=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(_(q.map((function(e){return e.slice(0)}))));try{for(n.s();!(a=n.n()).done;){var t=a.value;t.includes(e)||(t.push(e),r.push(t.sort()))}}catch(e){n.e(e)}finally{n.f()}})),q.forEach((function(a){e.every((function(e){return a.includes(e)}))&&r.push(a.sort())})),r.length>0&&(q=r),T(),L()},F=function(e,r){var a=j[e].probability;if(!(r&&1===a||!r&&0===a))if(r&&0===j[e].probability)S(e);else if(r||1!==j[e].probability){var n=[];q.forEach((function(a){a.includes(e)===r&&n.push(a)})),q=n,P.push("".concat(e,":").concat(r)),T(),L()}else D(e)},Y=function(){for(var e in q=[[]],x=[],P=[],j){if(Object.hasOwnProperty.call(j,e))j[e].reset()}},U=function(e){var r=e.p,a=e.m,n=_(q);if((n=n.filter((function(e){var n=e.filter((function(e){return k.physicals.includes(e)})),t=e.filter((function(e){return k.mentals.includes(e)}));return n.length<=r&&t.length<=a}))).length<r+a)return console.error("Insight Error: No present branch for physical ".concat(r,", mental ").concat(a)),!1;q=_(n),T(),L()};function W(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function $(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?W(Object(a),!0).forEach((function(r){J(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):W(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function J(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var K=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=document.createElement("span");a.setAttribute("class","mono"),a.appendChild(Object.assign(document.createElement("span"),{style:"color:DarkOrchid",innerHTML:"["})),a.appendChild(Object.assign(document.createElement("span"),{style:"color:Gold",innerHTML:"insight"})),a.appendChild(Object.assign(document.createElement("span"),{style:"color:DarkOrchid",innerHTML:"] "})),r?a.insertAdjacentHTML("beforeend",e):a.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:e})),globalThis.nexusclient.add_html_line(a.outerHTML)},Q={fg:"olive",bg:""},V={fg:"royalblue",bg:""},X={fg:"",bg:""},Z={fg:"ForestGreen",bg:""},ee={fg:"",bg:""},re={fg:"slategray",bg:""},ae={fg:"greenyellow",bg:""},ne={fg:"DeepSkyBlue",bg:""},te={fg:"DarkOrange",bg:""},se={fg:"Red",bg:""},ie={fg:"Gold",bg:""},oe={fg:"firebrick",bg:""},le={fg:"Tan",bg:""},ce={fg:"darkseagreen",bg:""},de={fg:"orchid",bg:""},me={fg:"sienna",bg:""},he={fg:"darkviolet",bg:""},ue={fg:"lightpink",bg:""},be={fg:"paleyellow",bg:"darkslategray"},ge={addiction:$({shortName:"add"},te),aeon:$({shortName:"ae"},ae),agoraphobia:$({shortName:"agor"},V),amnesia:{shortName:"amn",fg:"",bg:""},anorexia:$({shortName:"ANO"},me),asthma:$({shortName:"AST"},Z),blackout:{shortName:"bo",fg:"",bg:""},blindness:$({shortName:"unb"},X),bound:$({shortName:"bnd"},be),brokenleftarm:$({shortName:"la1"},de),brokenleftleg:$({shortName:"ll1"},de),brokenrightarm:$({shortName:"ra1"},de),brokenrightleg:$({shortName:"rl1"},de),bruisedribs:{shortName:"ribs",fg:"",bg:""},burning:$({shortName:"burn"},de),calcifiedskull:$({shortName:"calh"},he),calcifiedtorso:$({shortName:"calt"},he),claustrophobia:$({shortName:"clau"},le),clumsiness:$({shortName:"clu"},Z),concussion:$({shortName:"conc"},he),confusion:$({shortName:"con"},le),corruption:{shortName:"corr",fg:"",bg:""},crackedribs:$({shortName:"cr"},ue),crushedthroat:$({shortName:"cru"},de),daeggerimpale:$({shortName:"daeg"},be),damage:{shortName:"dmg",fg:"tomato",bg:""},damagedleftarm:$({shortName:"la2"},he),damagedleftleg:$({shortName:"ll2"},he),damagedrightarm:$({shortName:"ra2"},he),damagedrightleg:$({shortName:"rl2"},he),damagedhead:$({shortName:"hd2"},he),darkshade:$({shortName:"dark"},te),dazed:$({shortName:"dzd"},ae),dazzled:$({shortName:"dzl"},de),deadening:$({shortName:"dea"},ae),deafness:$({shortName:"und"},ee),dehydrated:{shortName:"deh",fg:"",bg:""},dementia:$({shortName:"dem"},le),depression:$({shortName:"dep"},ie),deteriorate:{shortName:"det",fg:"",bg:""},disloyalty:$({shortName:"disl"},oe),disrupted:{shortName:"disr",fg:"",bg:""},dissonance:$({shortName:"disso"},ie),dizziness:$({shortName:"diz"},ie),enscorcelled:{shortName:"ensor",fg:"",bg:""},entangled:$({shortName:"entgl"},be),epilepsy:$({shortName:"epi"},ie),fear:{shortName:"fear",fg:"",bg:""},flushings:$({shortName:"flush"},te),frozen:$({shortName:"frz"},ce),generosity:$({shortName:"gen"},ne),grievouswounds:$({shortName:"grv"},ue),guilt:$({shortName:"gui"},V),haemophilia:$({shortName:"haem"},te),hallucinations:$({shortName:"hall"},le),hamstrung:{shortName:"hms",fg:"",bg:""},healthleech:$({shortName:"hthl"},Z),heartseed:$({shortName:"heart"},he),hellsight:$({shortName:"hell"},oe),horror:$({shortName:"hor"},ie),hypersomnia:$({shortName:"hypers"},le),hypochondria:$({shortName:"hypoch"},Z),hypothermia:$({shortName:"hypoth"},he),icefisted:{shortName:"ice",fg:"",bg:""},impaled:$({shortName:"impl"},be),impatience:$({shortName:"IMPAT"},ie),indifference:$({shortName:"ind"},ne),itching:$({shortName:"itch"},me),justice:$({shortName:"just"},ne),kkractlebrand:$({shortName:"kkr"},ue),laceratedthroat:$({shortName:"lac2"},he),latched:$({shortName:"latch"},ue),lethargy:$({shortName:"let"},te),lightbind:{shortName:"light",fg:"",bg:""},loneliness:$({shortName:"lon"},V),lovers:$({shortName:"love"},ne),manaleech:$({shortName:"man"},oe),mangledleftarm:$({shortName:"la3"},he),mangledleftleg:$({shortName:"ll3"},he),mangledrightarm:$({shortName:"ra3"},he),mangledrightleg:$({shortName:"rl3"},he),mangledhead:$({shortName:"hd3"},he),masochism:$({shortName:"maso"},V),mildtrauma:$({shortName:"tor1"},he),mycalium:$({shortName:"myc"},ie),nausea:$({shortName:"nau"},te),numbedleftarm:{shortName:"nbla",fg:"",bg:""},numbedrightarm:{shortName:"nbra",fg:"",bg:""},pacified:$({shortName:"pac"},ne),paralysis:$({shortName:"PAR"},se),paranoia:$({shortName:"prn"},le),parasite:$({shortName:"prs"},Z),peace:$({shortName:"pea"},ne),phlogisticated:{shortName:"phlog",fg:"",bg:""},pinshot:{shortName:"psh",fg:"",bg:""},pressure:$({shortName:"pres"},re),prone:{shortName:"pr",fg:"",bg:""},pyramides:$({shortName:"pyra"},se),pyre:$({shortName:"pyre"},ne),rebbies:$({shortName:"reb"},Z),recklessness:$({shortName:"reck"},V),retardation:{shortName:"ret",fg:"",bg:""},retribution:$({shortName:"retr"},ne),revealed:{shortName:"rev",fg:"",bg:""},sandfever:$({shortName:"sand"},ie),scalded:$({shortName:"scald"},me),scytherus:$({shortName:"scy"},te),selarnia:$({shortName:"sel"},de),sensitivity:$({shortName:"sen"},Z),serioustrauma:$({shortName:"tor2"},he),shadowmadness:$({shortName:"shad"},ie),shivering:$({shortName:"shiv"},ce),shyness:$({shortName:"shy"},ie),skullfractures:$({shortName:"sf"},ue),slashedthroat:$({shortName:"lac1"},me),sleeping:{shortName:"slp",fg:"",bg:""},slickness:$({shortName:"SLI"},se),slimeobscure:{shortName:"nkh",fg:"",bg:""},spiritburn:$({shortName:"spirB"},V),spiritwrack:{shortName:"spirW",fg:"",bg:""},stupidity:$({shortName:"st"},ie),stuttering:$({shortName:"stut"},me),homunculusmercury:{shortName:"merc",fg:"",bg:""},temperedcholeric:$({shortName:"choH"},Q),temperedmelancholic:$({shortName:"melaH"},Q),temperedphlegmatic:$({shortName:"phleH"},Q),temperedsanguine:$({shortName:"sanH"},Q),tenderskin:$({shortName:"tend"},V),tension:$({shortName:"tens"},ae),timeflux:{shortName:"tmfx",fg:"",bg:""},timeloop:$({shortName:"tmlp"},ne),tonguetied:$({shortName:"tngt"},he),torntendons:$({shortName:"tt"},ue),transfixation:$({shortName:"trfx"},be),unweavingbody:$({shortName:"unwM"},te),unweavingspirit:$({shortName:"unwS"},ae),unweavingmind:$({shortName:"unwM"},ie),vertigo:$({shortName:"vert"},V),vitrified:{shortName:"vitri",fg:"",bg:""},voidfisted:{shortName:"void",fg:"",bg:""},voyria:{shortName:"voy",fg:"",bg:""},weariness:$({shortName:"wea"},Z),webbed:$({shortName:"web"},be),whisperingmadness:$({shortName:"mad"},V),wristfractures:$({shortName:"wf"},ue)};function pe(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function fe(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var ye=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,a=i[e];return!!(a.have&&a.probability>=r)},ve=function(e){var r=e.affArray,a=e.probability,n=void 0===a?0:a,t=e.player;if(ke(t)){var s=!1;return Array.isArray(r)&&(s=r.every((function(e){return x.indexOf(e)>-1&&i[e].probability>=n}))),s}},ke=function(e){if(void 0===e||e==A.id)return!0},_e={};function Ne(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function we(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}[{id:"balance",duration:2},{id:"equilibrium",duration:2},{id:"herb",duration:2},{id:"smoke",duration:2},{id:"salve",duration:2},{id:"focus",duration:2},{id:"tree",duration:2}].forEach((function(e){return _e[e.id]=function(e){var r=e.id,a=e.duration,n={name:r,have:!0,got:function(){_e[r].have=!0,eventStream.raiseEvent("insightGotBal",_e[r]),eventStream.raiseEvent("insightGot".concat(r),_e[r]),_e[r].timer.stop()},lost:function(){var e;_e[r].have=!1,eventStream.raiseEvent("insightLostBal",_e[r]),eventStream.raiseEvent("insightLost".concat(r),_e[r]),null===(e=_e[r].timer)||void 0===e||e.start()},reset:function(){_e[r].have=!0,_e[r].timer.stop()},timer:new s("insightTimer".concat(r),a)};return n.timer.addCallback(n.reset),n}(e)}));var Oe={addAff:function(e){var r=e.aff,a=e.player;ke(a)&&void 0!==r&&(H(r),insight.reporting.notices&&K("Added: ".concat(r)))},getAff:function(e){var r=e.aff,a=e.player;if(ke(a)&&void 0!==r)return insight.affs[r]},removeAff:function(e){var r=e.aff,a=e.player;ke(a)&&void 0!==r&&(I(r),insight.reporting.notices&&K("Removed: ".concat(r)))},usedCure:function(e){var a=e.cure;e.player;!function(e){var a,n=null===(a=r[e])||void 0===a?void 0:a.blocks;void 0!==n&&n.forEach((function(e){Array.isArray(e)?ve(e)&&e.forEach((function(e){return F(e,!1)})):ye(e)&&F(e,!1)}))}(a),R(a)},confirmAff:function(e){var r=e.aff,a=e.state,n=e.player;ke(n)&&void 0!==r&&(F(r,a),insight.reporting.notices&&K("Confirmed: ".concat(r," ").concat(a)))},reset:function(){Y(),b(),v(),insight.reporting.notices&&K("Reset")},randomAffs:function(e){var r=e.affs,a=e.player;ke(a)&&void 0!==r&&(G(r),insight.reporting.notices&&K("Random: ".concat(r)))},readAuraConfirm:function(e){var r=e.p,a=e.m,n=e.player;ke(n)&&U({p:r,m:a})},smartAffs:function(e){var r=e.affs,a=e.player;ke(a)&&void 0!==r&&(B(r),insight.reporting.notices&&K("Smart: ".concat(r)))},addDef:function(e){var r=e.def,a=e.player;ke(a)&&void 0!==r&&(h[r]=!0,insight.reporting.notices&&K("Def (".concat(id,"): true")))},removeDef:function(e){var r=e.def,a=e.player;ke(a)&&void 0!==r&&(h[r]=!1,insight.reporting.notices&&K("Def (".concat(id,"): false")))},hasAff:ye,hasAffs:ve,hasAnAff:function(e){var r=e.affArray,a=e.player,n=e.probability,t=void 0===n?0:n;if(ke(a)){var s=!1;return Array.isArray(r)&&(s=x.some((function(e){return r.indexOf(e)>-1&&i[e].probability>=t}))),s}},hasDef:function(e){return h[e]},setStatus:function(e){var r=e.id,a=e.value;e.player;f[r]=a,insight.reporting.notices&&K("Status (".concat(r,"): ").concat(a))},getStatus:function(e){return f[e]},currentAffs:function(){return x},currentAffDisplay:function(){var e=[];return x.forEach((function(r){return e.push("".concat(r,": ").concat(i[r].probability))})),e},currentAffDisplayHTML:function(){var e=document.createElement("span");if(e.setAttribute("class","mono"),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"["})),x.length>1)for(var r=0;r<x.length-1;r++){var a=x[r];e.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(ge[a].fg,";background:").concat(ge[a].bg),innerHTML:insight.reporting.shortNames?"".concat(ge[a].shortName):"".concat(a)})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:x.length>1?": ".concat(i[a].probability,", "):": ".concat(i[a].probability)}))}var n=x.at(-1);return e.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(ge[n].fg,";background:").concat(ge[n].bg),innerHTML:insight.reporting.shortNames?"".concat(ge[n].shortName):"".concat(n)})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:": ".concat(i[n].probability)})),x.forEach((function(e){})),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"]"})),e.outerHTML},nextLine:function(){var e=nexusclient.current_block.indexOf(nexusclient.current_line);return nexusclient.current_block[e+1].parsed_line.text()},target:A,reporting:{notices:!1,shortNames:!1,colors:!1},occultist:k,affs:i,defs:h,bals:_e,status:f,timeline:function(){return q},setTarget:function(e){var r;E.hasOwnProperty(e)?i=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?pe(Object(a),!0).forEach((function(r){fe(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):pe(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},E[e].affs):E[e]={affs:(r={},l.forEach((function(e){r[e]=o(e)})),r),defs:{},state:{}}},players:E};globalThis.insight=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?Ne(Object(a),!0).forEach((function(r){we(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ne(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},Oe),globalThis.insight.reset(),"undefined"!=typeof nexusclient&&fetch("https://unpkg.com/nexsight/insight3.nxs",{cache:"no-store"}).then((function(e){return e.json()})).then((function(e){nexusclient.packages().get("insight3").apply(e,nexusclient.reflexes())}))}();
1
+ !function(){"use strict";var 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"],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","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 torso":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply mending to torso",order:["burning"],prio:0},"restoration to head":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to head",order:["mangledhead","damagedhead","calcifiedskull","concussion","tonguetied"],delay:4,prio:0},"restoration to torso":{bals_used:["salve"],bals_req:["salve"],blocks:["slickness","sleeping"],command:"apply restoration to torso",order:["hypothermia","heartseed","serioustrauma","mildtrauma","calcifiedtorso"],delay:4,prio:0},"restoration to arms":{bals_used:["salve"],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"],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"],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},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},sun:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:[],skills:["Runewarden","Occultist"],command:"sun",order:e,prio:0},generic:{bals_req:["equilibrium","balance","alleviate"],bals_used:["alleviate","balance"],blocks:[],skills:[],command:"sun",order:e,prio:0}};function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function n(e,r){for(var a=0;a<r.length;a++){var n=r[a];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}var t=function(){function e(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;a(this,e),this._name=r,this._enabled=!1,this._t_started=0,this._t_ended=0,this._timerId=0,this._default_length=n,this.setLength(n),this._callbacks=[]}var r,t,s;return r=e,(t=[{key:"length",get:function(){return this._t_length}},{key:"setLength",value:function(e){this._t_length=e,this._t_length_ms=1e3*e}},{key:"reset",value:function(){this.setLength(this._default_length)}},{key:"start",value:function(){this._enabled&&clearTimeout(this._timerId),this._timerId=setTimeout(this.stop.bind(this),this._t_length_ms),this._t_started=performance.now()/1e3,this._enabled=!0}},{key:"stop",value:function(){if(this._enabled&&(clearTimeout(this._timerId),this._t_ended=performance.now()/1e3,this._enabled=!1,this._callbacks))for(var e=0;e<this._callbacks.length;e++)this._callbacks[e](this._t_ended-this._t_started)}},{key:"duration",value:function(){return this._enabled?this.elapsed():this._t_ended-this._t_started}},{key:"elapsed",value:function(){return this._enabled?performance.now()/1e3-this._t_started:0}},{key:"remaining",value:function(){return this._enabled?this._t_length-performance.now()/1e3-this._t_started:0}},{key:"addCallback",value:function(e){this._callbacks.push(e)}},{key:"clearCallbacks",value:function(){this._callbacks=[]}}])&&n(r.prototype,t),s&&n(r,s),Object.defineProperty(r,"prototype",{writable:!1}),e}(),s=t,i={},o=function(e){var a=[];Object.keys(r).forEach((function(n){var t;(null===(t=r[n].order)||void 0===t?void 0:t.indexOf(e))>-1&&a.push(n)}));var n={name:e,probability:0,cures:a,have:!1,got:function(){var r;i[e].have=!0,i[e].probability=1,eventStream.raiseEvent("insightGotAff",i[e]),eventStream.raiseEvent("insightGot".concat(e),i[e]),null===(r=i[e].timer)||void 0===r||r.start()},lost:function(){var r;i[e].have=!1,i[e].probability=0,eventStream.raiseEvent("insightLostAff",i[e]),eventStream.raiseEvent("insightLost".concat(e),i[e]),null===(r=i[e].timer)||void 0===r||r.stop()},reset:function(){var r;i[e].have=!1,i[e].probability=0,null===(r=i[e].timer)||void 0===r||r.stop()}};return Object.keys(c).indexOf(e)>-1&&(n.timer=new s("insightTimer".concat(e),c[e].duration),n.timer.addCallback(n.reset)),n},l=["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","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"],c={test:{duration:10},weakenedmind:{duration:60},slimeobscure:{duration:30},palpatarfeed:{duration:20},cleanseaura:{duration:6}};l.forEach((function(e){i[e]=o(e)}));function d(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function m(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var h={},u={insomnia:!0,kola:!0,speed:!0,shield:!0,rebounding:!0,prismatic:!0,cloak:!0,fangbarrier:!0},b=function(){Object.assign(h,function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?d(Object(a),!0).forEach((function(r){m(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):d(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},u))};function g(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function p(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var f={},y={hp:2e4,mana:2e4,hpMax:2e4,manaMax:2e4,hpPercent:1,manaPercent:1,soulmaster:!1,enlightened:!1,mentalCount:0,physicalCount:0},v=function(){Object.assign(f,function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?g(Object(a),!0).forEach((function(r){p(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):g(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},y))},k={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"]};function _(e){return function(e){if(Array.isArray(e))return O(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||w(e)||function(){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 N(e,r){var a="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=w(e))||r&&e&&"number"==typeof e.length){a&&(e=a);var n=0,t=function(){};return{s:t,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:t}}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 s,i=!0,o=!1;return{s:function(){a=a.call(e)},n:function(){var e=a.next();return i=e.done,e},e:function(e){o=!0,s=e},f:function(){try{i||null==a.return||a.return()}finally{if(o)throw s}}}}function w(e,r){if(e){if("string"==typeof e)return O(e,r);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?O(e,r):void 0}}function O(e,r){(null==r||r>e.length)&&(r=e.length);for(var a=0,n=new Array(r);a<r;a++)n[a]=e[a];return n}var j=i,q=[[]],x=[],P=[],E={},A={id:""},S=function(e){j[e].got();var r,a=N(q);try{for(a.s();!(r=a.n()).done;){var n=r.value;n.includes(e)||n.push(e)}}catch(e){a.e(e)}finally{a.f()}P.push(e),L()},D=function(e){j[e].lost(),q.forEach((function(r){var a=r.indexOf(e);a>-1&&r.splice(a,1)})),T(),L()},z=function(e){var a,n=N(r[e].order);try{for(n.s();!(a=n.n()).done;){var t=a.value;if(1===i[t].probability)return D(t),!0}}catch(e){n.e(e)}finally{n.f()}return!1},T=function(){var e=!1,r=q;!1===e&&(r.sort(),e=!0);for(var a=function(e){if(r.length>1&&r.length%e==0){for(var a=!0,n=0;n<r.length;n+=e)if(!C(r.slice(n,n+e))){a=!1;break}if(a){for(var t=r.length-(e-1);t>-1;t-=e)r.splice(t,e-1);return r.sort(),!0}return!1}return!1};!0===a(2););[9,7,5,3].forEach((function(e){a(e)}))},L=function(){var e=_(new Set(q.flat())),r=x.filter((function(r){return!e.includes(r)}));r.length>0&&r.forEach((function(e){return j[e].lost()})),(x=e).forEach((function(e){j[e].probability=parseFloat((Math.round(100*function(e){return q.filter((function(r){return r.includes(e)})).length/q.length}(e))/100).toFixed(2))})),eventStream.raiseEvent("insightUpdateAffs")},M=function(e,r){return e.length===r.length&&(e.sort(),r.sort(),!!e.every((function(e,a){return e===r[a]})))},C=function(e){for(var r=1;r<e.length;r++)if(!M(e[0],e[r]))return!1;return!0},H=S,I=D,R=function(e){if(r[e].bals_used.includes("salve")&&z(e))console.log("salveCure() true return");else{var a=r[e].order,n=[],t=!1;q.forEach((function(e){if(e.find((function(e){return a.includes(e)}))){t=!0;var r,s=N(e);try{var i=function(){var t=r.value;if(a.includes(t)){var s=e.filter((function(e){return e!==t}));s.length>0&&n.push(s)}};for(s.s();!(r=s.n()).done;)i()}catch(e){s.e(e)}finally{s.f()}}})),t&&(q=n.length>0?n:[[]]),T(),L(),P.push(e)}},G=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(_(q.map((function(e){return e.slice(0)}))));try{for(n.s();!(a=n.n()).done;){var t=a.value;t.includes(e)||t.push(e),r.push(t)}}catch(e){n.e(e)}finally{n.f()}})),q=r.length>0?r:[[]],T(),L()},B=function(e){var r=[];e.forEach((function(e){i[e].have=!0;var a,n=N(_(q.map((function(e){return e.slice(0)}))));try{for(n.s();!(a=n.n()).done;){var t=a.value;t.includes(e)||(t.push(e),r.push(t.sort()))}}catch(e){n.e(e)}finally{n.f()}})),q.forEach((function(a){e.every((function(e){return a.includes(e)}))&&r.push(a.sort())})),r.length>0&&(q=r),T(),L()},F=function(e,r){var a=j[e].probability;if(!(r&&1===a||!r&&0===a))if(r&&0===j[e].probability)S(e);else if(r||1!==j[e].probability){var n=[];q.forEach((function(a){a.includes(e)===r&&n.push(a)})),q=n,P.push("".concat(e,":").concat(r)),T(),L()}else D(e)},Y=function(){for(var e in q=[[]],x=[],P=[],j){if(Object.hasOwnProperty.call(j,e))j[e].reset()}},U=function(e){var r=e.p,a=e.m,n=_(q);if((n=n.filter((function(e){var n=e.filter((function(e){return k.physicals.includes(e)})),t=e.filter((function(e){return k.mentals.includes(e)}));return n.length<=r&&t.length<=a}))).length<r+a)return console.error("Insight Error: No present branch for physical ".concat(r,", mental ").concat(a)),!1;q=_(n),T(),L()};function W(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function $(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?W(Object(a),!0).forEach((function(r){J(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):W(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}function J(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var K=function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=document.createElement("span");a.setAttribute("class","mono"),a.appendChild(Object.assign(document.createElement("span"),{style:"color:DarkOrchid",innerHTML:"["})),a.appendChild(Object.assign(document.createElement("span"),{style:"color:Gold",innerHTML:"insight"})),a.appendChild(Object.assign(document.createElement("span"),{style:"color:DarkOrchid",innerHTML:"] "})),r?a.insertAdjacentHTML("beforeend",e):a.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:e})),globalThis.nexusclient.add_html_line(a.outerHTML)},Q={fg:"olive",bg:""},V={fg:"royalblue",bg:""},X={fg:"",bg:""},Z={fg:"ForestGreen",bg:""},ee={fg:"",bg:""},re={fg:"slategray",bg:""},ae={fg:"greenyellow",bg:""},ne={fg:"DeepSkyBlue",bg:""},te={fg:"DarkOrange",bg:""},se={fg:"Red",bg:""},ie={fg:"Gold",bg:""},oe={fg:"firebrick",bg:""},le={fg:"Tan",bg:""},ce={fg:"darkseagreen",bg:""},de={fg:"orchid",bg:""},me={fg:"sienna",bg:""},he={fg:"darkviolet",bg:""},ue={fg:"lightpink",bg:""},be={fg:"paleyellow",bg:"darkslategray"},ge={addiction:$({shortName:"add"},te),aeon:$({shortName:"ae"},ae),agoraphobia:$({shortName:"agor"},V),amnesia:{shortName:"amn",fg:"",bg:""},anorexia:$({shortName:"ANO"},me),asthma:$({shortName:"AST"},Z),blackout:{shortName:"bo",fg:"",bg:""},blindness:$({shortName:"unb"},X),bound:$({shortName:"bnd"},be),brokenleftarm:$({shortName:"la1"},de),brokenleftleg:$({shortName:"ll1"},de),brokenrightarm:$({shortName:"ra1"},de),brokenrightleg:$({shortName:"rl1"},de),bruisedribs:{shortName:"ribs",fg:"",bg:""},burning:$({shortName:"burn"},de),calcifiedskull:$({shortName:"calh"},he),calcifiedtorso:$({shortName:"calt"},he),claustrophobia:$({shortName:"clau"},le),clumsiness:$({shortName:"clu"},Z),concussion:$({shortName:"conc"},he),confusion:$({shortName:"con"},le),corruption:{shortName:"corr",fg:"",bg:""},crackedribs:$({shortName:"cr"},ue),crushedthroat:$({shortName:"cru"},de),daeggerimpale:$({shortName:"daeg"},be),damage:{shortName:"dmg",fg:"tomato",bg:""},damagedleftarm:$({shortName:"la2"},he),damagedleftleg:$({shortName:"ll2"},he),damagedrightarm:$({shortName:"ra2"},he),damagedrightleg:$({shortName:"rl2"},he),damagedhead:$({shortName:"hd2"},he),darkshade:$({shortName:"dark"},te),dazed:$({shortName:"dzd"},ae),dazzled:$({shortName:"dzl"},de),deadening:$({shortName:"dea"},ae),deafness:$({shortName:"und"},ee),dehydrated:{shortName:"deh",fg:"",bg:""},dementia:$({shortName:"dem"},le),depression:$({shortName:"dep"},ie),deteriorate:{shortName:"det",fg:"",bg:""},disloyalty:$({shortName:"disl"},oe),disrupted:{shortName:"disr",fg:"",bg:""},dissonance:$({shortName:"disso"},ie),dizziness:$({shortName:"diz"},ie),enscorcelled:{shortName:"ensor",fg:"",bg:""},entangled:$({shortName:"entgl"},be),epilepsy:$({shortName:"epi"},ie),fear:{shortName:"fear",fg:"",bg:""},flushings:$({shortName:"flush"},te),frozen:$({shortName:"frz"},ce),generosity:$({shortName:"gen"},ne),grievouswounds:$({shortName:"grv"},ue),guilt:$({shortName:"gui"},V),haemophilia:$({shortName:"haem"},te),hallucinations:$({shortName:"hall"},le),hamstrung:{shortName:"hms",fg:"",bg:""},healthleech:$({shortName:"hthl"},Z),heartseed:$({shortName:"heart"},he),hellsight:$({shortName:"hell"},oe),horror:$({shortName:"hor"},ie),hypersomnia:$({shortName:"hypers"},le),hypochondria:$({shortName:"hypoch"},Z),hypothermia:$({shortName:"hypoth"},he),icefisted:{shortName:"ice",fg:"",bg:""},impaled:$({shortName:"impl"},be),impatience:$({shortName:"IMPAT"},ie),indifference:$({shortName:"ind"},ne),itching:$({shortName:"itch"},me),justice:$({shortName:"just"},ne),kkractlebrand:$({shortName:"kkr"},ue),laceratedthroat:$({shortName:"lac2"},he),latched:$({shortName:"latch"},ue),lethargy:$({shortName:"let"},te),lightbind:{shortName:"light",fg:"",bg:""},loneliness:$({shortName:"lon"},V),lovers:$({shortName:"love"},ne),manaleech:$({shortName:"man"},oe),mangledleftarm:$({shortName:"la3"},he),mangledleftleg:$({shortName:"ll3"},he),mangledrightarm:$({shortName:"ra3"},he),mangledrightleg:$({shortName:"rl3"},he),mangledhead:$({shortName:"hd3"},he),masochism:$({shortName:"maso"},V),mildtrauma:$({shortName:"tor1"},he),mycalium:$({shortName:"myc"},ie),nausea:$({shortName:"nau"},te),numbedleftarm:{shortName:"nbla",fg:"",bg:""},numbedrightarm:{shortName:"nbra",fg:"",bg:""},pacified:$({shortName:"pac"},ne),paralysis:$({shortName:"PAR"},se),paranoia:$({shortName:"prn"},le),parasite:$({shortName:"prs"},Z),peace:$({shortName:"pea"},ne),phlogisticated:{shortName:"phlog",fg:"",bg:""},pinshot:{shortName:"psh",fg:"",bg:""},pressure:$({shortName:"pres"},re),prone:{shortName:"pr",fg:"",bg:""},pyramides:$({shortName:"pyra"},se),pyre:$({shortName:"pyre"},ne),rebbies:$({shortName:"reb"},Z),recklessness:$({shortName:"reck"},V),retardation:{shortName:"ret",fg:"",bg:""},retribution:$({shortName:"retr"},ne),revealed:{shortName:"rev",fg:"",bg:""},sandfever:$({shortName:"sand"},ie),scalded:$({shortName:"scald"},me),scytherus:$({shortName:"scy"},te),selarnia:$({shortName:"sel"},de),sensitivity:$({shortName:"sen"},Z),serioustrauma:$({shortName:"tor2"},he),shadowmadness:$({shortName:"shad"},ie),shivering:$({shortName:"shiv"},ce),shyness:$({shortName:"shy"},ie),skullfractures:$({shortName:"sf"},ue),slashedthroat:$({shortName:"lac1"},me),sleeping:{shortName:"slp",fg:"",bg:""},slickness:$({shortName:"SLI"},se),slimeobscure:{shortName:"nkh",fg:"",bg:""},spiritburn:$({shortName:"spirB"},V),spiritwrack:{shortName:"spirW",fg:"",bg:""},stupidity:$({shortName:"st"},ie),stuttering:$({shortName:"stut"},me),homunculusmercury:{shortName:"merc",fg:"",bg:""},temperedcholeric:$({shortName:"choH"},Q),temperedmelancholic:$({shortName:"melaH"},Q),temperedphlegmatic:$({shortName:"phleH"},Q),temperedsanguine:$({shortName:"sanH"},Q),tenderskin:$({shortName:"tend"},V),tension:$({shortName:"tens"},ae),timeflux:{shortName:"tmfx",fg:"",bg:""},timeloop:$({shortName:"tmlp"},ne),tonguetied:$({shortName:"tngt"},he),torntendons:$({shortName:"tt"},ue),transfixation:$({shortName:"trfx"},be),unweavingbody:$({shortName:"unwM"},te),unweavingspirit:$({shortName:"unwS"},ae),unweavingmind:$({shortName:"unwM"},ie),vertigo:$({shortName:"vert"},V),vitrified:{shortName:"vitri",fg:"",bg:""},voidfisted:{shortName:"void",fg:"",bg:""},voyria:{shortName:"voy",fg:"",bg:""},weariness:$({shortName:"wea"},Z),webbed:$({shortName:"web"},be),whisperingmadness:$({shortName:"mad"},V),wristfractures:$({shortName:"wf"},ue)};function pe(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function fe(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}var ye=function(e){var r=e.id,a=e.player,n=e.probability,t=void 0===n?0:n;if(ke(a)&&void 0!==r){var s=i[r];return!!(s.have&&s.probability>=t)}},ve=function(e){var r=e.ids,a=e.probability,n=void 0===a?0:a,t=e.player;if(ke(t)){var s=!1;return Array.isArray(r)&&(s=r.every((function(e){return x.indexOf(e)>-1&&i[e].probability>=n}))),s}},ke=function(e){if(void 0===e||e==A.id)return!0},_e={};function Ne(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function we(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}[{id:"balance",duration:2},{id:"equilibrium",duration:2},{id:"herb",duration:2},{id:"smoke",duration:2},{id:"salve",duration:2},{id:"focus",duration:2},{id:"tree",duration:2}].forEach((function(e){return _e[e.id]=(a=(r=e).id,n=r.duration,(t={name:a,have:!0,got:function(){_e[a].have=!0,eventStream.raiseEvent("insightGotBal",_e[a]),eventStream.raiseEvent("insightGot".concat(a),_e[a]),_e[a].timer.stop()},lost:function(){var e;_e[a].have=!1,eventStream.raiseEvent("insightLostBal",_e[a]),eventStream.raiseEvent("insightLost".concat(a),_e[a]),null===(e=_e[a].timer)||void 0===e||e.start()},reset:function(){_e[a].have=!0,_e[a].timer.stop()},timer:new s("insightTimer".concat(a),n)}).timer.addCallback(t.reset),t);var r,a,n,t}));var Oe={version:"0.1.7",addAff:function(e){var r=e.id,a=e.player;ke(a)&&void 0!==r&&(H(r),insight.reporting.notices&&K("Added: ".concat(r)))},getAff:function(e){var r=e.id,a=e.player;if(ke(a)&&void 0!==r)return insight.affs[r]},removeAff:function(e){var r=e.id,a=e.player;ke(a)&&void 0!==r&&(I(r),insight.reporting.notices&&K("Removed: ".concat(r)))},usedCure:function(e){var a=e.id;e.player;!function(e){var a,n=null===(a=r[e])||void 0===a?void 0:a.blocks;void 0!==n&&n.forEach((function(e){Array.isArray(e)?ve(e)&&e.forEach((function(e){return F(e,!1)})):ye(e)&&F(e,!1)}))}(a),R(a)},confirmAff:function(e){var r=e.id,a=e.state,n=e.player;ke(n)&&void 0!==r&&(F(r,a),insight.reporting.notices&&K("Confirmed: ".concat(r," ").concat(a)))},reset:function(){Y(),b(),v(),insight.reporting.notices&&K("Reset")},randomAffs:function(e){var r=e.ids,a=e.player;ke(a)&&void 0!==r&&(G(r),insight.reporting.notices&&K("Random: ".concat(r)))},readAuraConfirm:function(e){var r=e.p,a=e.m,n=e.player;ke(n)&&U({p:r,m:a})},smartAffs:function(e){var r=e.ids,a=e.player;ke(a)&&void 0!==r&&(B(r),insight.reporting.notices&&K("Smart: ".concat(r)))},addDef:function(e){var r=e.id,a=e.player;ke(a)&&void 0!==r&&(h[r]=!0,insight.reporting.notices&&K("Def (".concat(r,"): true")))},removeDef:function(e){var r=e.id,a=e.player;ke(a)&&void 0!==r&&(h[r]=!1,insight.reporting.notices&&K("Def (".concat(r,"): false")))},hasAff:ye,hasAffs:ve,hasAnAff:function(e){var r=e.ids,a=e.player,n=e.probability,t=void 0===n?0:n;if(ke(a)){var s=!1;return Array.isArray(r)&&(s=x.some((function(e){return r.indexOf(e)>-1&&i[e].probability>=t}))),s}},hasDef:function(e){return h[e]},setStatus:function(e){var r=e.id,a=e.value;e.player;f[r]=a,insight.reporting.notices&&K("Status (".concat(r,"): ").concat(a))},getStatus:function(e){return f[e]},currentAffs:function(){return x},currentAffDisplay:function(){var e=[];return x.forEach((function(r){return e.push("".concat(r,": ").concat(i[r].probability))})),e},currentAffDisplayHTML:function(){var e=document.createElement("span");if(e.setAttribute("class","mono"),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"["})),x.length>1)for(var r=0;r<x.length-1;r++){var a=x[r];e.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(ge[a].fg,";background:").concat(ge[a].bg),innerHTML:insight.reporting.shortNames?"".concat(ge[a].shortName):"".concat(a)})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:x.length>1?": ".concat(i[a].probability,", "):": ".concat(i[a].probability)}))}var n=x.at(-1);return e.appendChild(Object.assign(document.createElement("span"),{style:"color:".concat(ge[n].fg,";background:").concat(ge[n].bg),innerHTML:insight.reporting.shortNames?"".concat(ge[n].shortName):"".concat(n)})),e.appendChild(Object.assign(document.createElement("span"),{innerHTML:": ".concat(i[n].probability)})),x.forEach((function(e){})),e.appendChild(Object.assign(document.createElement("span"),{style:"color:LightGoldenRodYellow",innerHTML:"]"})),e.outerHTML},nextLine:function(){var e=nexusclient.current_block.indexOf(nexusclient.current_line);return nexusclient.current_block[e+1].parsed_line.text()},target:A,reporting:{notices:!1,shortNames:!1,colors:!1},occultist:k,affs:i,defs:h,bals:_e,status:f,timeline:function(){return q},setTarget:function(e){var r;E.hasOwnProperty(e)?i=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?pe(Object(a),!0).forEach((function(r){fe(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):pe(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},E[e].affs):E[e]={affs:(r={},l.forEach((function(e){r[e]=o(e)})),r),defs:{},state:{}}},players:E};globalThis.insight=function(e){for(var r=1;r<arguments.length;r++){var a=null!=arguments[r]?arguments[r]:{};r%2?Ne(Object(a),!0).forEach((function(r){we(e,r,a[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ne(Object(a)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))}))}return e}({},Oe),globalThis.insight.reset(),"undefined"!=typeof nexusclient&&fetch("https://unpkg.com/nexsight/insight3.nxs",{cache:"no-store"}).then((function(e){return e.json()})).then((function(e){nexusclient.packages().get("insight3").apply(e,nexusclient.reflexes())}))}();
package/insight3.nxs CHANGED
@@ -125,7 +125,7 @@
125
125
  {
126
126
  "type": "script",
127
127
  "enabled": true,
128
- "script": "insight.confirmAff({aff: \"anorexia\", state: false, player: args[1]});\n\nlet deafnessTimer\nclearTimeout(deafnessTimer);\ndeafnessTimer = setTimeout(() => { \n insight.usedCure({player: args[1], cure: 'calamine'}); \n}, 3000);"
128
+ "script": "insight.confirmAff({id: \"anorexia\", state: false, player: args[1]});\n\nlet deafnessTimer\nclearTimeout(deafnessTimer);\ndeafnessTimer = setTimeout(() => { \n insight.usedCure({player: args[1], cure: 'calamine'}); \n}, 3000);"
129
129
  }
130
130
  ],
131
131
  "text": "^(\\w+?) eats a (?:hawthorn berry|calamine crystal)\\.$",
@@ -205,7 +205,7 @@
205
205
  {
206
206
  "type": "script",
207
207
  "enabled": true,
208
- "script": "insight.confirmAff({aff: \"slickness\", state: false, player: args[1]});\n\nif (insight.hasAff('unblind')) {\n insight.addAff({player: args[1], aff: 'undeaf'});\n} else if (insight.hasAff('undeaf')) {\n\tinsight.addAff({player: args[1], aff: 'undeaf'});\n}"
208
+ "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}"
209
209
  }
210
210
  ],
211
211
  "text": "^(\\w+?) takes some salve from a vial and rubs it on \\w+ head\\.$",
@@ -221,7 +221,7 @@
221
221
  {
222
222
  "type": "script",
223
223
  "enabled": true,
224
- "script": "if (insight.hasAnAff({affArray: [\"hypothermia\",\n \"heartseed\",\n \"serioustrauma\",\n \"mildtrauma\",\n \"calcifiedtorso\"], player: args[1]})) {\n\tinsight.usedCure({cure: \"restoration to torso\", player: args[1]});\n} else {\n\tinsight.usedCure({cure: \"mending to torso\", player: args[1]});\n}\n"
224
+ "script": "if (insight.hasAnAff({ids: [\"hypothermia\",\n \"heartseed\",\n \"serioustrauma\",\n \"mildtrauma\",\n \"calcifiedtorso\"], player: args[1]})) {\n\tinsight.usedCure({cure: \"restoration to torso\", player: args[1]});\n} else {\n\tinsight.usedCure({cure: \"mending to torso\", player: args[1]});\n}\n"
225
225
  }
226
226
  ],
227
227
  "text": "^(\\w+?) takes some salve from a vial and rubs it on \\w+ torso\\.$",
@@ -237,7 +237,7 @@
237
237
  {
238
238
  "type": "script",
239
239
  "enabled": true,
240
- "script": "//Imyrr takes some salve from a vial and rubs it on his arms.\nif (insight.hasAnAff({affArray: [\"damagedleftarm\", \"damagedrightarm\", \"mangledleftarm\", \"mangledrightarm\"], player: args[1]})) {\n\tinsight.usedCure({cure: \"restoration to arms\", player: args[1]});\n} else {\n\tinsight.usedCure({cure: \"mending to arms\", player: args[1]});\n}"
240
+ "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({cure: \"restoration to arms\", player: args[1]});\n} else {\n\tinsight.usedCure({cure: \"mending to arms\", player: args[1]});\n}"
241
241
  }
242
242
  ],
243
243
  "text": "^(\\w+?) takes some salve from a vial and rubs it on \\w+ arms\\.$",
@@ -253,7 +253,7 @@
253
253
  {
254
254
  "type": "script",
255
255
  "enabled": true,
256
- "script": "//Imyrr takes some salve from a vial and rubs it on his legs.\nif (insight.hasAnAff({affArray: [\"damagedleftleg\", \"damagedrightleg\", \"mangledleftleg\", \"mangledrightleg\"], player: args[1]})) {\n\tinsight.usedCure({cure: \"restoration to legs\", player: args[1]});\n} else {\n\tinsight.usedCure({cure: \"mending to legs\", player: args[1]});\n}"
256
+ "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({cure: \"restoration to legs\", player: args[1]});\n} else {\n\tinsight.usedCure({cure: \"mending to legs\", player: args[1]});\n}"
257
257
  }
258
258
  ],
259
259
  "text": "^(\\w+?) takes some salve from a vial and rubs it on \\w+ legs\\.$",
@@ -269,7 +269,7 @@
269
269
  {
270
270
  "type": "script",
271
271
  "enabled": true,
272
- "script": "//Imyrr takes some salve from a vial and rubs it on his skin.\n// Untargetted apply.\n// Caloric, Mass\nif (insight.hasAnAff({affArray: [\"frozen\", \"shivering\"], player: args[1]})) {\n\tinsight.usedCure({cure: \"caloric\", player: args[1]});\n} else {\n\tinsight.addDef({def: \"caloric\", player: args[1]});\n}"
272
+ "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({cure: \"caloric\", player: args[1]});\n} else {\n\tinsight.addDef({id: \"caloric\", player: args[1]});\n}"
273
273
  }
274
274
  ],
275
275
  "text": "^(\\w+?) takes some salve from a vial and rubs it on \\w+ skin\\.$",
@@ -285,7 +285,7 @@
285
285
  {
286
286
  "type": "script",
287
287
  "enabled": true,
288
- "script": "if (insight.hasAnAff({affArray: [\"aeon\", \"deadening\", \"tension\", \"unweavingspirit\"], player: args[1]})) {\n\tinsight.usedCure({cure: \"cinnabar\", player: args[1]});\n} else if (insight.hasAnAff({affArray: [\"disloyalty\", \"hellsight\", \"manaleech\", \"slickness\"], player: args[1]})) {\n\tinsight.usedCure({cure: \"realgar\", player: args[1]});\n}"
288
+ "script": "if (insight.hasAnAff({ids: [\"aeon\", \"deadening\", \"tension\", \"unweavingspirit\"], player: args[1]})) {\n\tinsight.usedCure({cure: \"cinnabar\", player: args[1]});\n} else if (insight.hasAnAff({ids: [\"disloyalty\", \"hellsight\", \"manaleech\", \"slickness\"], player: args[1]})) {\n\tinsight.usedCure({cure: \"realgar\", player: args[1]});\n}"
289
289
  }
290
290
  ],
291
291
  "text": "^(\\w+?) takes a long drag off \\w+ pipe\\.$",
@@ -450,7 +450,7 @@
450
450
  {
451
451
  "type": "script",
452
452
  "enabled": true,
453
- "script": "insight.confirmAff({aff: \"lovers\", state: false, player: args[1]});"
453
+ "script": "insight.confirmAff({id: \"lovers\", state: false, player: args[1]});"
454
454
  }
455
455
  ],
456
456
  "text": "^(\\w+) shakes \\w+ head and a look of clarity returns to \\w+ eyes\\.$",
@@ -482,7 +482,7 @@
482
482
  {
483
483
  "type": "script",
484
484
  "enabled": true,
485
- "script": "insight.confirmAff({aff: \"whisperingmadness\", player: args[1]});"
485
+ "script": "insight.confirmAff({id: \"whisperingmadness\", player: args[1]});"
486
486
  }
487
487
  ],
488
488
  "text": "^(\\w+) ceases \\w+ violent trembling\\.$",
@@ -498,7 +498,7 @@
498
498
  {
499
499
  "type": "script",
500
500
  "enabled": true,
501
- "script": "insight.removeAff({aff: \"slimeobscure\", player: args[1]});"
501
+ "script": "insight.removeAff({id: \"slimeobscure\", player: args[1]});"
502
502
  }
503
503
  ],
504
504
  "text": "^(\\w+) finally rids \\w+ of the slime covering \\w+\\.$",
@@ -514,7 +514,7 @@
514
514
  {
515
515
  "type": "script",
516
516
  "enabled": true,
517
- "script": "insight.confirmAff({aff: \"slickness\", state: false, player: args[1]});"
517
+ "script": "insight.confirmAff({id: \"slickness\", state: false, player: args[1]});"
518
518
  }
519
519
  ],
520
520
  "text": "^(\\w+) applies a sileris berry to \\w+\\.$",
@@ -537,7 +537,7 @@
537
537
  {
538
538
  "type": "script",
539
539
  "enabled": true,
540
- "script": "insight.addAff({aff: \"paralysis\", state: true, player: args[1]});"
540
+ "script": "insight.addAff({id: \"paralysis\", state: true, player: args[1]});"
541
541
  }
542
542
  ],
543
543
  "text": "^Horror overcomes (\\w+?)'s face as \\w+ body stiffens into paralysis\\.$",
@@ -553,7 +553,7 @@
553
553
  {
554
554
  "type": "script",
555
555
  "enabled": true,
556
- "script": "insight.addAff({aff: \"paralysis\", state: true, player: args[1]});"
556
+ "script": "insight.addAff({id: \"paralysis\", state: true, player: args[1]});"
557
557
  }
558
558
  ],
559
559
  "text": "^Horror overcomes the face of (\\w+?) as \\w+ body locks in paralysis\\.$",
@@ -569,7 +569,7 @@
569
569
  {
570
570
  "type": "script",
571
571
  "enabled": true,
572
- "script": "insight.addAff({aff: \"recklessness\", player: args[1]});"
572
+ "script": "insight.addAff({id: \"recklessness\", player: args[1]});"
573
573
  }
574
574
  ],
575
575
  "text": "^(\\w+) smiles as \\w+ rams \\w+ fist into \\w+ jaw\\.$",
@@ -585,7 +585,7 @@
585
585
  {
586
586
  "type": "script",
587
587
  "enabled": true,
588
- "script": "insight.addAff({aff: \"recklessness\", player: args[1]});"
588
+ "script": "insight.addAff({id: \"recklessness\", player: args[1]});"
589
589
  }
590
590
  ],
591
591
  "text": "^(\\w+) uses \\w+ right foot to stomp on \\w+ left as hard as possible\\.$",
@@ -601,7 +601,7 @@
601
601
  {
602
602
  "type": "script",
603
603
  "enabled": true,
604
- "script": "insight.addAff({aff: \"impatience\", player: args[1]});"
604
+ "script": "insight.addAff({id: \"impatience\", player: args[1]});"
605
605
  }
606
606
  ],
607
607
  "text": "^(\\w+) shuffles \\w+ feet in boredom\\.$",
@@ -617,7 +617,7 @@
617
617
  {
618
618
  "type": "script",
619
619
  "enabled": true,
620
- "script": "insight.addAff({aff: \"darkshade\", player: args[1]});"
620
+ "script": "insight.addAff({id: \"darkshade\", player: args[1]});"
621
621
  }
622
622
  ],
623
623
  "text": "^(\\w+) lets out a piercing scream, as if wounded by the very sunlight\\.$",
@@ -633,7 +633,7 @@
633
633
  {
634
634
  "type": "script",
635
635
  "enabled": true,
636
- "script": "insight.addAff({aff: \"nausea\", player: args[1]});"
636
+ "script": "insight.addAff({id: \"nausea\", player: args[1]});"
637
637
  }
638
638
  ],
639
639
  "text": "^(\\w+) doubles over, vomiting violently\\.$",
@@ -649,7 +649,7 @@
649
649
  {
650
650
  "type": "script",
651
651
  "enabled": true,
652
- "script": "insight.confirmAff({aff: \"claustrophobia\", state: true, player: args[1]});"
652
+ "script": "insight.confirmAff({id: \"claustrophobia\", state: true, player: args[1]});"
653
653
  }
654
654
  ],
655
655
  "text": "^(\\w+) begins to pant in terror\\.$",
@@ -665,7 +665,7 @@
665
665
  {
666
666
  "type": "script",
667
667
  "enabled": true,
668
- "script": "insight.confirmAff({aff: \"agoraphobia\", state: true, player: args[1]});"
668
+ "script": "insight.confirmAff({id: \"agoraphobia\", state: true, player: args[1]});"
669
669
  }
670
670
  ],
671
671
  "text": "^(\\w+) is gripped with fear, staring out with terrified eyes\\.$",
@@ -681,7 +681,7 @@
681
681
  {
682
682
  "type": "script",
683
683
  "enabled": true,
684
- "script": "insight.confirmAff({aff: \"confusion\", state: true, player: args[1]});"
684
+ "script": "insight.confirmAff({id: \"confusion\", state: true, player: args[1]});"
685
685
  }
686
686
  ],
687
687
  "text": "^(\\w+) looks about bemusedly\\.$",
@@ -697,7 +697,7 @@
697
697
  {
698
698
  "type": "script",
699
699
  "enabled": true,
700
- "script": "insight.confirmAff({aff: \"shyness\", state: true, player: args[1]});"
700
+ "script": "insight.confirmAff({id: \"shyness\", state: true, player: args[1]});"
701
701
  }
702
702
  ],
703
703
  "text": "^(\\w+) trembles with fear\\.$",
@@ -713,7 +713,7 @@
713
713
  {
714
714
  "type": "script",
715
715
  "enabled": true,
716
- "script": "insight.confirmAff({aff: \"dementia\", state: true, player: args[1]});"
716
+ "script": "insight.confirmAff({id: \"dementia\", state: true, player: args[1]});"
717
717
  }
718
718
  ],
719
719
  "text": "^(\\w+) stares about \\w+ frenziedly, wild-eyed\\.$",
@@ -729,7 +729,7 @@
729
729
  {
730
730
  "type": "script",
731
731
  "enabled": true,
732
- "script": "insight.addAff({aff: \"prone\", player: args[1]});"
732
+ "script": "insight.addAff({id: \"prone\", player: args[1]});"
733
733
  }
734
734
  ],
735
735
  "text": "^(\\w+)'s eyes close suddenly as \\w+ falls asleep\\.$",
@@ -745,7 +745,7 @@
745
745
  {
746
746
  "type": "script",
747
747
  "enabled": true,
748
- "script": "insight.addAff({aff: \"slickness\", player: args[1]});\ninsight.removeDef({def: \"fangbarrier\", player: args[1]});"
748
+ "script": "insight.addAff({id: \"slickness\", player: args[1]});\ninsight.removeDef({id: \"fangbarrier\", player: args[1]});"
749
749
  }
750
750
  ],
751
751
  "text": "^The protective coating covering the skin of (\\w+) sloughs off\\.$",
@@ -770,7 +770,7 @@
770
770
  {
771
771
  "type": "script",
772
772
  "enabled": true,
773
- "script": "insight.addDef({def: \"shield\", player: args[1]});"
773
+ "script": "insight.addDef({id: \"shield\", player: args[1]});"
774
774
  }
775
775
  ],
776
776
  "text": "^The magical shield surrounding \\w+ makes that impossible\\.$",
@@ -786,7 +786,7 @@
786
786
  {
787
787
  "type": "script",
788
788
  "enabled": true,
789
- "script": "insight.addDef({def: \"shield\", player: args[1]});"
789
+ "script": "insight.addDef({id: \"shield\", player: args[1]});"
790
790
  }
791
791
  ],
792
792
  "text": "^A dizzying beam of energy strikes you as your attack rebounds off of \\w+?'s shield\\.$",
@@ -802,7 +802,7 @@
802
802
  {
803
803
  "type": "script",
804
804
  "enabled": true,
805
- "script": "insight.addDef({def: \"fangbarrier\", player: args[1]});"
805
+ "script": "insight.addDef({id: \"fangbarrier\", player: args[1]});"
806
806
  }
807
807
  ],
808
808
  "text": "^A nearly invisible magical shield forms around (\\w+?)\\.$",
@@ -818,7 +818,7 @@
818
818
  {
819
819
  "type": "script",
820
820
  "enabled": true,
821
- "script": "insight.removeDef({def: \"shield\", player: args[1]});"
821
+ "script": "insight.removeDef({id: \"shield\", player: args[1]});"
822
822
  }
823
823
  ],
824
824
  "text": "^(\\w+) has no shield for your gremlin to shatter, occultist\\.$",
@@ -834,7 +834,7 @@
834
834
  {
835
835
  "type": "script",
836
836
  "enabled": true,
837
- "script": "insight.addDef({def: \"fangbarrier\", player: args[1]});"
837
+ "script": "insight.addDef({id: \"fangbarrier\", player: args[1]});"
838
838
  }
839
839
  ],
840
840
  "text": "^A supple purple shell of sileris berry juice has formed around (\\w+)\\.$",
@@ -850,7 +850,7 @@
850
850
  {
851
851
  "type": "script",
852
852
  "enabled": true,
853
- "script": "insight.addDef({def: \"insomnia\", player: args[1]});"
853
+ "script": "insight.addDef({id: \"insomnia\", player: args[1]});"
854
854
  }
855
855
  ],
856
856
  "text": "^(\\w+) clenches \\w+ fists and grits \\w+ teeth\\.$",
@@ -878,7 +878,7 @@
878
878
  {
879
879
  "type": "script",
880
880
  "enabled": true,
881
- "script": "insight.confirmAff({aff: \"undeaf\", state: true, player: args[1]});\n\nconst index = nexusclient.current_block.indexOf(nexusclient.current_line);\nif (!nexusclient.current_block[index + 1].line.includes(insight.target.id)) {\n\tinsight.confirmAff({aff: \"hallucinations\", state: true, player: args[1]});\n}"
881
+ "script": "insight.confirmAff({id: \"undeaf\", state: true, player: args[1]});\n\nconst index = nexusclient.current_block.indexOf(nexusclient.current_line);\nif (!nexusclient.current_block[index + 1].line.includes(insight.target.id)) {\n\tinsight.confirmAff({id: \"hallucinations\", state: true, player: args[1]});\n}"
882
882
  }
883
883
  ],
884
884
  "text": "^A chimera lets out a concussive roar at (\\w+)\\.$",
@@ -894,7 +894,7 @@
894
894
  {
895
895
  "type": "script",
896
896
  "enabled": true,
897
- "script": "insight.confirmAff({aff: \"undeaf\", state: false, player: args[1]});"
897
+ "script": "insight.confirmAff({id: \"undeaf\", state: false, player: args[1]});"
898
898
  }
899
899
  ],
900
900
  "text": "^A chimera throws forward all three of its heads and roars at (\\w+), but \\w+ seems completely unphased\\.$",
@@ -910,7 +910,7 @@
910
910
  {
911
911
  "type": "script",
912
912
  "enabled": true,
913
- "script": "//Doubles focus balance for 60 seconds.\ninsight.addAff({aff: \"weakenedmind\", player: args[1]});"
913
+ "script": "//Doubles focus balance for 60 seconds.\ninsight.addAff({id: \"weakenedmind\", player: args[1]});"
914
914
  }
915
915
  ],
916
916
  "text": "^You command your sycophant to weaken the mind of (\\w+)\\.$",
@@ -926,7 +926,7 @@
926
926
  {
927
927
  "type": "script",
928
928
  "enabled": true,
929
- "script": "insight.addAff({aff: \"haemophilia\", player: args[1]});"
929
+ "script": "insight.addAff({id: \"haemophilia\", player: args[1]});"
930
930
  }
931
931
  ],
932
932
  "text": "^You command your bloodleech to corrupt the blood of (\\w+)\\.$",
@@ -990,7 +990,7 @@
990
990
  {
991
991
  "type": "script",
992
992
  "enabled": true,
993
- "script": "//Gives asthma, or slickness if they already have asthma\n//The protective coating covering the skin of Austere sloughs off.\nif (insight.hasDef(\"sileris\")) {\n if (\n insight.nextLine().includes(\"The protective coating covering the skin of\")\n ) {\n insight.confirmAff({ aff: \"asthma\", player: args[1], state: true });\n insight.addAff({ aff: \"slickness\", player: args[1] });\n } else {\n insight.confirmAff({ aff: \"asthma\", player: args[1], state: true });\n }\n} else {\n if (insight.hasAff(\"asthma\", 0.66)) {\n insight.addAff({ aff: \"slickness\", player: args[1] });\n } else {\n insight.confirmAff({ aff: \"asthma\", player: args[1], state: true });\n }\n}"
993
+ "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.confirmAff({ 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.confirmAff({ id: \"asthma\", player: args[1], state: true });\n }\n}"
994
994
  }
995
995
  ],
996
996
  "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\\.$",
@@ -1006,7 +1006,7 @@
1006
1006
  {
1007
1007
  "type": "script",
1008
1008
  "enabled": true,
1009
- "script": "//Delivered addiction\ninsight.addAff({aff: \"addiction\", player: args[1]});"
1009
+ "script": "//Delivered addiction\ninsight.addAff({id: \"addiction\", player: args[1]});"
1010
1010
  }
1011
1011
  ],
1012
1012
  "text": "^You command your humbug to instill a ravenous hunger in (\\w+)\\.$",
@@ -1022,7 +1022,7 @@
1022
1022
  {
1023
1023
  "type": "script",
1024
1024
  "enabled": true,
1025
- "script": "insight.addAff({aff: \"weariness\", player: args[1]});"
1025
+ "script": "insight.addAff({id: \"weariness\", player: args[1]});"
1026
1026
  }
1027
1027
  ],
1028
1028
  "text": "^You command your hound to erode the will of (\\w+)\\.$",
@@ -1070,7 +1070,7 @@
1070
1070
  {
1071
1071
  "type": "script",
1072
1072
  "enabled": true,
1073
- "script": "//Gives vertigo\ninsight.addAff({aff: \"vertigo\", player: args[1]});"
1073
+ "script": "//Gives vertigo\ninsight.addAff({id: \"vertigo\", player: args[1]});"
1074
1074
  }
1075
1075
  ],
1076
1076
  "text": "^You command your chaos storm to bring down the curse of vertigo upon (\\w+)\\.$",
@@ -1086,7 +1086,7 @@
1086
1086
  {
1087
1087
  "type": "script",
1088
1088
  "enabled": true,
1089
- "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({aff: \"slimeobscure\", player: args[1]});\n\nlet re = /^Horror overcomes \\w+'s face as (?:her|his) body stiffens into paralysis\\.$/;\nif (re.test(insight.nextLine())) {\n insight.confirmAff({aff: \"asthma\", player: args[1], state: true});\n}"
1089
+ "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 (?:her|his) body stiffens into paralysis\\.$/;\nif (re.test(insight.nextLine())) {\n insight.confirmAff({id: \"asthma\", player: args[1], state: true});\n}"
1090
1090
  }
1091
1091
  ],
1092
1092
  "text": "^You command your slime to envelop (\\w+)\\.$",
@@ -1102,7 +1102,7 @@
1102
1102
  {
1103
1103
  "type": "script",
1104
1104
  "enabled": true,
1105
- "script": "// 20 second duration. Recurring healthleech.\ninsight.addAff({ aff: \"palpatarfeed\", player: args[1] });"
1105
+ "script": "// 20 second duration. Recurring healthleech.\ninsight.addAff({ id: \"palpatarfeed\", player: args[1] });"
1106
1106
  }
1107
1107
  ],
1108
1108
  "text": "^You command your worm to infest (\\w+) with maggots\\.$",
@@ -1118,7 +1118,7 @@
1118
1118
  {
1119
1119
  "type": "script",
1120
1120
  "enabled": true,
1121
- "script": "//Delivered Healthleech\ninsight.addAff({aff: \"healthleech\", player: args[1]});"
1121
+ "script": "//Delivered Healthleech\ninsight.addAff({id: \"healthleech\", player: args[1]});"
1122
1122
  }
1123
1123
  ],
1124
1124
  "text": "^Many somethings writhe beneath the skin of (\\w+), and the sickening sound of chewing can be heard\\.$",
@@ -1150,7 +1150,7 @@
1150
1150
  {
1151
1151
  "type": "script",
1152
1152
  "enabled": true,
1153
- "script": "insight.removeDef({def: 'shield', player: args[1]});"
1153
+ "script": "insight.removeDef({id: 'shield', player: args[1]});"
1154
1154
  }
1155
1155
  ],
1156
1156
  "text": "^You command your gremlin to shatter the defences surrounding (\\w+)\\.$",
@@ -1166,7 +1166,7 @@
1166
1166
  {
1167
1167
  "type": "script",
1168
1168
  "enabled": true,
1169
- "script": "insight.removeAff({ aff: \"cleanseaura\", player: args[1] });"
1169
+ "script": "insight.removeAff({ id: \"cleanseaura\", player: args[1] });"
1170
1170
  }
1171
1171
  ],
1172
1172
  "text": "^An eldritch abomination cannot discern anything through the natural defences of \\w+\\.$",
@@ -1182,7 +1182,7 @@
1182
1182
  {
1183
1183
  "type": "script",
1184
1184
  "enabled": true,
1185
- "script": "insight.addAff({aff: \"dizziness\", player: args[1]});"
1185
+ "script": "insight.addAff({id: \"dizziness\", player: args[1]});"
1186
1186
  }
1187
1187
  ],
1188
1188
  "text": "^The gremlin races around and between the legs of (\\w+), \\w+ eyes tracking it as \\w+ sways unsteadily\\.$",
@@ -1198,7 +1198,7 @@
1198
1198
  {
1199
1199
  "type": "script",
1200
1200
  "enabled": true,
1201
- "script": "// Target already has dizziness. Knocked off balance.\ninsight.confirmAff({aff: \"dizziness\", player: args[1], state: true});"
1201
+ "script": "// Target already has dizziness. Knocked off balance.\ninsight.confirmAff({id: \"dizziness\", player: args[1], state: true});"
1202
1202
  }
1203
1203
  ],
1204
1204
  "text": "^The gremlin races between the legs of (\\w+)\\.$",
@@ -1230,7 +1230,7 @@
1230
1230
  {
1231
1231
  "type": "script",
1232
1232
  "enabled": true,
1233
- "script": "insight.smartAffs({affs: insight.occultist.bubonis, player: args[1]})"
1233
+ "script": "insight.smartAffs({ids: insight.occultist.bubonis, player: args[1]})"
1234
1234
  }
1235
1235
  ],
1236
1236
  "text": "^You sense the malignant glee of your bubonis as it infests (\\w+)\\.$",
@@ -1262,7 +1262,7 @@
1262
1262
  {
1263
1263
  "type": "script",
1264
1264
  "enabled": true,
1265
- "script": "insight.addAff({aff: \"nausea\", player: args[1]});"
1265
+ "script": "insight.addAff({id: \"nausea\", player: args[1]});"
1266
1266
  }
1267
1267
  ],
1268
1268
  "text": "^The worm burrowing into (\\w+) writhes and undulates\\.$",
@@ -1310,7 +1310,7 @@
1310
1310
  {
1311
1311
  "type": "script",
1312
1312
  "enabled": true,
1313
- "script": "insight.addAff({aff: \"undeaf\", player: args[1]});"
1313
+ "script": "insight.addAff({id: \"undeaf\", player: args[1]});"
1314
1314
  }
1315
1315
  ],
1316
1316
  "text": "^(\\w+) is startled to attention by the roaring of the chimera's lion head\\.$",
@@ -1326,7 +1326,7 @@
1326
1326
  {
1327
1327
  "type": "script",
1328
1328
  "enabled": true,
1329
- "script": "insight.addAff({aff: \"undeaf\", player: args[1]});\n\nnexSys.eventStream.raiseEvent('proneStateInsight', true);"
1329
+ "script": "insight.addAff({id: \"undeaf\", player: args[1]});\n\nnexSys.eventStream.raiseEvent('proneStateInsight', true);"
1330
1330
  }
1331
1331
  ],
1332
1332
  "text": "^(\\w+) is stunned by the roaring of the chimera's lion head\\.$",
@@ -1342,7 +1342,7 @@
1342
1342
  {
1343
1343
  "type": "script",
1344
1344
  "enabled": true,
1345
- "script": "insight.addAff({aff: `broken${args[2]}${args[3]}`, player: args[1]});"
1345
+ "script": "insight.addAff({id: `broken${args[2]}${args[3]}`, player: args[1]});"
1346
1346
  }
1347
1347
  ],
1348
1348
  "text": "^The crone withers (\\w+)'s (left|right) (arm|leg) into uselessness\\.$",
@@ -1358,7 +1358,7 @@
1358
1358
  {
1359
1359
  "type": "script",
1360
1360
  "enabled": true,
1361
- "script": "insight.addAff({aff: \"burning\", player: args[1]});"
1361
+ "script": "insight.addAff({id: \"burning\", player: args[1]});"
1362
1362
  }
1363
1363
  ],
1364
1364
  "text": "^(\\w+) cries out in horror as \\w+ body erupts into flames!$",
@@ -1509,7 +1509,7 @@
1509
1509
  {
1510
1510
  "type": "script",
1511
1511
  "enabled": true,
1512
- "script": "insight.addAff({aff: \"cleanseaura\", player: args[1]});"
1512
+ "script": "insight.addAff({id: \"cleanseaura\", player: args[1]});"
1513
1513
  }
1514
1514
  ],
1515
1515
  "text": "^A look of sudden concern flits across the visage of (\\w+)\\.$",
@@ -1525,7 +1525,7 @@
1525
1525
  {
1526
1526
  "type": "script",
1527
1527
  "enabled": true,
1528
- "script": "insight.removeAff({aff: \"cleanseaura\", player: args[1]});"
1528
+ "script": "insight.removeAff({id: \"cleanseaura\", player: args[1]});"
1529
1529
  }
1530
1530
  ],
1531
1531
  "text": "^The energy flickers and fades with no visible change\\.$",
@@ -1541,7 +1541,7 @@
1541
1541
  {
1542
1542
  "type": "script",
1543
1543
  "enabled": true,
1544
- "script": "if (insight.hasDef(\"caloric\")) {\n\tinsight.removeDef({def: \"caloric\", player: args[1]})\n} else if (insight.hasAff(\"shivering\", 1)) {\n\tinsight.addAff({aff: \"frozen\", player: args[1]});\n} else {\n\tinsight.addAff({aff: \"shivering\", player: args[1]});\n}"
1544
+ "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}"
1545
1545
  }
1546
1546
  ],
1547
1547
  "text": "^You create a tendril of icy blue light that lashes out at (\\w+) and wraps around \\w+ aura\\.$",
@@ -1557,7 +1557,7 @@
1557
1557
  {
1558
1558
  "type": "script",
1559
1559
  "enabled": true,
1560
- "script": "// Redundant with third person confirm message.\ninsight.addAff({aff: \"undeaf\", player: args[1]});\ninsight.addAff({aff: \"unblind\", player: args[1]});"
1560
+ "script": "// Redundant with third person confirm message.\ninsight.addAff({id: \"undeaf\", player: args[1]});\ninsight.addAff({id: \"unblind\", player: args[1]});"
1561
1561
  }
1562
1562
  ],
1563
1563
  "text": "^Focusing your will, you exert your aura at (\\w+) and snap your fingers, forcing \\w+ to pay attention to you\\.$",
@@ -1573,7 +1573,7 @@
1573
1573
  {
1574
1574
  "type": "script",
1575
1575
  "enabled": true,
1576
- "script": "//Removed deafness and blindness\ninsight.addAff({aff: \"undeaf\", player: args[1]});\ninsight.addAff({aff: \"unblind\", player: args[1]});"
1576
+ "script": "//Removed deafness and blindness\ninsight.addAff({id: \"undeaf\", player: args[1]});\ninsight.addAff({id: \"unblind\", player: args[1]});"
1577
1577
  }
1578
1578
  ],
1579
1579
  "text": "^(\\w+)'s eyes flicker open and \\w+ head snaps up\\.$",
@@ -1605,7 +1605,7 @@
1605
1605
  {
1606
1606
  "type": "script",
1607
1607
  "enabled": true,
1608
- "script": "//Always hits Right then Left\nif (insight.hasAff(\"brokenrightarm\", 1)) {\n\tinsight.addAff({aff: \"brokenleftarm\", player: args[1]});\n} else {\n\tinsight.addAff({aff: \"brokenrightarm\", player: args[1]});\n}"
1608
+ "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}"
1609
1609
  }
1610
1610
  ],
1611
1611
  "text": "^You reach out and stroke an arm of (\\w+), and it withers away\\.$",
@@ -1621,7 +1621,7 @@
1621
1621
  {
1622
1622
  "type": "script",
1623
1623
  "enabled": true,
1624
- "script": "//Always hits Right then Left\nif (insight.hasAff(\"brokenrightleg\", 1)) {\n\tinsight.addAff({aff: \"brokenleftleg\", player: args[1]});\n} else {\n\tinsight.addAff({aff: \"brokenrightleg\", player: args[1]});\n}"
1624
+ "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}"
1625
1625
  }
1626
1626
  ],
1627
1627
  "text": "^You reach out and grasp (\\w+)'s leg in an iron grip, and it shrivels feebly\\.$",
@@ -1637,7 +1637,7 @@
1637
1637
  {
1638
1638
  "type": "script",
1639
1639
  "enabled": true,
1640
- "script": "insight.addAff({aff: `broken${args[2]}${args[3]}`, player: args[1]});"
1640
+ "script": "insight.addAff({id: `broken${args[2]}${args[3]}`, player: args[1]});"
1641
1641
  }
1642
1642
  ],
1643
1643
  "text": "^You touch (\\w+)'s (right|left) (arm|leg), and it shrivels away\\.$",
@@ -1653,7 +1653,7 @@
1653
1653
  {
1654
1654
  "type": "script",
1655
1655
  "enabled": true,
1656
- "script": "insight.addAff({aff: \"shyness\", player: args[1]});\ninsight.addAff({aff: \"disloyalty\", player: args[1]});"
1656
+ "script": "insight.addAff({id: \"shyness\", player: args[1]});\ninsight.addAff({id: \"disloyalty\", player: args[1]});"
1657
1657
  }
1658
1658
  ],
1659
1659
  "text": "^Feathers sprout up all over (\\w+)'s face, and the lips thicken and lengthen into a small beak\\.$",
@@ -1669,7 +1669,7 @@
1669
1669
  {
1670
1670
  "type": "script",
1671
1671
  "enabled": true,
1672
- "script": "insight.addAff({aff: \"shyness\", player: args[1]});\ninsight.addAff({aff: \"disloyalty\", player: args[1]});"
1672
+ "script": "insight.addAff({id: \"shyness\", player: args[1]});\ninsight.addAff({id: \"disloyalty\", player: args[1]});"
1673
1673
  }
1674
1674
  ],
1675
1675
  "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\\.$",
@@ -1685,7 +1685,7 @@
1685
1685
  {
1686
1686
  "type": "script",
1687
1687
  "enabled": true,
1688
- "script": "//asthma, clumsiness, healthleech, sensitivity, slickness, paralysis, or darkshade.\ninsight.addAff({aff: args[2], player: args[1]});"
1688
+ "script": "//asthma, clumsiness, healthleech, sensitivity, slickness, paralysis, or darkshade.\ninsight.addAff({id: args[2], player: args[1]});"
1689
1689
  }
1690
1690
  ],
1691
1691
  "text": "^You make a sharp gesture toward (\\w+), disrupting \\w+ aura with the (\\w+) affliction\\.$",
@@ -1701,7 +1701,7 @@
1701
1701
  {
1702
1702
  "type": "script",
1703
1703
  "enabled": true,
1704
- "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({aff: \"stupidity\", player: args[1]});},\n orange() {insight.addAff({aff: \"paralysis\", player: args[1]});},\n violet() {\n \tif (insight.hasDef({def: \"speed\", player: args[1]})) {\n \tinsight.removeDef({def: \"speed\", player: args[1]});\n } else {\n \tinsight.addAff({aff: \"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]());"
1704
+ "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]());"
1705
1705
  }
1706
1706
  ],
1707
1707
  "text": "^(\\w+) is hit by a (.+) ray\\.$",
@@ -1717,7 +1717,7 @@
1717
1717
  {
1718
1718
  "type": "script",
1719
1719
  "enabled": true,
1720
- "script": "insight.addAff({aff: \"whisperingmadness\", player: args[1]});"
1720
+ "script": "insight.addAff({id: \"whisperingmadness\", player: args[1]});"
1721
1721
  }
1722
1722
  ],
1723
1723
  "text": "^You pass your hand in front of (\\w+)\\. \\w+ trembles and \\w+ eyes widen in terror\\.$",
@@ -1733,7 +1733,7 @@
1733
1733
  {
1734
1734
  "type": "script",
1735
1735
  "enabled": true,
1736
- "script": "insight.occultist.whisperingmadness.forEach(e => insight.removeAff({aff: e, player: args[1]}));"
1736
+ "script": "insight.occultist.whisperingmadness.forEach(e => insight.removeAff({id: e, player: args[1]}));"
1737
1737
  }
1738
1738
  ],
1739
1739
  "text": "^You pass your hand in front of (\\w+)\\. \\w+ shades \\w+ head as if clearing \\w+ mind\\.$",
@@ -1749,7 +1749,7 @@
1749
1749
  {
1750
1750
  "type": "script",
1751
1751
  "enabled": true,
1752
- "script": "insight.addAff({aff: \"whisperingmadness\", player: args[1]});"
1752
+ "script": "insight.addAff({id: \"whisperingmadness\", player: args[1]});"
1753
1753
  }
1754
1754
  ],
1755
1755
  "text": "^\\w+ passes \\w+ hand in front of (\\w+)\\. \\w+ trembles and \\w+ eyes widen in terror\\.$",
@@ -1765,7 +1765,7 @@
1765
1765
  {
1766
1766
  "type": "script",
1767
1767
  "enabled": true,
1768
- "script": "insight.confirmAff({aff: \"whisperingmadness\", player: args[1], state: true});"
1768
+ "script": "insight.confirmAff({id: \"whisperingmadness\", player: args[1], state: true});"
1769
1769
  }
1770
1770
  ],
1771
1771
  "text": "^(\\w+) trembles and (?:her|his) eyes widen in terror\\. (?:He|She) looks around (?:herself|himself) as if searching for something that isn't there\\.$",
@@ -1781,7 +1781,7 @@
1781
1781
  {
1782
1782
  "type": "script",
1783
1783
  "enabled": true,
1784
- "script": "insight.removeDef({def: \"speed\", player: args[1]});\ninsight.addAff({aff: \"aeon\", player: args[1]});"
1784
+ "script": "insight.removeDef({id: \"speed\", player: args[1]});\ninsight.addAff({id: \"aeon\", player: args[1]});"
1785
1785
  }
1786
1786
  ],
1787
1787
  "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\\.$",
@@ -1813,7 +1813,7 @@
1813
1813
  {
1814
1814
  "type": "script",
1815
1815
  "enabled": true,
1816
- "script": "//Hit with unnamable. 1-3 afflictions\nfor(let i = 0; i < args[2]; i++) {\n\tinsight.smartAffs({affs: [\"confusion\", \"stupidity\", \"dementia\"], player: args[1]});\n}"
1816
+ "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}"
1817
1817
  }
1818
1818
  ],
1819
1819
  "text": "^(\\w+) has been struck down by (\\d) curses of the unnamable\\.$",
@@ -1877,7 +1877,7 @@
1877
1877
  {
1878
1878
  "type": "script",
1879
1879
  "enabled": true,
1880
- "script": "insight.addAff({aff: \"prone\", player: args[1]});"
1880
+ "script": "insight.addAff({id: \"prone\", player: args[1]});"
1881
1881
  }
1882
1882
  ],
1883
1883
  "text": "^The legs of (\\w+) snap out from under \\w+\\.$",
@@ -1893,7 +1893,7 @@
1893
1893
  {
1894
1894
  "type": "script",
1895
1895
  "enabled": true,
1896
- "script": "insight.addAff({aff: \"anorexia\", player: args[1]});\ninsight.confirmAff({aff: \"prone\", player: args[1], state: true});"
1896
+ "script": "insight.addAff({id: \"anorexia\", player: args[1]});\ninsight.confirmAff({id: \"prone\", player: args[1], state: true});"
1897
1897
  }
1898
1898
  ],
1899
1899
  "text": "^The face of (\\w+) turns a particularly vibrant shade of green\\.$",
@@ -1916,7 +1916,7 @@
1916
1916
  {
1917
1917
  "type": "script",
1918
1918
  "enabled": true,
1919
- "script": "//Lovers affliction\ninsight.addAff({aff: \"lovers\", player: args[1]});"
1919
+ "script": "//Lovers affliction\ninsight.addAff({id: \"lovers\", player: args[1]});"
1920
1920
  }
1921
1921
  ],
1922
1922
  "text": "^You throw a Lovers tarot at (\\w+) and as it strikes true, a look of utter love covers (?:her|his) face\\.$",
@@ -1948,7 +1948,7 @@
1948
1948
  {
1949
1949
  "type": "script",
1950
1950
  "enabled": true,
1951
- "script": "//Justice affliction\ninsight.addAff({aff: \"justice\", player: args[1]});"
1951
+ "script": "//Justice affliction\ninsight.addAff({id: \"justice\", player: args[1]});"
1952
1952
  }
1953
1953
  ],
1954
1954
  "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\\.$",
@@ -1964,7 +1964,7 @@
1964
1964
  {
1965
1965
  "type": "script",
1966
1966
  "enabled": true,
1967
- "script": "//Speed stripped after 2 second delay.\ninsight.removeDef({def: \"speed\", player: args[1]});"
1967
+ "script": "//Speed stripped after 2 second delay.\ninsight.removeDef({id: \"speed\", player: args[1]});"
1968
1968
  }
1969
1969
  ],
1970
1970
  "text": "^You stand an Aeon tarot on your palm, and blow it lightly at (\\w+)\\.$",
@@ -1980,7 +1980,7 @@
1980
1980
  {
1981
1981
  "type": "script",
1982
1982
  "enabled": true,
1983
- "script": "//Speed stripped\ninsight.removeDef({def: \"speed\", player: args[1]});"
1983
+ "script": "//Speed stripped\ninsight.removeDef({id: \"speed\", player: args[1]});"
1984
1984
  }
1985
1985
  ],
1986
1986
  "text": "^(\\w+) suddenly seems less dexterous, \\w+ reactions becoming noticeably slower\\.$",
@@ -1996,7 +1996,7 @@
1996
1996
  {
1997
1997
  "type": "script",
1998
1998
  "enabled": true,
1999
- "script": "//Aeon\ninsight.removeDef({def: \"speed\", player: args[1]});\ninsight.addAff({aff: \"aeon\", player: args[1]});"
1999
+ "script": "//Aeon\ninsight.removeDef({id: \"speed\", player: args[1]});\ninsight.addAff({id: \"aeon\", player: args[1]});"
2000
2000
  }
2001
2001
  ],
2002
2002
  "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\\.$",
@@ -2012,7 +2012,7 @@
2012
2012
  {
2013
2013
  "type": "script",
2014
2014
  "enabled": true,
2015
- "script": "//Manaleech\ninsight.addAff({aff: \"manaleech\", player: args[1]});"
2015
+ "script": "//Manaleech\ninsight.addAff({id: \"manaleech\", player: args[1]});"
2016
2016
  }
2017
2017
  ],
2018
2018
  "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\\.$",
@@ -2067,7 +2067,7 @@
2067
2067
  {
2068
2068
  "type": "script",
2069
2069
  "enabled": true,
2070
- "script": "insight.addAff({aff: args[2], player: args[1]});"
2070
+ "script": "insight.addAff({id: args[2], player: args[1]});"
2071
2071
  }
2072
2072
  ],
2073
2073
  "text": "^You determine that (\\w+) is suffering from (\\w+)\\.$",
@@ -2083,7 +2083,7 @@
2083
2083
  {
2084
2084
  "type": "script",
2085
2085
  "enabled": true,
2086
- "script": "insight.confirmAff({aff: \"parasite\", player: args[1], state: true});\ninsight.confirmAff({aff: \"healthleech\", player: args[1], state: true});\ninsight.confirmAff({aff: \"manaleech\", player: args[1], state: true});"
2086
+ "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});"
2087
2087
  }
2088
2088
  ],
2089
2089
  "text": "^As the scythe comes away, the writhing shadow of (\\w+) clings to the weapon\\.$",
@@ -2099,7 +2099,7 @@
2099
2099
  {
2100
2100
  "type": "script",
2101
2101
  "enabled": true,
2102
- "script": "if (insight.hasAffs([\"parasite\", \"healthleech\"], 1)) {\n insight.addAff({aff:'manaleech', player: args[1]});\n } else if (insight.hasAff(\"parasite\", 1)) {\n insight.addAff({aff:'healthleech', player: args[1]});\n } else if (insight.hasAffs([\"parasite\", \"healthleech\"])) {\n insight.smartAffs({affs:[\"parasite\", 'healthleech'], player: args[1]});\n } else {\n insight.addAff({aff:'parasite', player: args[1]});\n }"
2102
+ "script": "if (insight.hasAffs({ids: [\"parasite\", \"healthleech\"], player: args[1], probability: 1})) {\n insight.addAff({id:'manaleech', player: args[1]});\n } else if (insight.hasAff({id: \"parasite\", player: args[1], probability: 1})) {\n insight.addAff({id:'healthleech', player: args[1]});\n } else if (insight.hasAffs({ids: [\"parasite\", \"healthleech\"], player: args[1]})) {\n insight.smartAffs({ids:[\"parasite\", 'healthleech'], player: args[1]});\n } else {\n insight.addAff({id:'parasite', player: args[1]});\n }"
2103
2103
  }
2104
2104
  ],
2105
2105
  "text": "^As the weapon strikes (\\w+), \\w+ seems greatly diminished\\.$",
@@ -2115,7 +2115,7 @@
2115
2115
  {
2116
2116
  "type": "script",
2117
2117
  "enabled": true,
2118
- "script": "// Need logic for adding envenoms.\nif (insight.envenom1) {\n insight.addAff({aff: insight.evenom1, player: args[1]});\n insight.envenom1 = false;\n}"
2118
+ "script": "// Need logic for adding envenoms.\nif (insight.envenom1) {\n insight.addAff({id: insight.evenom1, player: args[1]});\n insight.envenom1 = false;\n}"
2119
2119
  }
2120
2120
  ],
2121
2121
  "text": "^You unleash a vicious reaping blow at (\\w+) with a scythe of shadows\\.$",
@@ -2131,7 +2131,7 @@
2131
2131
  {
2132
2132
  "type": "script",
2133
2133
  "enabled": true,
2134
- "script": "if (insight.hasAffs([\"clumsiness\", \"weariness\"], 1)) {\n insight.addAff({aff:'paralysis', player: args[1]});\n } else if (insight.hasAff(\"clumsiness\", 1)) {\n insight.addAff({aff:'weariness', player: args[1]});\n } else if (insight.hasAffs([\"clumsiness\", \"weariness\"])) {\n insight.smartAffs({affs:[\"clumsiness\", \"weariness\"], player: args[1]});\n } else {\n insight.addAff({aff:'clumsiness', player: args[1]});\n }"
2134
+ "script": "if (insight.hasAffs({ids: [\"clumsiness\", \"weariness\"], player: args[1], probability: 1})) {\n insight.addAff({id:'paralysis', player: args[1]});\n } else if (insight.hasAff({id: \"clumsiness\", player: args[1], probability: 1})) {\n insight.addAff({id:'weariness', player: args[1]});\n } else if (insight.hasAffs({ids: [\"clumsiness\", \"weariness\"], player: args[1]})) {\n insight.smartAffs({ids:[\"clumsiness\", \"weariness\"], player: args[1]});\n } else {\n insight.addAff({id:'clumsiness', player: args[1]});\n }"
2135
2135
  }
2136
2136
  ],
2137
2137
  "text": "^As the weapon strikes (\\w+), the contact area begins to rot before your eyes\\.$",
@@ -2147,7 +2147,7 @@
2147
2147
  {
2148
2148
  "type": "script",
2149
2149
  "enabled": true,
2150
- "script": "insight.addAff({aff: 'timeloop', player: args[1]});"
2150
+ "script": "insight.addAff({id: 'timeloop', player: args[1]});"
2151
2151
  }
2152
2152
  ],
2153
2153
  "text": "^Grey fog begins to rise from the suddenly panicked-looking (\\w+)\\.$",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexsight",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "insight for nexus",
5
5
  "main": "insight.min.js",
6
6
  "scripts": {