2024-12-10 17:54:06|Myriagame |source:minecraft skins
This tutorial describes the process of determining whether the machine produces and how many by -products are produced in the source code of the TE in detail according to the source code of the thermal expansion 5 (hereinafter referred to as TE) on GitHub.
At present (5.5.7.1), the use of 7 machines and 5 upgrade components of the Chinese Communist Party is used or involved a process similar to the [1] process.
These machines are: grinding machines, sawing wooden machines, sensors, organic irrigation, fluid refiners, centrifugal machines and vacant modes.
The upgrade components are: upgrade: auxiliary sieve devices, upgrade: sector mineral caused by, upgrade: Chi Yan high temperature cracking, upgrade: biological centrifugal decomposition and upgrade: automatic rotation cycle.
When the above machine completes the formula, the following processes will be performed to determine the number of by -products, and the centrifugal machine will execute the process for each item product:
Define variables SecondaryChance = 100 -N × 15. Among them, n is an upgrade installed in the machine: the number of auxiliary sieve devices.
If the machine is equipped with an upgrade: the grinding machine caused by the mineral minerals and sufficient plates of the layer of the plate, and the raw material of the formula of the formula is ore, which reduces the SecondaryChance by 25.
If the machine is equipped with an upgrade: the high temperature cracking and sufficient flames of the flames of the furnace, and one of the items of the formula is the ore, which reduces the SecondaryChaance by 30.
If the SecondaryChance is less than 5 or greater than 100 at this time, set it to 5 or 100, respectively.
If the machine is not installed and upgraded: biological centrifugal decomposition, randomly select an integer (including both ends) from 0 to SecondaryChance -1, if the integer is smaller than the percentage of the output of the by -product setting in the formula (hereinafter referred to as recipeChance) [2] output 1 part of [3] by -products, otherwise this process will be terminated.
If the machine is equipped with an upgrade: a centrifugal machine with biological centrifugal decomposition, each integer (including both ends of the product produced in the formula set in the formula in the formula set in the formula, which n is set in the formula (where n is the product set in the formula)), They randomly select an integer (including both ends) from 0 to SecondaryChance + J × 10-1. If randomly selected an integer is less than recipeChance, it produces 1 product.
If the machine is a fluid converter or a centrifugal machine, this process is terminated.
Select an integer (including both ends) from 0 to 99. If the integer is smaller than the recipeChance -SecondaryChaance, another part of the producer is produced.
If the number of items in the by -product slot of the machine at this time exceeds the stacking limit of the item, the excess is destroyed.
According to this process, some simple conclusions are drawn:
Regardless of the probability of the output of by -products set in the formula and the number of upgrades installed in the machine, each formula is completed, no items produced by the centrifuge of the centrifugal machine, the product of the fluid converter and other machine output is produced.The by -products are not more than one and 2 copies, respectively.
For any given set of machines, the combination of upgrades and formulas, the possibility of not producing by -products and output 2 by -products after completing the formula will not exist at the same time.
If the machine is not a fluid converter or a centrifugal machine, when the combination of the existing upgrade and the formula has enabled the machine to produce at least 1 by -product of the formula for a formula, each upgrade installed later: Auxiliary sieve device will use the output to produce outputThe probability of the second by -product increased by 15 %.
If the machine is equipped with an upgrade that meets the effectiveness of the effect: the mineral minerals are caused or upgraded: the high temperature cracking of the brick, then the sixth and more upgrades: the auxiliary sieve device will not further increase the output of the by -product, otherwise the 8th and more moreUpgrade: Auxiliary sieve devices will not further increase the output of by -product.
Note:
[1]: Technically, there is no set of general judgments in the TE. Instead, all machines have their own code to judge the output of the by -product production, but at present (5.5.7.1) TE all available in TE.The code of this code machine is very similar.
[2]: If the machine is equipped with an upgrade: an organic irrigation device with an automatic rotation cycle, and one of the formulas of the formula is optical compost, enriched optical compost or charged photosynthesis, and the same type of item raw material is the same as by -products as by -products.And reducing the recipeChance by 100.
[3]: "1 copy" refers to the number of each output set in the formula, which is the same.
[4]: Even if there may be 2 parts of by -products, the machine will start running only when the remaining space of the by -product slot can only accommodate only 1 by -product.
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22