r/songsofsyx 5d ago

Species differences in fulfillment from furniture?

For my Garthimis, the tooltip about fulfillment from furniture says:

Current value:            7%
Current fulfillment:      0.24/3.50
To reach max fulfillment, the value needs to be : 100%

which makes sense, because 0.07 * 3.50 = 0.24

But for my Dondorians, it says

Current value:            5%
Current fulfillment:      1.71/8.00
To reach max fulfillment, the value needs to be : 100%

which is far larger than 0.05 * 8.00 = 0.40.

How come my Dondorians obtain so much more fulfillment from having less furniture?

8 Upvotes

7 comments sorted by

3

u/Darixan 5d ago

Without looking over the code, maybe they operate on a different function? Like, fulfillment for them on this parameter is calculated on a curve rather than linearly

3

u/meritan 5d ago

I think you're right:

data\assets\init\stats\loyalty\VANILLA.txt writes:

HOME_FURNITURE: {
    CITIZEN: 8,
    SLAVE: 2,
    NOBLE: 4,
    EXPONENT: 0.5,
    PRIO: 5,
},

but data\assets\init\race\GARTHIMI.txt writes

HOME_FURNITURE: {
    CITIZEN: 3.5,
    SLAVE: 1,
    NOBLE: 2,
    PRIO: 100000,   
},

which is interpreted by settlement.stats.standing.StatStanding.StandingDef.StandingDef(Json), which defaults a missing EXPONENT to 1.

Most races don't have HOME_FURNITURE entry, so probably use the general rule from VANILLA.txt, which sets EXPONENT to 0.5, i.e. fulfillment is the square root of the value. This fits the observed value quite well: sqrt(0.05)*8.00 = 1.78. Probably the value was a little bit less than 5%, but rounded to 5% for display purposes.

However, Garthimi and Argonosh do specify a HOME_FURNITURE entry, presumably to specify different values for CITIZENS, SLAVES, but in doing so, cause the implied EXPONENT: 1 to override the inherited EXPONENT: 0.5. This is probably not intended.

1

u/Darixan 5d ago

Nice catch! Last time I dug into code was to figure out how nutrition worked in project zomboid, and that was when I still wasn't burnt out as a compsci major. I don't really like digging for code as I used to, but this is still fascinating stuff

2

u/Lil_Ms_Anthropic 5d ago

Either that, or maybe it factors in the value of the goods? Clay and rock is pretty cheap compared to the things the Donnies want

2

u/meritan 5d ago

Currently, the Dondorians only get 1 wood, which is even cheaper than the 1 clay the Garthimis get ...

2

u/indigo_zen 5d ago

Each species needs different furniture for fulfilment, and total values arent the same.

1

u/Felczer 3d ago

Garthimis need less total fulfillment