Modifying Space Need

Started by huhwhozat, December 11, 2015, 06:40:45 PM

Previous topic - Next topic

huhwhozat

I'd like to edit the values at which a Pawn recognizes environments as cramped or spacious.  Does anyone know how this could be done?  I'd be content with modding the overall values, but ideally I'd have different values of cramped vs spacious per room type.  The end goal is to have Colonists be content with bedrooms smaller than a trade beacon area. :P

I searched the forums but I couldn't find anything pertinent.  The defs got me closer; the best I can find is in the Needs.xml <NeedDef> for Space.  Other NeedDefs have a baseLevel tag, but I don't know if this would have any affect on the space need.  Also, I noticed in RoomStats.xml, there is a <RoomStatDef> for space.  I assume these don't control the actual threshold at which rooms are cramped, etc, but just the displayed information?  There is a defaultScore tag, but will that actually change how the Pawns react?  Finally, how do constructions like beds affect space, and are those values accessible anywhere in the defs?

Thanks!

Fluffy (l2032)

My guess is the roomstats do in fact determine mood - since otherwise there'd be multiple places where the size thresholds are defined, and that'd just be bad design.

The moods probably are linked to the 'labels' defined in roomstats, but there's an easy way to find out - give it a try.

huhwhozat

Good point.  I shall return with my findings.

TLHeart

yes the moods are linked to the stats in the xml file roomstats. There are even space needs definitions in there. very easy to modify.