Bay 12 Games Forum

Other Projects => Curses => Topic started by: Kanil on May 28, 2009, 08:17:14 pm

Title: Stat gain from juice
Post by: Kanil on May 28, 2009, 08:17:14 pm
Hey guys... anyone know how this works?

I recently tracked an agent's stats as he went from 0 juice to 1000, and got something... unexpected.

Juice
Heart
Intelligence
Wisdom
Health
Agility
Strength
Charisma
0
4
7
5
7
9
7
8
10
5
8
5
8
10
8
9
50
6
9
5
9
11
8
10
100
7
11
5
11
13
10
12
200
9
13
5
13
15
11
14
500
10
14
5
14
17
13
16
1000
12
16
5
16
19
15
18
(Holy crap, making tables sucks.)

Everything seems to grow at different rates, although stats seem to grow more the higher they start... however intelligence, health and strength all started at 7, but strength grew slower.

I'm a bit confused.

Any insight?
Title: Re: Stat gain from juice
Post by: Jonathan S. Fox on May 28, 2009, 08:38:42 pm
Strength is odd, but otherwise, that's correct; your stats grow faster if they started higher. Skills also increase more quickly if the relevant base stats are higher.
Title: Re: Stat gain from juice
Post by: LiteralKa on May 29, 2009, 12:13:20 pm
Hey guys... anyone know how this works?

I recently tracked an agent's stats as he went from 0 juice to 1000, and got something... unexpected.

Juice
Heart
Intelligence
Wisdom
Health
Agility
Strength
Charisma
0
4
7
5
7
9
7
8
10
5
8
5
8
10
8
9
50
6
9
5
9
11
8
10
100
7
11
5
11
13
10
12
200
9
13
5
13
15
11
14
500
10
14
5
14
17
13
16
1000
12
16
5
16
19
15
18
(Holy crap, making tables sucks.)

Everything seems to grow at different rates, although stats seem to grow more the higher they start... however intelligence, health and strength all started at 7, but strength grew slower.

I'm a bit confused.

Any insight?

No language has tables down to a science, sadly.
But interesting... I'll do this with negative juice.
Title: Re: Stat gain from juice
Post by: Ampersand on May 29, 2009, 12:28:40 pm
Is stat progression from juice gain set to a hard pre-determined ratio set by the initial stats, or is there an element of randomness involved with it?
Title: Re: Stat gain from juice
Post by: LiteralKa on May 29, 2009, 01:08:42 pm
Is stat progression from juice gain set to a hard pre-determined ratio set by the initial stats, or is there an element of randomness involved with it?
I *think* it's hardcoded.
Title: Re: Stat gain from juice
Post by: Jonathan S. Fox on May 29, 2009, 03:57:25 pm
Yes, it's hardcoded. It has to be, because the stats are not actually changed in any permanent way -- instead, every time the game looks up the stat, it takes the character's base stat and modifies it based on a variety of factors. If it weren't hardcoded, your stats would change every time they're referenced or displayed.
Title: Re: Stat gain from juice
Post by: jasonred79 on March 21, 2010, 01:22:27 am
So what's the formula for modifying stats based on juice?
Title: Re: Stat gain from juice
Post by: Innominate on March 21, 2010, 02:43:18 am
For the version in the trunk:
Juice:

Note that the variable is later modified by other factors, including age, leg wounds (for agility), spinal wounds (for strength, health and agility), and disfigurements (charisma), and blood loss (strength, agility, charisma): these modifications act on the variable handed down by juice. Also note that no modifications whatsoever apply to heart/wisdom of the opposite alignment; modified heart is always base heart for conservatives, and modified wisdom is always base wisdom for liberals. Finally, the returned modified value is always clamped to [1,20]; base values however, can be outside this range.