let test = await this.actor.setupSkill(game.i18n.localize("NAME.Cool"), {fields: {difficulty : "average"}, skipTargets: true, appendTitle : ` - ${this.effect.name}`, context : {failure : "Suffer Creeping Irrationality"}}) await test.roll(); if (test.failed) { msg = `

@UUID[${this.effect.sourceItem.uuid}]{Creeping Irratitonality} Roll: ${Math.ceil(CONFIG.Dice.randomUniform() * 10)}

` if (test.result.roll % 11 == 0 || test.result.roll == 100) { msg += `

${this.actor.prototypeToken.name} also gained 1 Corruption Point. If mutating, this results in a @Table[mutatemental]{Mental Corruption}

` let newCorruption = Number(this.actor.status.corruption.value) + 1 this.actor.update({"system.status.corruption.value" : newCorruption}) } this.script.scriptMessage(msg); }