RimWorld
Bill Doors' Framework
A suggestion
Hello, iv seen you make some pretty not-out-of-ordinary items for rimworld.

Here is something that COULD be simple, at least to base-game items.

Would it be possible to give materials have effects of items built out of it?
Currently, only Health Points and Market Price are effected if you build items out of different materials. If you have 2000 wood and 2000 steel, what is stopping you from making everything out of wood if you could?

The idea is to give things special traits to a degree depending on what theyre built from. Example, If you build a chair out of Silver, it should slightly boost cleanliness or clean rating. if the chair was built out of cloth than it should have a better boost in comfort.

That possible?
< >
Mostrando 1-3 de 3 comentarios
yangbowen 24 FEB 2023 a las 17:31 
See Data\Core\Defs\ThingDefs_Items\Items_Resource_Stuff.xml
The materials have both statBases, statFactors and statOffsets. The first one determines the stat value of the material itself (e.g. the material item laying on the ground), while the second and third ones are applied to things built using this material. You can for example add
<Comfort>1.2</Comfort>
to the XML node with the XPath
Defs/ThingDef[defName="Cloth"]/stuffProps/statFactors
and chairs (or everything actually) built out of cloth will have 120% comfort. Preferably you do it using a PatchOperationAdd in a patch file in a mod.
[TSF] Mason 1290 27 FEB 2023 a las 1:39 
hmm. sounds like alot of repetitive code to sift through to give atleast every base game items, with a base game material, a trait for the material its made of.

damn. wanted Jade, Gold, Silver, and Steel to have different trait sets. same with brick types.
yangbowen 16 MAR 2023 a las 8:18 
No, not for every base game item, only for every material (that you want to add a trait).
statFactors applies to all items (base game or not) made from that material automatically.
< >
Mostrando 1-3 de 3 comentarios
Por página: 1530 50