Skip to content

Instantly share code, notes, and snippets.

@theresajayne
Created November 10, 2016 11:19
Show Gist options
  • Save theresajayne/220d96b280eb76c3e57b466eb19f68d4 to your computer and use it in GitHub Desktop.
Save theresajayne/220d96b280eb76c3e57b466eb19f68d4 to your computer and use it in GitHub Desktop.
function(x,{t,F}){//t:#s.npc.loc
var a={},k,v,m,j,i=0,
V="open0unlock0release0red0purple0blue0cyan0green0lime0yellow0orange02030507011013017019023029031037041043047053059061067071073079083089097".split(0),
K="EZ_..!|c00.*!|or n|d c| com|t u|color_digit|!d|t d|pr"
if(F||#s.scripts.get_level({name:t.name})>3)
for(;m=t.call(a).match(K);a[k]=v,i++)
j=K.split('|').indexOf(m=m[0]),
j>8?a.ez_prime=+V[i%25+11]:
j>6?a.digit=i%10:
j>5?a[m]=v.length:
v=j>4?V[i%3]:
j>1?V[i%8+3]:
k=m.slice(0,-1)
return a
// return {ok:true}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment