4,581
edits
(Added Alt Magic spells to script) |
m (Fixed copying not working on Steam) |
||
Line 51: | Line 51: | ||
results.forEach((str, i) => { outputString += (returnEquipmentTemplate ? i > 0 ? `\n|${str}` : `${str}` : `${str}\n`) }); | results.forEach((str, i) => { outputString += (returnEquipmentTemplate ? i > 0 ? `\n|${str}` : `${str}` : `${str}\n`) }); | ||
if (returnEquipmentTemplate) outputString += '\n}}'; | if (returnEquipmentTemplate) outputString += '\n}}'; | ||
copy(outputString);console.log(outputString); | self.nw?.Clipboard.get().set ? self.nw?.Clipboard?.get().set(outputString, 'text') : copy(outputString); | ||
console.log(outputString); | |||
notifyPlayer(game.attack, `Copied results for ${searchTerm} to clipboard`, 'success', 0); | notifyPlayer(game.attack, `Copied results for ${searchTerm} to clipboard`, 'success', 0); | ||
</syntaxhighlight> | </syntaxhighlight> |