Digestion - MysticSummoner/PCraft-Revorn-Wiki GitHub Wiki
Overview
After the first 4.5 seconds of being swallowed and settling down, any creature or player eaten by a predator will begin to be digested. The pred's digestion meter will slowly tick up with no way to backtrack it. If the digestion meter reaches full, their current prey will be digested with no way to stop the process.
Calculation
Digestion occurs when the digestion progress value reaches 10,000. Every tick, the digestion progress increases by the pred's current digestion rate. This will always start with the pred's initial digestion rate and will increase each tick by their acid increment rate, until they reach their max digestion rate.
For example, a Zombie has an Initial Digestion rate of 4, an acid incriment rate of 0.04, and a max acids rate of 12. This means that starting with the first tick, the digestion progress will increase by 4, 4.04, 4.08, 4.12, 4.16, ... , all the way until it caps out at 12 a tick.
Modifiers
The rate at which digestion increases can be slowed compared to its current digestion rate. Each tick, when the progress is meant to be increased, it takes the current digestion rate and only adds a % of that depending on what reductions the prey currently has. Armor points will slow the digestion rate by 0.75% per level, meaning it can slow the progress of digestion by up to 15% at 20 armor. Additionally, the Acid Resistance effect can slow digestion by a further 15% per level. These reductions are multiplicative though, so 20 armor and Acid Resistance 2 only slows by 59.5% instead of 55%.
Softened Influence
If a prey has the Softened effect when they are eaten, digestion will start with 1000 progress (10%) already made per level of the effect.
Losing Items
At the moment true digestion starts (10,000 progress is met/exceeded), any mobs currently in the pred's stomach will have all of their items slip into the predator's stomach inventory.