RimWorld
Bill Doors' Framework
[TSF] Mason 1290 2023년 2월 22일 오전 12시 41분
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?
< >
전체 댓글 3개 중 1~3개 표시 중
yangbowen 2023년 2월 24일 오후 5시 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 2023년 2월 27일 오전 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 2023년 3월 16일 오전 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.
< >
전체 댓글 3개 중 1~3개 표시 중
페이지당 표시 개수: 1530 50