Okay how would one make an animal drop an item. I tried figuring out myself and from what I can see it should be working but for the life of me I can't get the crows to drop feathers. I have an item "feathers" which I can spawn in just fine
{ "type" : "AMMO",
"id" : "feathers",
"rarity" : 40,
"price" : 50,
"name" : "feathers",
"symbol" : "=",
"color" : "light_gray",
"description" : "Feathers for your hat or maybe you prefer arrows that fly straight",
"material" : "FUR",
"volume" : 1,
"weight" : 1,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "none",
"damage" : 0,
"pierce" : 0,
"range" : 0,
"accuracy" : 0,
"recoil" : 0,
"count" : 20
}
and I make a type for it and then set that to the crow
mapitemsdef.cpp
setvector(
&mapitems[mi_crow],
"feathers");
monitemdef.cpp
setvector(&monitems[mon_crow],
mi_crow, 1,NULL);
and I stuck the mi_crow into mapitems.h but no matter how many crows I kill they don't drop any feathers. The feathers works and I can even use them in the recipe I made that uses them but dang it all if crows just don't want to drop the dang things. They also for some reason seem not to be spawning anymore so I assume I really messed something up though I can still spawn them. The stuff mentioned and in the spoilers is the only things I have changed plus the following item and recipe and I just pulled down the latest.
{ "type" : "AMMO",
"id" : "arrow_fletched",
"rarity" : 6,
"price" : 150,
"name" : "fletched arrow",
"symbol" : "=",
"color" : "light_green",
"description" : "A sharpened wood arrow to which feathers where attached. It's light-weight and does little damage but has better accuracy and range then a normal wood arrow. Stands a good chance of remaining intact once fired.",
"material" : "WOOD",
"volume" : 2,
"weight" : 60,
"bashing" : 1,
"cutting" : 0,
"to_hit" : 0,
"ammo_type" : "arrow",
"damage" : 8,
"pierce" : 1,
"range" : 2,
"accuracy" : 16,
"recoil" : 0,
"count" : 10
}
{
"result": "arrow_fletched",
"category": "CC_AMMO",
"skill_pri": "archery",
"difficulty": 3,
"time": 5000,
"reversible": false,
"autolearn": true,
"tools": [
],
"components": [
[
["arrow_wood", 10]
],
[
["feathers", 15]
],
[
["superglue", 4],
["sinew", 5],
["thread", 5],
["plant_fibre", 5]
]
]
}
]