What I did, is figure out what kind of Ore was used to make the item, and read a config file which lists ar mods and dmg mods, that the ore will give when crafted into armor or weapon.
Go in the make_blacksmithy_items.src file in pol\pkg\skills\craftingskills\blacksmithy
look for the following code:
- Code: Select all
//set the color
if (material.color)
created_item.color := material.color;
endif
after that, and before the SubtractAmount(..... line, put the following:
- Code: Select all
var bscfg := readconfigfile("ore");
var bselem := bscfg[material.objtype];
var armod := bselem.armod;
var dmgmod := bselem.dmgmod;
if(created_item.isa(POLCLASS_ARMOR))
created_item.ar_mod := cint(armod);
elseif(created_item.isa(POLCLASS_WEAPON))
created_item.dmg_mod := cint(dmgmod);
endif
Your cfg file should look like this (approx.):
- Code: Select all
ore 0x6011 //iron ingot
{
armod 2
dmgmod 2
}
ore 0x6012 // bronze ingot
{
armod 3
dmgmod 3
}
...
...
...
format:
ore <ore objtype for that ore>
{
armod <value>
dmgmod <value>
}
and repeat for all. save as ore.cfg in the blacksmithy folder, and you'll be set.... adjust as needed...