Ancient Temple

''"Applies ancient math to ore, changing their value only once in a mysterious but nonrandom way." ''

Overview
Ancient Temple is a reborn tier item that came out on June 2nd. It has the most complicated effect out of all items in Miner's Haven. When it was first released, Berezaa offered 5k R$ to the first user that could figure out the effects of the item.

Functionality
When ores enter the Ancient Temple, the upgrader finds the overvalue and divides it by 7. It would then multiply the orevalue based on the remainder of the process (from x0-x6). If the remainder is a decimal then it would be rounded to the nearest whole number.

One example would be 6 divided by 7. The remainder would be 6 as 7 goes into 6 zero whole times. Another example would be 255 divided by 7; 7 can go into 255 thirty-six whole times with a remainder of 3. The ore value in that case would be tripled.

If the overvalue was divisible by 7 then the remainder would be zero. Hence, the ore value would be multiplied by 0, making the ore worthless.

Note: Ores above $10qd being set to $0 has been fixed. This item is now viable in setups with larger ore values.

Pro Tips
The way that Ancient Temple multiplies ores with random overvalue (Newtonium, Atomium, etc.) can be very unpredictable. It would help to instead use mines with a predictable ore value like Remote Ambrosia Mine and upgraders that increase ore value by a fixed amount like Cursed Ore Purifier or Fine-Point Upgrader so that the ore value isn't divisible by 7.

Trivia

 * This is the only upgrader that is able to make your ores' values go to $0 without the assistance of other upgraders.
 * This upgrader had some negative attention because it used to break money and is one of two reborn-tier upgraders with a value limit, which is why most players don't use this reborn item.
 * Before the Morning Star was added, many players used this item to break their money.
 * This item used to use Lua's modulus operator which is horribly broken. The modulus operator just gets the remainder from division, but it is doing something really weird under the hood. This resulted in people getting huge multipliers when over around 10qd on occasion. The multipliers would usually be around oreValue / 2^53, or oreValue / 1e15. Thus, the higher the input ore value was, the higher the multiplier was.