Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calculation for minfoodrate looks incorrect #38

Open
hallipr opened this issue Jan 4, 2022 · 0 comments
Open

Calculation for minfoodrate looks incorrect #38

hallipr opened this issue Jan 4, 2022 · 0 comments

Comments

@hallipr
Copy link
Contributor

hallipr commented Jan 4, 2022

creature.maxfoodrate=creaturedata.basefoodrate*creaturedata.babyfoodrate*creaturedata.extrababyfoodrate*$scope.settings.consumptionspeed;
creature.minfoodrate=$scope.settings.baseminfoodrate*creaturedata.babyfoodrate*creaturedata.extrababyfoodrate*$scope.settings.consumptionspeed;
creature.foodratedecay=(creature.maxfoodrate-creature.minfoodrate)/creature.maturationtime;
creature.foodratedecay=(creature.maxfoodrate-creature.minfoodrate)/creature.maturationtime;

maxfoodrate's correct, but minfoodrate should be:

minfoodrate = creaturedata.basefoodrate * $scope.settings.consumptionspeed

I measured food values for wyverns and gigas at a range of maturations and consumption speeds. I set the baby age speed to 0 so I could hold a dino at the same age indefinitely.

Giga

basefoodrate: 0.002314,
babyfoodrate: 45,
extrababyfoodrate: 20

max = 2.0826

if min = baseminrate * baby * extrababy * consumption

min = range(2.0826, 0.1395, 0.9) => 0.33381

if min = basefoodrate * consumption (this one better fits the observation below

min =  range(2.0826, 0.002314, 0.9) => 0.2103426

Observed rates

Consumption Age Start End Diff Elapsed Rate
1 Adult 6549.7 6546.5 3.2 462.532 0.006918435
1 90% 5955.0 5876.0 79.0 375.119 0.210599517
1 0% 630.0 0.0 630.0 302.888 2.079972026
10 Adult 4856.0 4835.0 21.0 302.643 0.069388490
10 99.999% 3991.8 3983.1 8.7 372.637 0.023347084
10 90% 4250.0 3650.0 600.0 284.814 2.106631239
10 0% 500.0 0.0 500.0 23.949 20.877174006

We see a 3x increase in food consumption when a 99.999% Giga becomes an adult because of an additional adult food rate multiplier in giga's dcsc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant