[0.9.8] give-item research modifier
Posted: Sun May 18, 2014 10:12 am
First it could be that I do not use it properly (but I am quiet sure I do), so here is a example:
Game loads fine, but if you click on the research-icon it results in a CTD (Msg: call to empty boost::function)
My best guess is that there is a bug in the draw-method for the effect-icon(s).
Code: Select all
{
type = "technology",
name = "testResearch",
icon = "__ExampleMod__/graphics/icons/foo.png",
effects =
{
{
type = "give-item",
item = "raw-wood",
count = 10
},
{
type = "give-item",
item = "wooden-chest",
count = 10
}
},
prerequisites = {},
unit =
{
count = 50,
ingredients =
{
{"science-pack-1", 2},
{"science-pack-2", 2},
{"science-pack-3", 1}
},
time = 30
}
}
My best guess is that there is a bug in the draw-method for the effect-icon(s).