(Separated because I like to split features and changes when possible.)
This is the 'feature' portion of these two PRs. For the feature portion, see #632
Adds new methods for shadekin to gain and gather energy outside of simply existing/hiding in the dark!
Types:
Damage based:
- Digestion
- Bloodfeeder
Nutrition Based:
- Absorption
- Drain
- Succubus Drain
- Feeder
Digestion:
Gives varying energy based off of eye color! (The damage calculation is GENERALLY 1 damage to 1 'damage_gain' There's a few oddities like suffocation giving 1 damage_gain for 2 suffocation, but it's not too immensely relevant. Rule of thumb is 1 dmg = 1 damage)
Extremely filling / size does NOT change the amount gained (I fiddled around with the idea and quickly realized it'd make math REALLY REALLY COMPLICATED)
Red eyes get 1:1 when it comes to damage. 100 digestion damage to prey = 100 energy.
Orange and purple eyes get 0.75:1 when it comes to damage. 100 damage = 75 energy.
Everyone else gets 0.5:1 when it comes to damage. 100 damage = 50 energy.
Bloodfeeder:
Gives a base 50 nutrition when using it.
As will be mentioned below, this is calculated using the idea of nutrition gained/10 = energy gained.
It gives 400 nutrition (40 energy) but because you're also talking blood from the person (which harms them for ~10 damage) you're also given the damage into nutrition, equating to a bonus +10 energy for a grand total of 50 energy.
All Nutrition Based
Does NOT give varying energy based off eye color. There's so many various ways to get nutrition and it might depend from kin to kin.
Extremely filling / size does NOT change the amount gained (I fiddled around with the idea and quickly realized it'd make math REALLY REALLY COMPLICATED)
Formula is nutrition gained divided by 10. (100 nutrition = 10 energy.)
I left a big block of math in the code breaking the nutrition based energy gain down and the logic behind it, which I will repost below.
Let's do some M A T H
Let's imagine the prey didn't overeat to an insane degree(cap is 50000 after all)
450 gives you the 'fat' warning when it comes to nurtition. Let's use that as our baseline.
Let's say that absorbing an ENTIRE person that's full of food should give you 50 energy
That 9 nutrition per 1 energy. Not too bad.
Let's assume the average person that just spawned in has 300 nutrition.
That's equivalent to 33 energy. Let's just round it to 10 because we like even numbers here.
Not doing eye_color specific here because it's already a small amount that it's not an issue.
Side Notes
This PR simply handles the vore/vore adjacent side for shadekin. There will be a different PR as well handling their natural regen speeds in light/dark
Part 1 of the Shadekin Energy PRs
(Separated because I like to split features and changes when possible.) This is the 'feature' portion of these two PRs. For the feature portion, see #632
Adds new methods for shadekin to gain and gather energy outside of simply existing/hiding in the dark!
Types:
Damage based:
- Digestion
- Bloodfeeder
Nutrition Based:
- Absorption
- Drain
- Succubus Drain
- Feeder
Digestion:
Gives varying energy based off of eye color! (The damage calculation is GENERALLY 1 damage to 1 'damage_gain' There's a few oddities like suffocation giving 1 damage_gain for 2 suffocation, but it's not too immensely relevant. Rule of thumb is 1 dmg = 1 damage)
Extremely filling / size does NOT change the amount gained (I fiddled around with the idea and quickly realized it'd make math REALLY REALLY COMPLICATED)
Red eyes get 1:1 when it comes to damage. 100 digestion damage to prey = 100 energy.
Orange and purple eyes get 0.75:1 when it comes to damage. 100 damage = 75 energy.
Everyone else gets 0.5:1 when it comes to damage. 100 damage = 50 energy.
Bloodfeeder:
All Nutrition Based
Does NOT give varying energy based off eye color. There's so many various ways to get nutrition and it might depend from kin to kin.
Extremely filling / size does NOT change the amount gained (I fiddled around with the idea and quickly realized it'd make math REALLY REALLY COMPLICATED)
Formula is nutrition gained divided by 10. (100 nutrition = 10 energy.)
I left a big block of math in the code breaking the nutrition based energy gain down and the logic behind it, which I will repost below.
Let's do some M A T H
Side Notes
This PR simply handles the vore/vore adjacent side for shadekin. There will be a different PR as well handling their natural regen speeds in light/dark