39 {
40
41 Object targetObject = target.GetObject();
43 RockBase rock = RockBase.Cast(targetObject);
44 string yieldName;
45 if (wood || rock)
46 {
48 if (wood)
49 {
50 wood.GetMaterialAndQuantityMapEx(item, output_map,
m_HarvestType);
51 }
52 else
53 {
55 }
56 if (output_map.Count() > 0)
57 {
58 yieldName = MiscGameplayFunctions.GetItemDisplayName(output_map.GetKey(0));
59 }
60 }
61 return yieldName;
62 }
EHarvestType m_HarvestType
void GetMaterialAndQuantityMap(ItemBase item, out map< string, int > output_map)