Skip to content

Instantly share code, notes, and snippets.

@maurer
Created February 14, 2018 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maurer/d6e9dcd127c3c122bcc8079cff0d1ee5 to your computer and use it in GitHub Desktop.
Save maurer/d6e9dcd127c3c122bcc8079cff0d1ee5 to your computer and use it in GitHub Desktop.
{
name: 'Ancestral Hourglass',
id: 281,
fixed: function(save) {
return save.reincarnation >= 100;
},
random: function(save) {
var lineageBought = save.fmt36Val;
var lineageLevel = save.lineageLevels[save.lineageFaction - 1];
return ((lineageBought / 3600) ^ (1 - 0.01 * ((lineageLevel ^ 1.01) - save.reincarnation / 5)) / 10) / 100
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment