The idea is to add a way to create timeshift effects which can ramp up and down in speed - something like "go from amount 20 to amount 1000 within 200 ticks in a linear fashion"
We could potentially keep the existing request model with a simple amount field (just make it optional) and add an optional ramp (or some better name) object.
said object could look something like this:
{
"startAmount": number
"endAmount": number
"ticks": number
"method": string
}
where method could be:
linear (add)
squared (x²)
...
or even a simple function:
x for linear
x^2 for squared
...
So for the example stated in the beginning, you would add (endAmount - startAmount) / ticks to the ingame time every tick.
The idea is to add a way to create timeshift effects which can ramp up and down in speed - something like "go from amount 20 to amount 1000 within 200 ticks in a linear fashion"
We could potentially keep the existing request model with a simple
amount
field (just make it optional) and add an optionalramp
(or some better name) object.said object could look something like this:
where
method
could be:linear
(add)squared
(x²)x
for linearx^2
for squaredSo for the example stated in the beginning, you would add
(endAmount - startAmount) / ticks
to the ingame time every tick.