Ludeon Forums

RimWorld => Bugs => Topic started by: Alistaire on April 07, 2016, 05:22:36 PM

Title: [A13] Scribe defaults: ThingContainer.maxStacks
Post by: Alistaire on April 07, 2016, 05:22:36 PM
// Verse.ThingContainer.ctor
private int maxStacks = 99999;

(..)

// Verse.ThingContainer.ExposeData()
Scribe_Values.LookValue<int>(ref this.maxStacks, "maxStacks", 0, false);


Another non logical scribe default, pawns use both an <inventory> (default maxStacks = 99999) and <carrier> (default maxStacks = 1), and a
default of 0 does not account for either and would result in a ThingContainer which does not accept anything since maxStacks is private.

New colony contained 5 of both <maxStacks>1</maxStacks> and <maxStacks>99999</maxStacks>.
Title: Re: [A13] Scribe defaults: ThingContainer.maxStacks
Post by: Kolljak on April 07, 2016, 10:36:31 PM
lol you love eating code dont you. wish i was that talented :D sure Tynan appreciates it.
Title: Re: [A13] Scribe defaults: ThingContainer.maxStacks
Post by: ison on April 08, 2016, 10:15:05 AM
Fixed, thanks.