Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - nwilson

#1
Help / Modding Question
July 31, 2016, 07:22:09 PM
I am trying to make my sterile walls create a sterile effect but I cant seem to find how the floors create the effect. I didn't see a way for the floors to do it via XML on the wiki, so ive been trying to find the source code for the sterile floors but I'm not having any luck.

Anyone know where exactly the source code for sterile floors are or even just walls....? I thought id fine Building_Wall but that apparently does not exist.


Closest thing I have found is
public class RoomStatWorker_Cleanliness : RoomStatWorker

but still not sure how to effect this.

So looking at how that function takes room cleanliness into account;
thing.GetStatValue(StatDefOf.Cleanliness, true);

It seems I need to make my walls have this
StatDefOf.Cleanliness

Anyone know of a tutorial or some examples of how I apply this to my walls?