Skip to content

Instantly share code, notes, and snippets.

@MidnightLightning
Created August 28, 2017 13:25
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MidnightLightning/c169d1d855bcc97882f865f715d696ee to your computer and use it in GitHub Desktop.
Save MidnightLightning/c169d1d855bcc97882f865f715d696ee to your computer and use it in GitHub Desktop.
MoonCat Staked asset

Mooncats have Red, Green, and Blue values that range from 0-255. Based on those parameters, they have the capacity to have their colors "mined" by staking the cat for a time in a custom-purposed extractor, producing Red Kristallum, Green Kristallum, Blue Kristallum, and Dark Kristallum.

Capacity

How much Kristallum of each color a cat can produce depends on their associated Red/Green/Blue values:

  • White-colored Genesis cats have a capacity of 5000 for all three colors.
  • Black-colored Genesis cats have a capacity of zero for all three colors.

For all other cats:

  • Base capacity is 4 times the cat's color value (so, 0-1024)
  • For color values over 192 (this cat is strongly a color), a bonus of 4 units per value is given: (x-192)*4, so a value of 193 has a capacity of 193*4 + 4 = 776, up through a value of 255 has a capacity of 255*4 + 63*4 = 1272
  • If the color value is 255 (pure), an additional 50 units of capacity is added. So a value of 255 has a capacity of 255*4 + 63*4 + 50 = 1322
  • For the other two colors, if they have values less than 64 (this cat is dedicated to a color), a bonus of 2 units per value less than 64 is given: (64-x)*2 for each of the other two color channels.

Rate

Once a cat has been staked, after 10 minutes have passed, a certain amount of Kristallum of each color is collected every block. Kristallum is divisible into 1000 pieces (a shard of Kristallum). About 3 shards are harvested each block. So, it takes about 1 hour to harvest 1.000 Kristallum.

However, the pose of the cat (its attitude) affects the rate:

  • Sleeping (k % 4 = 1): 1 shard/block
  • Standing (k % 4 = 0): 3 shards/block
  • Pouncing (k % 4 = 3): 4 shards/block
  • Leaping (k % 4 = 2): 6 shards/block

The amount of Kristallum collected is calculated when the cat is picked up by its owner. The amount collected is deducted from the overall capacity of that cat. A cat's capacity never refills, so once it's completely harvested, no more Red, Green, or Blue Kristallum can be harvested from that cat.

Dark

Dark Kristallum has no capacity limit, but it can only be generated by cats whose Red, Green, and Blue values are close in value (a balanced, gray-colored cat):

ABS(red - green) + ABS(red - blue) + ABS(green - blue) = delta

A cat's delta value has a maximum of 510 (one color at 255 and the others at zero, or two at 255 and one at zero). Only cats with a delta less than 100 generate Dark Kristallum when staked.

Additionally, a cat's sum of all its color channels (its power) affects its Dark Kristallum generation rate. Cats have a maximum sum of 765 (pure white)

Dark Kristallum is generated more slowly than the colored varieties:

  • Sleeping (k % 4 = 1): 1 block/shard
  • Standing (k % 4 = 0): 3 blocks/shard
  • Pouncing (k % 4 = 3): 4 blocks/shard
  • Leaping (k % 4 = 2): 6 blocks/shard

The cat's pose (attitude) sets the base rate. That gets added to the cat's delta/10 for the total number of blocks needed to wait for each Dark Kristallum to be harvested.

But if the cat has a power greater than 382, it gets an additional time penalty of (power-382)/10 blocks/shard. (light-colored cats are terrible sources of dark energy).

Black-colored Genesis Cats can generate Dark Kristallum as if they had #000000 color value. White-colored Genesis Cats can generate Dark Kristallum as if they had a #FFFFFF color value.

Summary

The idea behind these factors influencing the color capacities is to try and make sure that any one cat is not excellent at harvesting multiple things, to encourage people to collect multiple cats. Pure Red/Green/Blue cats are valuable short-term for generating large amounts of their color. Dark-colored cats are valuable long-term for generating Dark Kristallum over time.

And note, a sleeping colored cat is less desirable than a leaping colored cat (slower to harvest), but a sleeping dark cat is more desirable than a leaping one (faster to harvest).

Once a user has Krystallum of various colors, its intended use could be in secondary applications to allow coloring things (magic paintbrushes). A contract could be created that allowed users to set its color by accepting all four Krystallum types: depositing some shards of Krystallum of Red/Green/Blue would add to that hex value of the thing. Depositing Dark Krystallum would reduce the Red/Green/Blue values by that amount.

@BeautifoolData
Copy link

👀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment