TS-Rogue-Star / Rogue-Star

Other
4 stars 38 forks source link

Shadekin energy methods #631

Closed Cameron653 closed 1 month ago

Cameron653 commented 1 month ago

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:

Bloodfeeder:

All Nutrition Based

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