Crumplecorn / ARK-Breeding-Calculator

ARK Breeding Calculator
http://crumplecorn.com/content/breeding-calculator
MIT License
14 stars 26 forks source link

Calculation for minfoodrate looks incorrect #38

Open hallipr opened 2 years ago

hallipr commented 2 years ago

https://github.com/Crumplecorn/ARK-Breeding-Calculator/blob/4fe4854c97bd78fd85fd6abdcd4c9ed6df2b6d38/controller.js#L2066-L2069

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.