[A13] Savefile cluttering <stackCount>1</stackCount>

Started by Alistaire, April 07, 2016, 09:19:10 AM

Previous topic - Next topic

Alistaire

// Verse.Thing.ctor
public int stackCount = 1;

(..)

// Verse.Thing.ExposeData()
Scribe_Values.LookValue<int>(ref this.stackCount, "stackCount", 0, true);


Since this is set to 1 by default one could change that to:

Scribe_Values.LookValue<int>(ref this.stackCount, "stackCount", 1, true);

This was a redundancy of 83 occurences on a fresh colony due to pawns in other factions carrying single meals.

ison

This is actually intended to make it consistent so all stackable things have stackCount defined. Thanks, locking.