Ludeon Forums

RimWorld => Bugs => Topic started by: Alistaire on April 07, 2016, 09:19:10 AM

Title: [A13] Savefile cluttering <stackCount>1</stackCount>
Post by: Alistaire on April 07, 2016, 09:19:10 AM
// 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.
Title: Re: [A13] Savefile cluttering <stackCount>1</stackCount>
Post by: ison on April 11, 2016, 06:18:02 AM
This is actually intended to make it consistent so all stackable things have stackCount defined. Thanks, locking.