Meat defs

Started by generalcrusher, November 04, 2014, 01:20:32 PM

Previous topic - Next topic

generalcrusher

Could someone tell me where the defs for the different kinds of raw meat are located?

ItchyFlea

They aren't anywhere. The game generates them on the fly based on the type of animal butchered and the <bodySize> tag in the animals ThingDef.
All my mods are licensed under a Attribution-NonCommercial-ShareAlike 4.0 International
Ask for permission before using in ModPacks

Click here for a list of the mods I've created

Shinzy

Hm ohh! I've always wondered how it picks the meat textures though? Muffaloes have those big meaty chunks
while anything I've ever made of my own always go for the tiny giblets
is that dependent on the body size aswell?

Evul

#3
Here is some strings related to resources from animals:
<isFlesh>true</isFlesh>
<hasLeather>true</hasLeather>
<bodySize>0.7</bodySize>
<meatLabel>venison</meatLabel>
<leatherColor>(140,85,36)</leatherColor>
<leatherLabel>squirrelskin</leatherLabel>

I think if they not been moved that the meed textures is located here
Textures\Things\Item\Resource\MeatFoodRaw
MeatSmall.psd
MeatBig.psd
MeatHuman.psd

And here is the code handeling meat:
using System;
using System.Collections.Generic;
using System.Diagnostics;
using Verse;
namespace RimWorld
{
public static class ThingDefGenerator_Meat
{
[DebuggerHidden]
public static IEnumerable<ThingDef> ImpliedMeatDefs()
{
ThingDefGenerator_Meat.<ImpliedMeatDefs>c__Iterator3 <ImpliedMeatDefs>c__Iterator = new ThingDefGenerator_Meat.<ImpliedMeatDefs>c__Iterator3();
ThingDefGenerator_Meat.<ImpliedMeatDefs>c__Iterator3 expr_07 = <ImpliedMeatDefs>c__Iterator;
expr_07.$PC = -2;
return expr_07;
}
}
}


Meat amount is handled in the RaceProperties
// Verse.RaceProperties
public float meatAmountMultiplier = 1f;

// Verse.RaceProperties
public float MeatAmount
{
get
{
return 90f * this.bodySize * this.meatAmountMultiplier;
}
}

skullywag

Was gonna state that there is a meat amount multiplier you can add to the xml to push small body sized animals to drop large chunks if you want, but Evuls post above does just that if you know what you are looking at.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

generalcrusher

thanks to all of you :D now things are a lot clearer to me